ChemAxon 60ee1f1328
17-12-2008 12:30:17
C:\Program Files\ChemAxon\JChem\cartridge>"C:\Program Files\Java\jdk1.6.0_05\bin
\java.exe" -server -Xrs -Xmx1600m -Dchemaxon.jchem.cartridge.config.file="C:\Pro
gram Files\ChemAxon\JChem\cartridge\\conf\jcart.properties" -Djava.util.logging.
config.class=chemaxon.jchem.cartridge.util.LoggingConfigurator -Djava.awt.headle
ss=true -classpath "C:\Program Files\ChemAxon\JChem\lib\jchem.jar;G:\app\daniel\
product\11.1.0\db_1\jdbc\ojdbc14.jar;" -Dchemaxon.license.verify.verbose=true c
hemaxon.jchem.cartridge.rmi.impl.AdminImpl start
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at chemaxon.jchem.cartridge.rmi.impl.AdminImpl.main(AdminImpl.java:295)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFacto
ry
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 1 more
No doubt somthing small I have missed but it has been a while...any idea why this might occur on jchem server start?
Daniel.
ChemAxon aa7c50abf8
17-12-2008 14:06:10
Please, could you list the content of your C:\Program Files\ChemAxon\JChem\lib directory (with dir) and post the result?
Thanks
Peter
ChemAxon aa7c50abf8
17-12-2008 14:52:42
Is the commons-logging-1.1.jar file readable by the user running JChem Server?
Which JChem version is it?
Thanks
Peter
ChemAxon 60ee1f1328
17-12-2008 15:07:42
version is 5.1.0 and it should be readable by the user running the jchem server - i will check this...
ChemAxon 60ee1f1328
17-12-2008 15:53:18
seems to be readable OK but problem persists - anything extra required in CLASSPATH or PATH for jchemserver?
ChemAxon aa7c50abf8
17-12-2008 16:41:13
Try setting the JCART_XCLASSPATH variable:
Code: |
SET JCART_XCLASSPATH=C:\Program Files\ChemAxon\JChem\lib\commons-logging-1.1.jar |
Thanks
Peter
ChemAxon 60ee1f1328
17-12-2008 17:25:38
Hi Peter,
I have added the JCART_XCLASSPATH env variable and this seems to have had no effect...same error message prevails...even after machine reboot / new command prompt window...
Daniel.
ChemAxon aa7c50abf8
17-12-2008 17:32:39
Daniel,
What kind of Windows is it? Windows Vista? (I have tested this right now with Windows Server 2003.)
If you download a recent JChem version, does it exhibit the same problem? (You don't have to upgrade your JChem Cartridge installation, just unpack the zip and try starting server.bat.)
Thanks
Peter
ChemAxon 60ee1f1328
17-12-2008 18:01:13
Hi Peter,
I have downloaded and tried the latest version of jchem and get exactly the same error message as above...i am going to check path and classpath carefully now it must be them?
Daniel.
ChemAxon aa7c50abf8
17-12-2008 18:25:30
Daniel,
Try unsetting the CLASSPATH variable altogether (set it to empty):
Also, try another Java version (although I am very skeptical that the Java version would be a problem). I've just tested this with the most recent Java (Java SE Development Kit 6u11) with which it works.
Thanks
Peter
ChemAxon 60ee1f1328
17-12-2008 19:58:59
java -version:
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
I tried your suggestion above and alas again the error is the same...
It is windows XP and I am sure I had it working on here at some point...
Daniel.
ChemAxon 60ee1f1328
18-12-2008 12:21:21
commons-logging-1.1.jar is available to read from env var it seems but same error persists...
C:\Program Files\ChemAxon\JChem\cartridge>server start
C:\Program Files\ChemAxon\JChem\cartridge>"C:\Program Files\Java\jdk1.6.0_05\bin\java.exe" -server -Xrs -Xmx1600m -Dchemaxon.jchem.cartridge.config.file="C:\Pro
gram Files\ChemAxon\JChem\cartridge\\conf\jcart.properties" -Djava.util.logging.
config.class=chemaxon.jchem.cartridge.util.LoggingConfigurator -Djava.awt.headless=true -classpath "C:\Program Files\ChemAxon\JChem\lib\jchem.jar;G:\app\daniel\
product\11.1.0\db_1\jdbc\ojdbc14.jar;C:\Program Files\ChemAxon\JChem\lib\commons
-logging-1.1.jar" -Dchemaxon.license.verify.verbose=true chemaxon.jchem.cartridge.rmi.impl.AdminImpl start
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at chemaxon.jchem.cartridge.rmi.impl.AdminImpl.main(AdminImpl.java:295)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 1 more
ChemAxon 60ee1f1328
18-12-2008 13:08:46
OK - perhaps I did not modify my JCHEMHOME when I tried it - let me do so and try again...
ChemAxon 60ee1f1328
18-12-2008 13:22:14
OK - I have made sure JCHEMHOME is correct and am using 5.1.3 server.bat file (does this need edit?) and it still does give the same error message?...I will continue to see if I can isolate why...
Thanks for your help.
Daniel.