3 Replies Latest reply on Jan 3, 2016 12:32 AM by Jay SenSharma

    library ref from .war to .jar inside .ear

    Gary Aitken Newbie

      Hi all,

           

      This is clearly a newbie config question but my head is hurting from beating it against various walls...

      Trying to get an old (2010) app I know next to nothing about to run.

      Using wildfly 9.0.1 on fbsd.

       

      I have built a .ear which I suspect has incorrect xml descriptors in it;

        it contains a single .war and a .jar; the .war references a class in the .jar.

      When enabled in wildfly, I get a ClassNotFound exception.

      I thought the Class-Path reference in the war file should make it find the class in the jar file...

         

      Packaging is as follows:

      app.ear:

        META-INF/

        app.war:

          META-INF/

            MANIFEST.MF

              Class-Path: app.jar

          WEB-INF/

            jboss-web.xml

            web.xml

          classes/              (contains class referencing missing class)

          lib/                  (contains some .jar files needed by classes)

        app.jar:

          META-INF/

            jboss.xml

          classes/              (contains the missing org.abc.DMDSLLocalHome.class)

          lib/                  (contains .jar files needed by classes)

          ejb-jar.xml

          (other .xml files not yet relevant)

       

      2015-12-30 20:21:27,160 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-5) WFLYCTL0013:

          Operation ("deploy") failed - address: ([("deployment" => "app.ear")]) - failure description:

          {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"app.ear\".\"app.war\".POST_MODULE" =>

          "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"app.ear\".\"app.war\".POST_MODULE:

          WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"app.war\" of deployment \"app.ear\"

          Caused by: java.lang.RuntimeException: WFLYEJB0087: Could not load view org.abc.DMDSLLocalHome

          Caused by: java.lang.ClassNotFoundException: org.abc.DMDSLLocalHome from [Module \"deployment.app.ear.app.war:main\" from Servic

      e Module Loader]"}}

       

      Any pointers / hints would be much appreciated.