5 Replies Latest reply on Aug 7, 2006 9:20 AM by Claus Wittmann

    Jboss 4.0.4.GA: simple servlet does not run

    Dogort Tucky Newbie


      i created a very simple WAR with one servlet. The WAR runs perfectly on my Jboss 4.0.4.CR2 and also without any problems on a tomcat 5.5.17.

      unfortunately, it throws a NoClassDefFoundError: javax/servlet/http/HttpServlet exception on my 4.0.4.GA installation.

      i used the wizzard to create a fresh installation using the "ejb 3" option.

      please refer for your own tests to the compiled and assembled war (compiled using jdk 5 update6)

      the java source of the servlet:

      finally i also uploaded the complete jboss-server log:

      the exception looks about like this

      java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
       at java.lang.ClassLoader.findBootstrapClass(Native Method)
       at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)

      any help is welcome. is this a serious bug? has anybody out there a running servlet on the 4.0.4.GA installation?

      patrick heusser

      patrick heusser