jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: Sample error
Date Fri, 29 Nov 2002 19:42:31 GMT
Hi Michael,

this looks pretty weird, as the stack trace says that the class 
org.apache.catalina.core.StandardServer can't be found, but further down 
in the stack trace you can see that the invocation originates in 
org.apache.catalina.startup.Catalina. Both classes are in the same 
catalina.jar archive, and should thus both be on the classpath.

Apparently, and as you say, the tomcat.home.40 property *is* correct. 
Can you confirm that you are able to start that same installation of 
Tomcat from the commandline (i.e. not from the Ant script)? Have you 
been doing any shuffling of the JARs between $TOMCAT_HOME/common, 
$TOMCAT_HOME/shared and  $TOMCAT_HOME/server, by any chance? Can you try 
with a different version of Tomcat (e.g. 4.1.11 or 4.0.6)?

Michael Burke wrote:
> I still can't figure out why I'm getting the following error (see 
> attached file) since  /home/mburke/jakarta-tomcat-4.1.10 is the correct 
> directory for tomcat. Any suggestions appreciated.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Buildfile: build.xml
> 
> check.test.resin.20:
> 
>      [echo] ******************************************************
>      [echo] WARNING : The 'resin.home.20' property has not been
>      [echo] set. No test will be run on that servlet engine.
>      [echo] ******************************************************
> 
> 
> display.properties:
>      [echo] ----- Cactus Servlet Sample 1.4.1 -----
> 
>      [echo] java.class.path = /home/mburke/jakarta-ant-1.5/lib/xml-apis.jar:/home/mburke/jakarta-ant-1.5/lib/xercesImpl.jar:/home/mburke/jakarta-ant-1.5/lib/optional.jar:/home/mburke/jakarta-ant-1.5/lib/ExtractTldTask.jar:/home/mburke/jakarta-ant-1.5/lib/ant.jar:/usr/java/j2sdk1.4.0_01/lib/tools.jar:/home/mburke/jakarta-ant-1.5/lib/ant.jar:/home/mburke/jakarta-ant-1.5/lib/ExtractTldTask.jar:/home/mburke/jakarta-ant-1.5/lib/optional.jar:/home/mburke/jakarta-ant-1.5/lib/xercesImpl.jar:/home/mburke/jakarta-ant-1.5/lib/xml-apis.jar:/home/mburke/jakarta-tomcat-4.1.10/common/lib/mm.mysql.jar:/home/mburke/jakarta-tomcat-4.1.10/common/lib/servlet.jar:/home/mburke/jakarta-tomcat-4.1.10/common/lib/jdbc2_0-stdext.jar#:/home/mburke/junit3.8.1/junit.jar:/home/mburke/junit3.8.1:/home/mburke/jakarta-struts-1.0.2/struts.jar:/home/mburke/strutstest/strutstest.jar:/home/mburke/jboss-3.0.2/lib/crimson.jar:/home/mburke/jboss-3.0.2/lib/jaxp.jar#:/home/mburke/jakarta-tomcat-4.1.10/common/lib/co
mmons-logging-1.0.jar:/home/mburke/5512/5512/lib/commons-digester.jar:/home/mburke/5512/5512/lib/commons-collections.jar:/usr/java/j2sdk1.4.0_01/lib/tools.jar
> 
>      [echo] java.home = /usr/java/j2sdk1.4.0_01/jre
>      [echo] user.home = /home/mburke
>      [echo] ant.home = /home/mburke/jakarta-ant-1.5
> 
>      [echo] cactus.framework.jar = ../lib/cactus-1.4.1.jar
>      [echo] cactus.ant.jar = /home/mburke/jakarta-cactus-13-1.4.1/lib/cactus-ant-1.4.1.jar
>      [echo] servlet.jar = /home/mburke/jakarta-cactus-13-1.4.1/lib/servletapi-2.3.jar
>      [echo] aspectjrt.jar = /home/mburke/jakarta-cactus-13-1.4.1/lib/aspectjrt-1.0.5.jar
>      [echo] commons.logging.jar = /home/mburke/jakarta-cactus-13-1.4.1/lib/commons-logging-1.0.jar
>      [echo] commons.httpclient.jar = /home/mburke/jakarta-cactus-13-1.4.1/lib/commons-httpclient-2.0alpha1-20020606.jar
>      [echo] httpunit.jar = /home/mburke/jakarta-cactus-13-1.4.1/lib/httpunit-1.4.1.jar
>      [echo] junit.jar = /home/mburke/jakarta-cactus-13-1.4.1/lib/junit-3.7.jar
> 
>      [echo] log4j.jar (optional) = /home/mburke/jakarta-cactus-13-1.4.1/lib/log4j-1.2.5.jar
>      [echo] clover.jar (optional) = ${clover.jar}
> 
>      [echo] test.port = 8080
> 
> 
> check.properties.test:
> 
> check.properties.warn:
> 
> check.properties:
> 
> init:
> 
> compile.sample:
> 
> compile.unit:
> 
> compile:
> 
> prepare.testwar.log4j:
> 
> prepare.testwar.clover:
> 
> prepare.test:
> 
> testwar:
> 
> prepare.test.resin.20:
> 
> test.resin.20:
> 
> check.test.resin.13:
> 
>      [echo] ******************************************************
>      [echo] WARNING : The 'resin.home.13' property has not been 
>      [echo] set. No test will be run on that servlet engine.
>      [echo] ******************************************************
> 
> 
> prepare.test.resin.13:
> 
> test.resin.13:
> 
> check.test.tomcat.40:
> 
> prepare.test.tomcat.40:
>      [echo] tomcat.home.40 = /home/mburke/jakarta-tomcat-4.1.10
>    [delete] Deleting: /home/mburke/jakarta-cactus-13-1.4.1/sample-servlet/target/test/tomcat40/conf/server.xml
>      [copy] Copying 1 file to /home/mburke/jakarta-cactus-13-1.4.1/sample-servlet/target/test/tomcat40/conf
> 
> test.tomcat.40:
> 
> start.tomcat.40:
>      [java] Begin event threw exception
>      [java] java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
>      [java] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
>      [java] 	at java.security.AccessController.doPrivileged(Native Method)
>      [java] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>      [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>      [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
>      [java] 	at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:154)
>      [java] 	at org.apache.commons.digester.Digester.startElement(Digester.java:855)
>      [java] 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:454)
>      [java] 	at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:571)
>      [java] 	at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:756)
>      [java] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
>      [java] 	at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:942)
>      [java] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1520)
>      [java] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
>      [java] 	at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
>      [java] 	at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
>      [java] 	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>      [java] 	at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
>      [java] 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>      [java] 	at org.apache.commons.digester.Digester.parse(Digester.java:1098)
>      [java] 	at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
>      [java] 	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>      [java] 	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>      [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java] 	at java.lang.reflect.Method.invoke(Method.java:324)
>      [java] 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>      [java] Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
>      [java] java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
>      [java] 	at org.apache.commons.digester.Digester.startElement(Digester.java:858)
>      [java] 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:454)
>      [java] 	at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:571)
>      [java] 	at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:756)
>      [java] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
>      [java] 	at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:942)
>      [java] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1520)
>      [java] 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
>      [java] 	at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
>      [java] 	at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
>      [java] 	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>      [java] 	at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
>      [java] 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>      [java] 	at org.apache.commons.digester.Digester.parse(Digester.java:1098)
>      [java] 	at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
>      [java] 	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>      [java] 	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>      [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java] 	at java.lang.reflect.Method.invoke(Method.java:324)
>      [java] 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

-- 
Christopher Lenz
/=/ cmlenz at gmx.de


--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message