tomcat4.1安装出的错

03-03-12 ftyjl
安装了jdk1.4

我载的Tomcat 4.1运行却有问题

以下是我的设置:

CATALINA_HOME=C:\jdk1.4\Tomcat 4.1

CLASSPATH=.;c:\jdk1.4\lib\dt.jar;c:\jdk1.4\lib\tools.jar;C:\j2sdkee1.4\lib\j2ee.jar;C:\j2sdkee1.4\lib\j2ee-ri-svc.jar;C:\j2sdkee1.4\lib\jhall.jar;C:\Program Files\Apache Group\Tomcat 4.1\server\lib\

JAVA_HOME=c:\jdk1.4

以下是运行tomcat时的错误:

2003-3-12 14:09:10 org.apache.commons.digester.Digester startElement

服务器: Begin event threw error

java.lang.NoClassDefFoundError: org/apache/commons/modeler/BaseModelMBean

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:509)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12

3)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)

at java.net.URLClassLoader.access$100(URLClassLoader.java:54)

at java.net.URLClassLoader$1.run(URLClassLoader.java:193)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:186)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:262)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)

at java.lang.Class.getConstructor0(Class.java:1748)

at java.lang.Class.newInstance0(Class.java:266)

at java.lang.Class.newInstance(Class.java:249)

at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j

ava:253)

at org.apache.commons.digester.Digester.startElement(Digester.java:1257)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP

arser.java:459)

at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst

ractXMLDocumentParser.java:221)

at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi

nder.java:595)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen

t(XMLDocumentFragmentScannerImpl.java:747)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent

Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM

LDocumentFragmentScannerImpl.java:329)

at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav

a:525)

at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav

a:581)

at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)

at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j

ava:1175)

at org.apache.commons.digester.Digester.parse(Digester.java:1532)

at org.apache.catalina.startup.Catalina.start(Catalina.java:451)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)

at org.apache.catalina.startup.Catalina.process(Catalina.java:180)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Exception during startup processing

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

还有很多

错误一闪而过

ytht
2003-08-04 11:12
我今天也碰到这个问题,

呵呵,偶师兄解决的

你的机器应该装了oracle,它占用了8080的端口

给tomcat换一个端口,比如9090,就好了

猜你喜欢