[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem in deploying ejb

ashusri000 do-not-reply at jboss.com
Tue Jun 26 03:29:02 EDT 2007


I am unable to deploy a POJO  which I want to persist on Oracle database , but I am getting an error as  this while deploying it : 

--------------------------------------------------------------------------------------
12:35:05,187 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=sample123.ear,jar=persist.jar,unitName=testApp
  State: NOTYETINSTALLED
  I Depend On:
    jboss.jca:service=ManagedConnectionFactory,name=system

ObjectName: jboss.jca:service=XATxCM,name=system
  State: CONFIGURED
  I Depend On:
    jboss.jca:service=ManagedConnectionPool,name=system
    jboss.jca:service=CachedConnectionManager
    jboss:service=TransactionManager
  Depends On Me:
    jboss.jca:service=DataSourceBinding,name=system

ObjectName: jboss.jca:service=ManagedConnectionPool,name=system
  State: CONFIGURED
  I Depend On:
    jboss.jca:service=ManagedConnectionFactory,name=system
  Depends On Me:
    jboss.jca:service=XATxCM,name=system

ObjectName: jboss.jca:service=ManagedConnectionFactory,name=system
  State: CONFIGURED
  I Depend On:
    jboss.jca:service=RARDeployment,name='jboss-xa-jdbc.rar'
  Depends On Me:
    persistence.units:ear=sample123.ear,jar=persist.jar,unitName=testApp
    jboss.jca:service=ManagedConnectionPool,name=system

ObjectName: jboss.jca:service=DataSourceBinding,name=system
  State: CONFIGURED
  I Depend On:
    jboss.jca:service=XATxCM,name=system

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:service=RARDeployment,name='jboss-xa-jdbc.rar'
  State: NOTYETINSTALLED
  Depends On Me:
    jboss.jca:service=ManagedConnectionFactory,name=system

--------------------------------------------------------------------------------------

I have already put the oracle-xa-ds.xml file in the C:\jboss-4.0.4.GA\server\default\deploy directory and the contents look like this :
  <?xml version="1.0" encoding="UTF-8" ?> 
- <!--  ===================================================================== 
  --> 
- <!--                                                                        
  --> 
- <!--   JBoss Server Configuration                                           
  --> 
- <!--                                                                        
  --> 
- <!--  ===================================================================== 
  --> 
- <!--  $Id: oracle-xa-ds.xml,v 1.13 2004/09/15 14:37:40 loubyansky Exp $ 
  --> 
- <!--  ===================================================================== 
  --> 
- <!--  ATTENTION:  DO NOT FORGET TO SET Pad=true IN transaction-service.xml  
  --> 
- <!--  ===================================================================== 
  --> 
- 
- <xa-datasource>
  <jndi-name>system</jndi-name> 
  <track-connection-by-tx /> 
  <isSameRM-override-value>false</isSameRM-override-value> 
  <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class> 
  <xa-datasource-property name="URL">jdbc:oracle:thin:@127.0.0.1:1521:XE</xa-datasource-property> 
  <xa-datasource-property name="User">system</xa-datasource-property> 
  <xa-datasource-property name="Password">ashu</xa-datasource-property> 
- <!--  Uses the pingDatabase method to check a connection is still valid before handing it out from the pool 
  --> 
- <!-- valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name
  --> 
- <!--  Checks the Oracle error codes and messages for fatal errors 
  --> 
  <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name> 
- <!--  Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa 
  --> 
  <no-tx-separate-pools /> 
- <!--  corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) 
  --> 
- 
  <type-mapping>Oracle9i</type-mapping> 
  
  </xa-datasource>
- <!--  This mbean can be used when using in process persistent db
  
    <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager
  
  
  --> 
  

--------------------------------------------------------------------------------------
The POJO class that I have packed with an persistence unit has got a persistence.xml file that looks like this :--



<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="testApp" transaction-type="JTA">
 oracle.toplink.essentials.PersistenceProvider
<jta-data-source>java:/system</jta-data-source>
<!--  Database Properties -->
 

             
             
             
            
 
</persistence-unit>


--------------------------------------------------------------------------------------

Please let me know where I am making the mistake .





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057569#4057569

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057569



More information about the jboss-user mailing list