7 Replies Latest reply on Nov 27, 2012 7:08 AM by ctomc

    JBAS014771: Services with missing/unavailable dependencies

    slwbb88

      Can anyone help me with this problems? Thanks in advance. I met a problem with error "JBAS014771: Services with missing/unavailable dependencies".

       

      the standalone.xml are as following:

        <subsystem xmlns="urn:jboss:domain:datasources:1.0">

                  <datasources>

                      <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">

                          <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>

                          <driver>h2</driver>

                          <security>

                              <user-name>sa</user-name>

                              <password>sa</password>

                          </security>

                      </datasource>

                      <datasource jta="true" jndi-name="java:/datasources/FimatexDS" pool-name="FimatexDS" enabled="true" use-java-context="true" use-ccm="true">

                          <connection-url>jdbc:oracle:thin:@10.25.153.62:1521:hfm</connection-url>

                          <driver>oracle</driver>

                          <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>

                          <pool>

                              <prefill>true</prefill>

                              <use-strict-min>false</use-strict-min>

                              <flush-strategy>FailingConnectionOnly</flush-strategy>

                          </pool>

                          <security>

                              <user-name>FIMATEX</user-name>

                              <password>oracle</password>

                          </security>

                      </datasource>

                      <drivers>

                          <driver name="h2" module="com.h2database.h2">

                              <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>

                          </driver>

                          <driver name="oracle" module="com.oracle.ojdbc6">

                              <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>

                          </driver>

                      </drivers>

                  </datasources>

              </subsystem>

       

       

      persistence.xml:

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

      <persistence version="2.0"

                   xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                   xsi:schemaLocation="

              http://java.sun.com/xml/ns/persistence

              http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

          <persistence-unit name="primary">

              <!-- If you are running in a production environment, add a managed

      data source, this example data source is just for development and testing! -->

              <!-- The datasource is deployed as WEB-INF/fimatex-ds.xml, you

      can find it in the source at src/main/webapp/WEB-INF/fimatex-ds.xml -->

              <jta-data-source>java:/datasources/FimatexDS</jta-data-source>

              <properties>

                  <!-- Properties for Hibernate -->

                  <property name="hibernate.hbm2ddl.auto" value="none"/>

                  <property name="hibernate.show_sql" value="true"/>

              </properties>

          </persistence-unit>

      </persistence>

       

       

      With these 2 files, My application runs Ok in WindowsXp environment, but when I deploy war file into the linux environment, following error information appears in the log of jboss-as-7.1.1.Final.

       

      15:52:13,100 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for primary
      15:52:13,466 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment fimatex.war
      15:52:13,482 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named PostboxService in deployment unit
      deployment "fimatex.war" are as follows:

              java:global/fimatex/PostboxService!com.tsystems.postbox.service.itf.IPostboxService
              java:app/fimatex/PostboxService!com.tsystems.postbox.service.itf.IPostboxService
              java:module/PostboxService!com.tsystems.postbox.service.itf.IPostboxService
              java:global/fimatex/PostboxService
              java:app/fimatex/PostboxService
              java:module/PostboxService

      15:52:13,489 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named MockService in deployment unit dep
      loyment "fimatex.war" are as follows:

              java:global/fimatex/MockService!com.tsystems.postbox.service.itf.IMockService
              java:app/fimatex/MockService!com.tsystems.postbox.service.itf.IMockService
              java:module/MockService!com.tsystems.postbox.service.itf.IMockService
              java:global/fimatex/MockService
              java:app/fimatex/MockService
              java:module/MockService

      15:52:14,123 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)
      15:52:14,129 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: fimatex.war
      15:52:14,175 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900 1.1.5 (AS71)
      15:52:14,311 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://0.0.0.0:9090
      15:52:14,311 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 8348ms - Started 204 of 327 services (45 services failed or missing d
      ependencies, 76 services are passive or on-demand)
      15:52:14,525 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "fimatex.war" was rolled back with failure message {"JBAS014771: Services with missing/una
      vailable dependencies" => ["jboss.persistenceunit.\"fimatex.war#primary\"jboss.naming.context.java.jboss.datasources.FimatexDSMissing[jboss.persistenceunit.\"fimatex.war#primary\"jboss.naming.cont
      ext.java.jboss.datasources.FimatexDS]"]}
      15:52:14,666 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment fimatex.war in 147ms
      15:52:14,670 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.naming.context.java.jboss.datasources.FimatexDS (missing) dependents: [service jboss.persistenceunit."fimatex.war#primary"]

      15:52:14,672 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.persistenceunit.\"fimatex.war#primary\"jboss.naming.context.java.jboss.datasources.FimatexDSMissing[jboss.persistenceun
      it.\"fimatex.war#primary\"jboss.naming.context.java.jboss.datasources.FimatexDS]"]}}}