Nicola Modugno
2013-04-10 13:08:40 UTC
Nicola Modugno [https://community.jboss.org/people/nichisoft] created the discussion
"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.db"
To view the discussion, visit: https://community.jboss.org/message/807444#807444
--------------------------------------------------------------
*14:52:31,473 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.dbjboss.naming.context.java.module.s3ar-ear.\"s3ar-ejb-0.0.1-SNAPSHOT\".env.dbMissing[jboss.naming.context.java.dbjboss.naming.context.java.module.s3ar-ear.\"s3ar-ejb-0.0.1-SNAPSHOT\".env.db]"]}}}*
*persistence.xml*
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence"
         xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
         version="1.0">
         <persistence-unit name="db">
         <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>java:jboss/datasources/S3arDataSource</jta-data-source>Â
         <properties>
              <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
              <property name="hibernate.show_sql" value="true" />
              <property name="hibernate.format_sql" value="true" />
              <property name="hibernate.max_fetch_depth" value="2" />
              <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
              <property name="hibernate.transaction.auto_close_session" value="false" />
              <property name="hibernate.current_session_context_class" value="jta" />
              <property name="hibernate.archive.autodetection" value="class"/>
              <property name="hibernate.cache.use_second_level_cache" value="true"/>
              <property name="hibernate.cache.use_query_cache" value="true"/>
              <property name="hibernate.generate_statistics" value="true"/>
              <property name="hibernate.cache.use_structured_entries" value="true"/>
         </properties>
</persistence-unit>
</persistence>
*module.xml*
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="oracle.jdbc">
         <resources>
                   <resource-root path="ojdbc6.jar"/>
         </resources>
         <dependencies>
                   <module name="javax.api"/>
                   <module name="javax.transaction.api"/>
         </dependencies>
</module>
*standalone.xml*
<datasource jndi-name="java:jboss/datasources/S3arDataSource" pool-name="S3arDS" enabled="true" use-java-context="true"Â jta="true" use-ccm="true">
                   <connection-url>jdbc:oracle:oci:@CUPS3AR</connection-url>
                   <driver>OracleJDBCDriver</driver>
                   <security>
                       <user-name>USER_S3AR_EJB</user-name>
                       <password>EUROPA</password>
                   </security>
               </datasource>
<drivers>
                                                 <driver name="OracleJDBCDriver" module="oracle.jdbc">
                                                           <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
                                                 </driver>
</drivers>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807444#807444]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.db"
To view the discussion, visit: https://community.jboss.org/message/807444#807444
--------------------------------------------------------------
*14:52:31,473 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.dbjboss.naming.context.java.module.s3ar-ear.\"s3ar-ejb-0.0.1-SNAPSHOT\".env.dbMissing[jboss.naming.context.java.dbjboss.naming.context.java.module.s3ar-ear.\"s3ar-ejb-0.0.1-SNAPSHOT\".env.db]"]}}}*
*persistence.xml*
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence"
         xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
         version="1.0">
         <persistence-unit name="db">
         <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>java:jboss/datasources/S3arDataSource</jta-data-source>Â
         <properties>
              <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
              <property name="hibernate.show_sql" value="true" />
              <property name="hibernate.format_sql" value="true" />
              <property name="hibernate.max_fetch_depth" value="2" />
              <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
              <property name="hibernate.transaction.auto_close_session" value="false" />
              <property name="hibernate.current_session_context_class" value="jta" />
              <property name="hibernate.archive.autodetection" value="class"/>
              <property name="hibernate.cache.use_second_level_cache" value="true"/>
              <property name="hibernate.cache.use_query_cache" value="true"/>
              <property name="hibernate.generate_statistics" value="true"/>
              <property name="hibernate.cache.use_structured_entries" value="true"/>
         </properties>
</persistence-unit>
</persistence>
*module.xml*
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="oracle.jdbc">
         <resources>
                   <resource-root path="ojdbc6.jar"/>
         </resources>
         <dependencies>
                   <module name="javax.api"/>
                   <module name="javax.transaction.api"/>
         </dependencies>
</module>
*standalone.xml*
<datasource jndi-name="java:jboss/datasources/S3arDataSource" pool-name="S3arDS" enabled="true" use-java-context="true"Â jta="true" use-ccm="true">
                   <connection-url>jdbc:oracle:oci:@CUPS3AR</connection-url>
                   <driver>OracleJDBCDriver</driver>
                   <security>
                       <user-name>USER_S3AR_EJB</user-name>
                       <password>EUROPA</password>
                   </security>
               </datasource>
<drivers>
                                                 <driver name="OracleJDBCDriver" module="oracle.jdbc">
                                                           <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
                                                 </driver>
</drivers>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807444#807444]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]