1 Reply Latest reply on Apr 2, 2002 11:26 AM by Jules Gosnell

    Problem deploying WAR

    TH Lim Newbie

      Hi,

      I want to deploy a WAR, soap.war, in JBoss-Jetty environment (JDK1.3.1 / Win2000). I copied the soap.war into %JBOSS_HOME%jboss/deploy and launch JBoss. The exception I get is



      [16:53:09,500,J2eeDeployer] Destroying application soap.war
      [16:53:09,703,AutoDeployer] DeploymentInfo failed:file:/D:/server/jboss/jboss/deploy/soap.war
      org.jboss.deployment.J2eeDeploymentException: Error while starting soap.war: javax/servlet/http/HttpServlet, Cause: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:524)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)



      Obviously the JVM complains that javax/servlet/http/HttpServlet is missing but it is inside lib/javax.servlet.jar? Why can't it refer it from there since it is loaded when JBoss is launched? What should I do to deploy soap.war the "JBoss-way" ?

      /lim/