6 Replies Latest reply on May 10, 2013 4:28 AM by influence160

    problem with ear deployment on jBoss 7 (+ejb2)

    influence160

      i have an ear file with this structure

      bo.ear

      META-INF

      principals.xml

      MANIFEST.MF

      application.xml

      lib

           ...(*.jar)

      statistics-ejb.jar

      registration-ejb.jar

      ... (*-ejb.jar)

      bo-web.war

       

      this is the content of my "application.xml"

       

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

      <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">

       

      <application>

        <display-name>bo</display-name>

        <module id="bo-web">

          <web>

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

            <context-root>/boCtx</context-root>

          </web>

        </module>

        <module id="anticipation-ejb">

          <ejb>anticipation-ejb.jar</ejb>

        </module>

        <module id="registration-ejb">

          <ejb>registration-ejb.jar</ejb>

        </module>

        <module id="rfp-ejb">

          <ejb>rfp-ejb.jar</ejb>

        </module>

        <module id="d2t-ejb">

          <ejb>d2t-ejb.jar</ejb>

        </module>

        <module id="mail-ejb">

          <ejb>mail-ejb.jar</ejb>

        </module>

        <module id="notes-ejb">

          <ejb>notes-ejb.jar</ejb>

        </module>

        <module id="statistics-ejb">

          <ejb>statistics-ejb.jar</ejb>

        </module>

        <module id="pc-ejb">

          <ejb>pc-ejb.jar</ejb>

        </module>

        <module id="dtv-ejb">

          <ejb>dtv-ejb.jar</ejb>

        </module>

        <module id="demat-ejb">

          <ejb>demat-ejb.jar</ejb>

        </module>

        <module id="dtpx-ejb">

          <ejb>dtpx-ejb.jar</ejb>

        </module>

        <module id="dtp-ejb">

          <ejb>dtp-ejb.jar</ejb>

        </module>

        <module id="ndtp-ejb">

          <ejb>ndtp-ejb.jar</ejb>

        </module> 

          <module id="highlight-ejb">

          <ejb>highlight-ejb.jar</ejb>

        </module>

        <module id="dtpros-ejb">

          <ejb>dtpros-ejb.jar</ejb>

        </module>

        <module id="maninvest-ejb">

          <ejb>maninvest-ejb.jar</ejb>

        </module>

      </application>

       

       

      when I proceeded with the deployment of the ear,it failed, and i got this error :

       

      JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."bo.ear"."bo-web.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."bo.ear"."bo-web.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "bo-web.war" of deployment "bo.ear"

       

      13:53:22,705 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"bo.ear\".\"bo-web.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"bo.ear\".\"bo-web.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"bo-web.war\" of deployment \"bo.ear\""},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.bo.maninvest-ejb.ManInvestSession.Validatorjboss.naming.context.java.comp.bo.maninvest-ejb.ManInvestSessionMissing[jboss.naming.context.java.comp.bo.maninvest-ejb.ManInvestSession.Validatorjboss.naming.context.java.comp.bo.maninvest-ejb.ManInvestSession]","jboss.naming.context.java.comp.bo.maninvest-ejb.MIConvocationSession.Validatorjboss.naming.context.java.comp.bo.maninvest-ejb.MIConvocationSessionMissing[jboss.naming.context.java.comp.bo.maninvest-ejb.MIConvocationSession.Validatorjboss.naming.context.java.comp.bo.maninvest-ejb.MIConvocationSession]","jboss.naming.context.java.comp.bo.d2t-ejb.UserSession.Validatorjboss.naming.context.java.comp.bo.d2t-ejb.UserSessionMissing[jboss.naming.context.java.comp.bo.d2t-ejb.UserSession.Validatorjboss.naming.context.java.comp.bo.d2t-ejb.UserSession]","jboss.naming.context.java.comp.bo.dtpx-ejb.WorkspaceSession.Validatorjboss.naming.context.java.comp.bo.dtpx-ejb.WorkspaceSessionMissing[jboss.naming.context.java.comp.bo.dtpx-ejb.WorkspaceSession.Validatorjboss.naming.context.java.comp.bo.dtpx-ejb.WorkspaceSession]","jboss.naming.context.java.comp.bo.d2t-ejb.Country.ValidatorFactoryjboss.naming.context.java.comp.bo.d2t-ejb.CountryMissing[jboss.naming.context.java.comp.bo.d2t-ejb.Country.ValidatorFactoryjboss.naming.context.java.comp.bo.d2t-ejb.Country]","jboss.naming.context.java.comp.bo.maninvest-ejb.MIHighlightSession.ValidatorFactoryjboss.naming.context.java.comp.bo.maninvest-ejb.MIHighlightSessionMissing[jboss.naming.context.java.comp.bo.maninvest-ejb.MIHighlightSession.ValidatorFactoryjboss.naming.context.java.comp.bo.maninvest-ejb.MIHighlightSession]",.....................

       

      ..............................

      (see the log file in attachment)

       

      BUT, when I deleted the .war from the .ear ( and from "application.xml" ) , I didn't get this error, and the deployment succeeded.

      I don't really anderstant why :/

        • 1. Re: problem with ear deployment on jBoss 7 (+ejb2)
          sfcoy

          Please attach your web.xml (and jboss-web.xml if you have one).

          • 2. Re: problem with ear deployment on jBoss 7 (+ejb2)
            influence160

            here is my "web.xml" file .

            (I don't have jboss-web.xml file as I didn't need it)

            • 3. Re: problem with ear deployment on jBoss 7 (+ejb2)
              sfcoy

              The <ejb-link>...</ejb-link> elements do not seem to be getting picked up.

               

              Can you try prepending "jar-name#" in front of a couple of them to see if that reduces the number of errors?

               

              ie:

              {code:xml}<ejb-link>rfp-ejb.jar#RfpSession</ejb-link>{code}

              or

               

              {code:xml}<ejb-link>../rfp-ejb.jar#RfpSession</ejb-link>{code}

              • 4. Re: problem with ear deployment on jBoss 7 (+ejb2)
                sfcoy

                BTW, you realize that bo.ear/META-INF/principals.xml is not accessible to your application?

                 

                You need to add it to one of the jars in bo.ear/lib.

                • 5. Re: problem with ear deployment on jBoss 7 (+ejb2)
                  influence160

                  Stephen Coy a écrit:

                  The <ejb-link>...</ejb-link> elements do not seem to be getting picked up.

                   

                  Can you try prepending "jar-name#" in front of a couple of them to see if that reduces the number of errors?

                   

                  ie:

                  <ejb-link>rfp-ejb.jar#RfpSession</ejb-link>

                   

                  or

                   

                  <ejb-link>../rfp-ejb.jar#RfpSession</ejb-link>

                   

                  I tried it but it does'nt change anything

                  <ejb-link>anticipation-ejb.jar#DTAnticipationSession</ejb-link>
                  <ejb-link>../anticipation-ejb.jar#DTAnticipationSession</ejb-link>

                   

                            the logger shows :

                                 "jboss.naming.context.java.comp.bo.anticipation-ejb.DTAnticipationSession.ValidatorFactoryjboss.naming.context.java.comp.bo.anticipation-ejb.DTAnticipationSessionMissing[jboss.naming.context.java.comp.bo.anticipation-ejb.DTAnticipationSession.ValidatorFactoryjboss.naming.context.java.comp.bo.anticipation-ejb.DTAnticipationSession]",

                   

                   

                   

                  Stephen Coy a écrit:

                   

                  BTW, you realize that bo.ear/META-INF/principals.xml is not accessible to your application?

                   

                  You need to add it to one of the jars in bo.ear/lib.

                   

                  I don't think that this file can affect anything on deployment.

                  • 6. Re: problem with ear deployment on jBoss 7 (+ejb2)
                    influence160

                    I got it ! thanks for the help.

                     

                    it was related to a bad package naming :/