1 Reply Latest reply on Mar 12, 2009 8:02 AM by jaikiran

    jboss 5.x persitence.xml deploy problem

    zlajaj

      Hi,

      I user jboss 5.0.1 and have problem with persistence.xml deployment. I had problem with ear application so I removed everythig from ear application and just put persistence.xml and jboss-ds.xml files in deploy directory and still get same error, there's no any strack trace before this error :

      16:43:22,683 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      DEPLOYMENTS MISSING DEPENDENCIES:
       Deployment "persistence.unit:unitName=#ModuleAdmCbPersistence" is missing the following dependencies:
       Dependency "jboss.jca:name=
       java:/cbadmDS
       ,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=
       java:/cbadmDS
       ,service=DataSourceBinding' **")
       Deployment "persistence.unit:unitName=#ModuleRunCbPersistence" is missing the following dependencies:
       Dependency "jboss.jca:name=
       java:/cbrunDS
       ,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=
       java:/cbrunDS
       ,service=DataSourceBinding' **")
      
      DEPLOYMENTS IN ERROR:
       Deployment "jboss.jca:name=
       java:/cbrunDS
       ,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=
       java:/cbrunDS
       ,service=DataSourceBinding' **
       Deployment "jboss.jca:name=
       java:/cbadmDS
       ,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=
       java:/cbadmDS
       ,service=DataSourceBinding' **
      


      It seems like persistence.xml can not see DataSource.

      This is my ds-xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      
       <!-- The Hypersonic embedded database JCA connection factory config -->
      
       <!--
       $Id: hsqldb-ds.xml 76997 2008-08-12 22:29:19Z bstansberry@jboss.com $
       -->
      
      <datasources>
       <local-tx-datasource>
      
       <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
       <!-- Datasources are not available outside the virtual machine -->
       <jndi-name>cbadmDS</jndi-name>
       <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:XE</connection-url>
      
       <!-- The driver class -->
       <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      
       <!-- The login and password -->
       <user-name>cbadm</user-name>
       <password>cbadm</password>
      
       </local-tx-datasource>
      
      
       <local-tx-datasource>
      
       <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
       <!-- Datasources are not available outside the virtual machine -->
       <jndi-name>cbrunDS</jndi-name>
       <!--
       <use-java-context>false</use-java-context>
       -->
       <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:XE</connection-url>
      
       <!-- The driver class -->
       <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      
       <!-- The login and password -->
       <user-name>cbrun</user-name>
       <password>cbrun</password>
       </local-tx-datasource>
      </datasources>
      


      This is persistence.xml file :
      <?xml version="1.0" encoding="windows-1252" ?>
      <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_1_0.xsd"
       version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
       <persistence-unit name="ModuleAdmCbPersistence" transaction-type="JTA">
       <jta-data-source>
       java:/cbadmDS
       </jta-data-source>
       </persistence-unit>
      
       <persistence-unit name="ModuleRunCbPersistence" transaction-type="JTA">
       <jta-data-source>
       java:/cbrunDS
       </jta-data-source>
      
      </persistence-unit>
      </persistence>
      



      Thanks for any help