I'm trying to install the JChemCartridge on Windows Server 2003 but I have not been able to open the JChem Streams web application.
I have successfully installed JChemBase on Oracle 10g (running on same machine as the attempted Cartridge installation) and have created JChem structure tables and loaded them with sd files.
TomCat 5 was downloaded as the installer wizard jakarta-tomcat-5.0.28.exe. A default installation was made and the Wizard found the JVM at C:\Program Files\Java\jre1.5.0_06.
The JAVA 2 SDK Std Edition 1.4.2_10 was installed from j2sdk-1_4_2_10-windows-i586-p.exe. A default installation was made.
A new environmental JAVA_HOME was then added -> C:\Program Files\Java\j2re1.4.2_10
jogl.jar, batik-core.jar, chart.jar, dom4j.jar and jchem.jar and ojdbc14.jar were copied to C:\Program Files\Apache Software Foundation\Tomcat 5.0\shared\lib\
With TomCat still turned off, I attempted to set JAVA options, through the Configure Tomcat application.
Adding the following line to the Java Options panel under the Java tab worked
-Djava.awt.headless=true
However if
-server
-Xmx400m
were added, TomCat would not start. C:/jchem/doc/admin/cartridge.html#server_jdbc advises manually editing the <tomcat-home>/bin/catalina.bat with the Windows equivalent of
export JAVA_OPTS=${JAVA_OPTS}' -Xmx360m'
But I don't know what the Windows equivalent syntax is? However, these two settings should not be critical for starting the cartridge right?
Default port for TomCat is 8080 but this conflicts with a service running on XDB Therefore the default port assignment for TomCat was changed to 9090.
TomCat was then started in order to acces the web admin tool:
http://localhost:9090/admin. This opened successfully and a new context was added:
Document Base c:\jchem and Path /jchem
Which was confirmed by opening and closing the host node which also showed the jchemstreams site.
Tomcat was then stopped and restarted and a browser page (IE) opened to
http://localhost:9090/jchemstreams/ which returned the dreaded HTTP:500 error
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /index.jsp(5,0) The value for the useBean class attribute chemaxon.jchem.cartridge.util.JChemCartProperties is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
Are my beans not registered?