|
From: Blaine S. <bla...@ad...> - 2006-08-24 04:02:08
|
Please read and follow the instructions in the section "Troubleshooting the Init Script". siokpeng wrote: > Hi, > I had set the variable HSQLDB_JAR_PATH to the exact path of my hsqldb.jar (HSQLDB_JAR_PATH=$HSQLDB_HOME/lib/hsqldb.jar). But, I still encounter same problem. > My config file is like; > > JAVA_EXECUTABLE=$JAVA_HOME/bin/java > HSQLDB_JAR_PATH=$HSQLDB_HOME/lib/hsqldb.jar > SERVER_HOME=/opt/hsqldb/data > HSQLDB_OWNER=hsqldb > > Anything else did I missing? > > Thanks, > Siok Peng > > > > Blaine Simpson wrote: >> Correct, that the HSQLDB classes are not being found in the CLASSPATH. >> Wrong that you set it manually in the init script. In your config file, >> set the variable HSQLDB_JAR_PATH to the exact path to your hsqldb.jar >> file. The location of the config file is explained in step 2 of the >> UNIX chapter. >> >> >> Pankaj Mandal -X (pmandal - Ahura Inc. at Cisco) wrote: >> >>> Hi, >>> >>> When you run it through init.d, it is not finding the CLASSPATH, you >>> would most probably need to set it in the init.d script before executing >>> the java class/database server >>> >>> Thanks >>> Pankaj >>> >>> -----Original Message----- >>> From: hsq...@li... >>> [mailto:hsq...@li...] On Behalf Of >>> siokpeng >>> Sent: Wednesday, August 23, 2006 3:52 AM >>> To: bla...@ad...; hsq...@li... >>> Subject: [Hsqldb-developers] Problem Running Hsqldb as a System Daemon >>> >>> Hi, >>> I just starting using hsqldb as my database server. I am using >>> hsqldb version 1.8.0 on Linux machine. I was using provided >>> documentation (http://hsqldb.org/web/hsqlDocsFrame.html) to start up my >>> database. Everything work fine. But, when I configure it to running as a >>> system daemon, it got failed on when I tried run using >>> "/etc/init.d/hsqldb start". The log file return error - "Exception in >>> thread "main" java.lang.NoClassDefFoundError: >>> org/hsqldb/util/MainInvoker". Did anyone know why it happen? The >>> database server can run if using "nohup java org.hsqldb.Server &"... >>> >>> Please help me. Thanks... >>> >>> >>> Regards, >>> Siok Peng >>> >>> |