8 Replies Latest reply on Aug 27, 2013 4:09 PM by Nathan Price

    java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]

    john smith Newbie

      Hi,

      I got ClassNotFoundException error when i deploy my.ear on EAP6.1.

       

       

      ERROR [org.jboss.as.server] (HttpManagementService-threads - 7) JBAS015870: Deploy of deployment "my.ear" was rolled back with the following failure message:

      {

          "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"my.ear\".\"tp.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"my.ear\".\"tp.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"tp.war\" of deployment \"my.ear\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module \"deployment.my.ear.tp.war:main\" from Service Module Loader]

          Caused by: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module \"deployment.my.ear.tp.war:main\" from Service Module Loader]"},

       

       

      This is ear file structure.

      ============================================

      META-INF/

      META-INF/MANIFEST.MF

      META-INF/application.xml

      META-INF/jboss-app.xml

      META-INF/jboss-deployment-structure.xml

      my-ejb.jar

      tp.war

      lib/

      lib/IdentityManager.jar

      lib/JavaCosignV3.jar

      lib/antlr-2.7.7.jar

      lib/antlr-runtime-3.2.jar

      lib/aperture-core-1.5.0.jar

      lib/commons-beanutils.jar

      lib/commons-codec-1.4.jar

      lib/commons-collections-3.2.1.jar

      lib/commons-digester.jar

      ...

      lib/tp-server.jar

      lib/struts.jar

      ==========================================

       

      META-INF\application.xml

      ==========================================

      <?xml version="1.0" encoding="UTF-8"?>

      <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">

          <display-name>tp</display-name>

       

          <module id="my_ejb_module_id" >

              <ejb>my-ejb.jar</ejb>

          </module>

          <module id="my_war_module_id">

              <web>

                  <web-uri>tp.war</web-uri>

                  <context-root>/tp</context-root>

              </web>

          </module>

          <library-directory>lib</library-directory>

      </application>

      ==========================================

       

      It seems to tp.war can not find lib/struts.jar.

      How can i resolve this?

      Many thanks.