Eclipse+Tomcat4.1的请教

03-11-22 liufeng_future
请教各位高手一个问题,在Eclipse里配置Tomcat4.1,然后启动Tomcat时,抛出以下的异常,怎么可以解决?(Tomcat直接启动是可以得)先谢谢了。

2003-11-22 10:06:16 org.apache.coyote.http11.Http11Protocol init

信息: Initializing Coyote HTTP/1.1 on port 8080

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(DelegatingMethodAccessorImpl.java:25)

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

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

Caused by: java.lang.NoClassDefFoundError: javax/management/MBeanRegistration

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

at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:709)

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

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

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

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941)

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941)

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

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

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

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

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

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

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

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

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

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

at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621)

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958)

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

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

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

at java.lang.Class.forName(Class.java:141)

at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1097)

at org.apache.catalina.core.StandardService.initialize(StandardService.java:579)

at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)

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

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

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

... 5 more

alin
2003-11-23 12:09
lombz还之myeclipse或者别的?

我用myeclipse一直没问题,lombz就有。

devi
2003-11-26 16:17
没问题呀,

你的jvm设置的是1.4吗?

猜你喜欢