Hi all,
I am running on WinMe platform with jdk1.3.1_04, tomcat 4.1.12

I try to embed tomcat into my Java application but I am facing some
difficulties.
I can't start tomcat as the classpath has included a lot of tomcat's jar
files, if i take away some jars, I'll get NoClassDefFoundError
I have moved all jar files to a lib folder. I have also change the memory of
the batch file to 4096

The last statement I can see from the console show that the command is too
long:
java -classpath .;"lib/bootstrap.jar";".............(cannot reach the end of
command which should be EmbeddedTomcat)

Below is my batch file that call my EmbeddedTomcat.class

set
CLASSPATH=.;"lib/bootstrap.jar";"lib/commons-daemon.jar";"lib/tomcat-jni.jar
";"lib/xercesImpl.jar";"lib/xmlParserAPIs.jar"
set
CLASSPATH=%CLASSPATH%;"lib/xercesImpl.jar";"lib/activation.jar";"lib/ant.jar
";"lib/commons-collections.jar";"lib/commons-dbcp.jar"
set
CLASSPATH=%CLASSPATH%;"lib/commons-logging-api.jar";"lib/commons-pool.jar";"
lib/dom.jar";"lib/jasper-compiler.jar"
set
CLASSPATH=%CLASSPATH%;"lib/jasper-runtime.jar";"lib/jaxen-full.jar";"lib/jax
p-api.jar";"lib/jdbc2_0-stdext.jar";"lib/jdom.jar"
set
CLASSPATH=%CLASSPATH%;"lib/jndi.jar";"lib/jstl.jar";"lib/jta.jar";"lib/mail.
jar";"lib/naming-common.jar";"lib/naming-factory.jar"
set
CLASSPATH=%CLASSPATH%;"lib/naming-resources.jar";"lib/sax.jar";"lib/saxpath.
jar";"lib/servlet.jar";"lib/standard.jar"
set
CLASSPATH=%CLASSPATH%;"lib/xalan.jar";"lib/catalina.jar";"lib/catalina-ant.j
ar";"lib/commons-beanutils.jar";"lib/commons-digester.jar"
set
CLASSPATH=%CLASSPATH%;"lib/commons-logging.jar";"lib/commons-modeler.jar";"l
ib/jaas.jar";"lib/jakarta-regexp-1.2.jar"
set
CLASSPATH=%CLASSPATH%;"lib/mx4j-jmx.jar";"lib/servlets-common.jar";"lib/serv
lets-default.jar";"lib/servlets-invoker.jar"
set
CLASSPATH=%CLASSPATH%;"lib/servlets-manager.jar";"lib/servlets-webdav.jar";"
lib/tomcat-coyote.jar";"lib/tomcat-http11.jar"
set
CLASSPATH=%CLASSPATH%;"lib/tomcat-jk2.jar";"lib/tomcat-jk.jar";"lib/tomcat-u
til.jar";"lib/tomcat-warp.jar"
set CLASSPATH=%CLASSPATH%;"C:\jdk1.3.1_04\lib\tools.jar"
java -classpath %CLASSPATH% EmbeddedTomcat

Any help would be appreciated. Thank you.




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to