I am using an Eclipse plugin for my development environment. Instead of copying dependant classes and jars to WEB-INF after every change, the plugin includes an optional DevLoader class that extends org.apache.catalina.loader.WebappLoader, overrides start()., and adds the appropriate repositories to the classpath via addRepository().

This worked fine for Tomcat 5.0.28. When I upgraded to 5.5.12, the exact same configuration produces the an exception on application startup "...Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet". Without the plugin, everything works as expected.

Any ideas on what could have changed? My application uses Commons Logging (required by Struts), Log4J, and Xerces so those jars are being added in the manner described above. Maybe there is a conflict there?

Thanks,

Ori


---------
Full exception text:

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:585)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:870) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1305) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to