0 Replies Latest reply on Aug 15, 2003 3:52 AM by leemaasn

    HELP! WHY MY JBOSS THROW A EXCEPTION AS:java.lang.NoClassDef

    leemaasn Newbie

      HELP:
      MY JBOSS VERSION IS:3.0.8 without TOMCAT.
      OS IS: Windows 2000 pro
      I put my project (test.war folder not jar file)into :
      JBoss_3_0_8\server\default\deploy\
      I use struts 1.1 and taglib in this project .
      THE PROBLEM IS :
      I start JBoss,when it deploy my project,it occur a exception :
      17:18:02,515 INFO [MainDeployer] Starting deployment of package: file:/E:/Leema
      asn/JBoss_3_0_8/server/default/deploy/test.war/
      17:18:02,671 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationCo
      ntext=2,context=/test
      17:18:03,343 INFO [jbossweb] Started WebApplicationContext[/test,My Office He
      lper]
      17:18:04,109 ERROR [MainDeployer] could not start deployment: file:/E:/Leemaasn/
      JBoss_3_0_8/server/default/deploy/test.war/
      java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
      3)

      the more...

      WHY?
      what should I do ?

      THANKS...