1 Reply Latest reply on Jan 2, 2015 1:28 AM by valsaraj viswanathan

    missing dependencies when deploying war in JBoss 7.1.1

    Eric Borcyk Newbie

      I am seeing the error below when I try to deploy a sample war file in JBoss 7.1.1:

       

      08:18:00,953 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.wm.FooWorkManager (missing) dependents:

      [service jboss.naming.context.java.module.commonj-sample.commonj-sample.env.wm.WorkManager]

       

      08:18:00,962 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps

      that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.commonj-sample.commonj-sample.env.wm.WorkManagerjboss.naming.context.java.wm.FooWorkManagerMissing[jboss.naming.context.java.module.commonj-sample.commonj-sample.env.wm.WorkManager

      jboss.naming.context.java.wm.FooWorkManager]"]}}}

       

      Here are my web.xml, jboss-web.xml and context.xml files:

       

      web.xml

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

      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

      <web-app>

        <display-name>CommonJ</display-name>

        <description>CommonJ Web Application</description>

       

        <servlet>

        <servlet-name>testServlet</servlet-name>

        <display-name>Test Servlet</display-name>

        <servlet-class>de.myfoo.test.TestServlet</servlet-class>

        </servlet>

       

        <servlet-mapping>

        <servlet-name>testServlet</servlet-name>

        <url-pattern>/Test</url-pattern>

        </servlet-mapping>

       

        <session-config>

        <session-timeout>60</session-timeout>

        </session-config>

        <welcome-file-list>

        <welcome-file>index.jsp</welcome-file>

        <welcome-file>index.html</welcome-file>

        </welcome-file-list>

       

        <resource-ref>

        <res-ref-name>wm/WorkManager</res-ref-name>

        <res-type>commonj.work.WorkManager</res-type>

        <res-auth>Container</res-auth>

        <res-sharing-scope>Shareable</res-sharing-scope>

        </resource-ref>

       

      </web-app>

       

      jboss-web.xml

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

      <jboss-web>

      <resource-ref>

          <res-ref-name>wm/WorkManager</res-ref-name>

          <res-type>commonj.work.WorkManager</res-type>

          <jndi-name>java:/wm/FooWorkManager</jndi-name>

        </resource-ref>

      </jboss-web>

       

      context.xml

      <Context reloadable="true">

      <Resource name="wm/WorkManager" auth="Container"

        type="commonj.work.WorkManager"

        factory="de.myfoo.commonj.work.FooWorkManagerFactory"

        maxThreads="10" />

      </Context>

       

      The war contains the implementation classes referenced in jar files in the WEB-INF/lib directory.  I don't understand what the error is referring to. The war name is commonj-sample.war.

       

      Any help would be much appreciated.