aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat throws error if starts from Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat throws error if starts from Eclipse" Watch "Tomcat throws error if starts from Eclipse" New topic
Author

Tomcat throws error if starts from Eclipse

R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5370
I have installed tomcat and it runs as a stand alone application.
I have added it to Eclipse and when trying to restart tomcat I get the following error:
Nov 4, 2003 9:22:16 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8081
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:723)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
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:315)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
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 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:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
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
obviously I am missing something but I dont know what.
I am using Eclipse version 2.1.1
Tomcat 4.1.1
JDK SUN 1.4.1
and Sysdeo 2.2 beta 2
by reading the instructions from sysdeo I was advised not to change the classpath and bootclasspath
Any one?
I have searched the net nut could not get any useful solution.
Even this post is copy-paste of this.
I am facing the same problem.
I think error is being caused becuase of following:
Caused by: java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
Anyone what is this MBeanRegistration ?? OR what is the actual cause of the error.
My classpath, catalina_path and path, all are set correct.
Thanks in advance.


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5370
Copied from here
Brian Wainwright wrote
Sysdeo plugin / Tomcat problem
Hi, I've been struggling with this same problem for a few days and thought I'd found the solution when I found your site on google.com, only to find that you had the problem but not the answer! Anyway, after MUCH research and browsing, I found a solution on an Eclipse newsgroup, so I thought I'd share it with you. It seems there's a problem with the plugin that prevents it from launching Tomcat 4.1.29 (I'm assuming you're using this version). Apparently it's being fixed in the 2.2 release of the plugin, but until that's released you can simply select "Version 5.x" as your Tomcat version in the plugin preferences BUT use your v4.1.x installation as the Tomcat home directory. Hope this works for you! Brian...

And I wasted my full day ..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat throws error if starts from Eclipse
 
Similar Threads
JaxP with Oracle 9i
Exception in thread "main" java.lang.NoClassDefFoundError
Lomboz Plugin error
Tomcat Error
Class violates Loader COnstraints