tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wahlund" <david.wahl...@intra-solutions.se>
Subject classcastexception in bootstrap.jar though the jars are loaded
Date Tue, 01 Apr 2003 14:10:06 GMT
Hi,
I'm unable to start Tomcat due to ClassNotFoundException.
The classpath to bootstrap.jar and tools.jar is correct and defined. And the
home directory too.
All the jars are loaded, but still I get a classcastexception.
Under what cirumstances could this occur? It there anything[system
variables,classpath,etc] else that needs to be set?
As seen below the classloader loads catalina.jar but throw an
classnotfoundexception when its unable to locate
org.apache.catalina.mbeans.ServerLifecycleListener which i contained in that
jar.

Regards,
David

### Debug log ###
Using CATALINA_BASE: E:\tomcat
Using CATALINA_HOME: E:\tomcat
Using CATALINA_TMPDIR: E:\tomcat\temp
Using JAVA_HOME: E:\jdk1.4
_RUNJAVA: "E:\jdk1.4\bin\java"
_EXECJAVA: start "Tomcat" "E:\jdk1.4\bin\java"
JAVA_OPTS:
CATALINA_OPTS:
DEBUG_OPTS:
JAVA_ENDORSED_DIRS: E:\tomcat\bin;E:\tomcat\common\endorsed
CLASSPATH: E:\jdk1.4\lib\tools.jar;E:\tomcat\bin\bootstrap.jar
CATALINA_BASE: E:\tomcat
"_RUNJAVA JAVA_OPTS CATALINA_OPTS
DEBUG_OPTS -Djava.endorsed.dirs="JAVA_ENDORSED_DIRS" -classpath
"CLASSPATH" -Dcatalina.base="CATALINA_BASE" -Dcatalina.home="CATALINA_HOME" 
-Djava.io.tmpdir="CATALINA_TMPDIR" MAINCLASS CMD_LINE_ARGS ACTION"
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory E:\tomcat\common\classes
ClassLoaderFactory: Including jar file
E:\tomcat\common\endorsed\xercesImpl.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\endorsed\xmlParserAPIs.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\activation.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\ant.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\commons-collections.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\commons-dbcp.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\commons-logging-api.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\commons-pool.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\j2ee.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\jasper-compiler.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\jasper-runtime.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\jdbc2_0-stdext.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\jndi.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\jta.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\mail.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\naming-common.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\naming-factory.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\naming-resources.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\servlet.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\tools.jar
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory E:\tomcat\server\classes
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\catalina-ant.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\catalina.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-beanutils.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-digester.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-logging.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-modeler.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\jaas.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\jakarta-regexp-1.2.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\mx4j-jmx.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-common.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-default.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-invoker.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-manager.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-webdav.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\tomcat-coyote.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\tomcat-http11.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-jk.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-jk2.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-util.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-warp.jar
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory E:\tomcat\shared\classes
Bootstrap: Loading startup class
Bootstrap: Setting startup class properties
Bootstrap: Calling startup class process() method
XmlMapper: Debug level: 999
XmlMapper: Validating = false
XmlMapper: Set locator :
org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@18385e3
XmlMapper: new className org.apache.catalina.core.StandardServer Server
StandardServer[8005]
XmlMapper: setProperty(class org.apache.catalina.core.StandardServer
className=org.apache.catalina.core.StandardServer)
XmlMapper: setProperty(class org.apache.catalina.core.StandardServer
debug=0)
XmlMapper: setProperty(class org.apache.catalina.core.StandardServer
port=8005)
XmlMapper: setProperty(class org.apache.catalina.core.StandardServer
shutdown=SHUTDOWN)
ERROR reading E:\tomcat\conf\server.xml
At Line 3 /Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:992)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:857)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:419)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:595)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:747)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:363)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message