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

    problem with ear deployment on jBoss 7 (+ejb2)

    Othmen Tiliouine Newbie

      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 :/