0 Replies Latest reply on Feb 28, 2013 5:52 AM by Louise Eriksen

    Cannot deploy WAR without axis jar in WAR file (even though the axis jar file is in the EAR file)

    Louise Eriksen Newbie



      I have an EAR file, with a nested WAR file.

      axis-1.2.jar is deployed in the lib folder of the EAR file.


      If axis-1.2.jar is placed in the lib folder of the WAR file, I can successfully deploy the application.

      If I remove the axis-1.2.jar file from the WAR lib folder, the deployment fails:


      15:54:00,875 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Error listenerStart

      15:54:00,875 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Context [/booking] startup failed due to previous err


      15:54:00,875 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.web.deployment.default-hos

      t./booking: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./booking: JBAS018040: Failed to start context

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.


              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2


              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_10]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_10]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_10]



      Why is it necessary to have the axis-1.2.jar file in both the EAR and WAR lib diretories in order for the deploy to succeed?





      Message was edited by: Louise Eriksen:

      I have now uploaded a simplified ear file, as well as the deploy error for the ear file. Notice that the axis.jar is placed in the EAR lib folder, but not in the WAR lib folder.