5 Replies Latest reply on Aug 9, 2014 8:17 AM by Prashanth Bhat

    JBAS014771: Services with missing/unavailable dependencies

    john smith Newbie

      Hi,

      while I deploy my ear file on jboss7, I got following error.

       

      17:22:05,625 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment ap-ejb.jar in 57ms

      17:22:05,609 INFO  [org.jboss.as.server] (HttpManagementService-threads - 6) JBAS015870: Deploy of deployment "ap.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.ap.ap-ejb.RoleSecurityEEJB.ORBjboss.naming.context.java.comp.ap.ap-ejb.RoleSecurityEEJBMissing[jboss.naming.context.java.comp.ap.ap-ejb.RoleSecurityEEJB.ORBjboss.naming.context.java.comp.ap.ap-ejb.RoleSecurityEEJB]","jboss.naming.context.java.comp.ap.ap-ejb.XMLReportHelperSEJB.ValidatorFactoryjboss.naming.context.java.comp.ap.ap-ejb.XMLReportHelperSEJBMissing[jboss.naming.context.java.comp.ap.ap-ejb.XMLReportHelperSEJB.ValidatorFactoryjboss.naming.context.java.comp.ap.ap-ejb.XMLReportHelperSEJB]","jboss.naming.context.java.comp.ap.ap-ejb.ChangeManagementSEJB.ORBjboss.naming.context.java.comp.ap.ap-ejb.ChangeManagementSEJBMissing[jboss.naming.context.java.comp.ap.ap-ejb.ChangeManagementSEJB.ORBjboss.naming.context.java.comp.ap.ap-ejb.ChangeManagementSEJB]",

      ...

       

      And my ejb-jar.xml like this.

      <?xml version="1.0"?>

      <ejb-jar version="3.0" 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/ejb-jar_3_0.xsd"> 

      ....

      <entity>

      <description>ROLE_SECURITY table entity bean</description>

      <display-name>RoleSecurityEEJB</display-name>

      <ejb-name>RoleSecurityEEJB</ejb-name>

      <local-home>com.cad.ap.ejb.impl.role.RoleSecurityLocalHome</local-home>

      <local>com.cad.ap.ejb.impl.role.RoleSecurityLocal</local>

      <ejb-class>com.cad.ap.ejb.impl.role.RoleSecurityEEJB</ejb-class>

      <persistence-type>Bean</persistence-type>

      <prim-key-class>com.cad.ap.dto.role.RoleSecurityPK</prim-key-class>

      <reentrant>False</reentrant>

      <resource-ref>

          <res-ref-name>jdbc/fc</res-ref-name><res-type>javax.sql.DataSource</res-type><res-auth>Container</res-auth>

          <lookup-name>java:/jdbc/fc</lookup-name>

      </resource-ref>

      </entity>

      ....

      </ejb-jar>

       

      I guess i did not configure well ejb-jar.xml.

      How to resolve this?

       

      Many thanks in anticipation.

        • 1. Re: JBAS014771: Services with missing/unavailable dependencies
          erasmo2 marciano2 Master

          Are you sure that this libraty are in your Jboss?

           

          <ejb-name>RoleSecurityEEJB</ejb-name>

          <local-home>com.cad.ap.ejb.impl.role.RoleSecurityLocalHome</local-home>

          <local>com.cad.ap.ejb.impl.role.RoleSecurityLocal</local>

          <ejb-class>com.cad.ap.ejb.impl.role.RoleSecurityEEJB</ejb-class>

          • 2. Re: JBAS014771: Services with missing/unavailable dependencies
            john smith Newbie

            This is my ear file strcuture.

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

            META-INF/MANIFEST.MF

            META-INF/

            META-INF/application.xml

            META-INF/jboss-app.xml

            META-INF/jboss-deployment-structure.xml

            ap-ejb.jar

            help.war

            tc.war

            lib/

            lib/IdentityManager.jar

            lib/JavaCosignV3.jar

            lib/antlr-2.7.7.jar

            lib/antlr-runtime-3.2.jar

            lib/ap-common.jar

            lib/ap-ejb.jar

            lib/ap-server.jar

            lib/aperture-core-1.5.0.jar

            lib/bsh-2.0b5.jar

            lib/coaLM.jar

            lib/coalnf.jar

            lib/commons-beanutils.jar

            lib/commons-codec-1.4.jar

            lib/commons-collections-3.2.1.jar

            lib/commons-digester.jar

            lib/commons-fileupload-1.2.1.jar

            lib/commons-httpclient-3.1.jar

            lib/commons-io-1.4.jar

            lib/commons-net.jar

            lib/commons-pool-1.3.jar

            lib/commons-validator-1.3.1.jar

            lib/framework.jar

            lib/jakarta-oro.jar

            lib/jcifs-1.2.20c.jar

            lib/jcommon-1.0.13.jar

            lib/jfreechart-1.0.10.jar

            lib/jnlp-servlet.jar

            lib/jsonrpc-1.0.jar

            lib/jxl.jar

            lib/log4j-1.2.15.jar

            lib/poi-ooxml-3.8.jar

            lib/poi_3_8.jar

            lib/portalClient.jar

            lib/rdf2go.api-4.7.3.jar

            lib/relaxngDatatype.jar

            lib/sitemesh-2.2.1.jar

            lib/slf4j-api-1.6.1.jar

            lib/stats-client.jar

            lib/stringtemplate-3.2.1.jar

            lib/struts.jar

            lib/userService-client.jar

            lib/webwork.jar

            lib/webworkclient.jar

            lib/xmlbeans-2.3.0.jar

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

            And com.cad.ap.ejb.impl.role.RoleSecurityEEJB is in ap-server.jar.

             

            This is META-INF/manifest.mf file.

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

            Manifest-Version: 1.0

            Ant-Version: Apache Ant 1.7.0

            Created-By: 10.0-b23 (Sun Microsystems Inc.)

            Class-Path: lib/struts.jar lib/ap-server.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>cp</display-name>

             

                <module id="ap_ejb_module_id">

                    <ejb>ap-ejb.jar</ejb>

                </module>

                <module id="tc">

                    <web>

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

                        <context-root>/ap</context-root>

                    </web>

                </module>   

             

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

            </application>

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

             

            META-INF/jboss-deployment-structure.xml

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

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

            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

                <sub-deployment name="tc.war">

                    <dependencies>

                      <module name="deployment.ap.ear.lib.struts.jar" />

                      <module name="deployment.ap.ear.lib.ap-server.jar" />

                    </dependencies>

                </sub-deployment>

            </jboss-deployment-structure>

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

            • 3. Re: JBAS014771: Services with missing/unavailable dependencies
              john smith Newbie

              When I deploy ap-ejb.jar only, ear file was successfully deployed.

              But after i try to deploy tc.war too, the error occurred.

              I already fixed MDB issues and MDB error does not occure anymore.

              but i don't know how to fix entity beans with ejb-jar.xml.

               

              And This is part of server.log.

              JBAS014775:New missing/unsatisfied dependencies:
                service jboss.module.spec.service."deployment.ap.ear.lib.ap-server.jar".main (missing) dependents: [service jboss.module.service."deployment.ap.ear.utc.war".main]
                service jboss.module.spec.service."deployment.ap.ear.lib.ap-utc.jar".main (missing) dependents: [service jboss.module.service."deployment.ap.ear.utc.war".main]
                service jboss.module.spec.service."deployment.ap.ear.lib.struts.jar".main (missing) dependents: [service jboss.module.service."deployment.ap.ear.utc.war".main]
                service jboss.naming.context.java.comp.ap.ap-ejb.AmmModelEEJB (missing) dependents: [service jboss.naming.context.java.comp.ap.ap-ejb.AmmModelEEJB.ValidatorFactory, service jboss.naming.context.java.comp.ap.ap-ejb.AmmModelEEJB.ORB, service jboss.naming.context.java.comp.ap.ap-ejb.AmmModelEEJB.HandleDelegate, service jboss.naming.context.java.comp.ap.ap-ejb.AmmModelEEJB.Validator]

              ....

              • 4. Re: JBAS014771: Services with missing/unavailable dependencies
                Stephen Coy Master

                Please attach a complete server.log.

                 

                Also note that as per the JavaEE spec, servlet, jsp and jsf APIs are only visible to web modules. I see that you have struts.jar in your EAR/lib directory. Typically this must be in your tc.war/WEB-INF/lib directory.

                 

                If this creates big portability issues for you then you will need to fudge around it using a jboss-deployment-structure.xml file.

                • 5. Re: JBAS014771: Services with missing/unavailable dependencies
                  Prashanth Bhat Newbie

                  scoy

                  I have similar issue

                   

                  ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "FirstGen20140802_121633.ear")]) - failure description: {

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

                      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: com.firstapex.fic.claims.servicecontroller.DFClaimPreviewServlet from [Module \"deployment.FirstGen20140802_121633.ear.FirstGen.war:main\" from Service Module Loader]

                      Caused by: java.lang.ClassNotFoundException: com.firstapex.fic.claims.servicecontroller.DFClaimPreviewServlet from [Module \"deployment.FirstGen20140802_121633.ear.FirstGen.war:main\" from Service Module Loader]"},

                      "JBAS014771: Services with missing/unavailable dependencies" => []

                   

                   

                  not able deploy with war .

                   

                  Re: ClassNotFoundException while deploying ear

                   

                  i use webwork-2.2 , xwork  and free-marker.

                   

                   

                  any solution without jboss-deployment-structure.xml?