Beginner |
|
Joined: Sat Apr 16, 2005 4:43 am Posts: 24 Location: Kolkata,India
|
Fact : JBoss4.0+Oracle10g+Hibernate (deployer Upgraded to hibernate 3.0)
Fact: Deploying Hibernate Application followed hibernate.org/66.html
oracle-xa.ds.xml
-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<xa-datasource>
<jndi-name>XAOracleDS</jndi-name>
<track-connection-by-tx>true</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:@192.168.16.7:1521:kris
</xa-datasource-property>
<xa-datasource-property name="User">demo</xa-datasource-property>
<xa-datasource-property name="Password">demo</xa-datasource-property>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
</exception-sorter-class-name>
<no-tx-separate-pools/>
</xa-datasource>
<mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter"
name="jboss.jca:service=OracleXAExceptionFormatter">
<depends optional-attribute-name="TransactionManagerService">
jboss:service=TransactionManager
</depends>
</mbean>
</datasources>
jboss-service.xml
------------------------
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.hibernate.jmx.HibernateService"
name="jboss.jca:service=HibernateFactory,
name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<!--Make it Deploy ONLY after Datasource has been started-->
<depends>jboss.jca:service=XATxCM,name=XAOracleDS</depends>
<attribute name="MapResources">mappings/tb_vou_main.hbm.xml,
mappings/tb_vou_det.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/XAOracleDS</attribute>
<attribute name="Dialect">org.hibernate.dialect.Oracle9Dialect</attribute>
<attribute
name="TransactionStrategy">org.hibernate.transaction.JTATransactionFactory</attribute>
<attribute
name="TransactionManagerLookupStrategy">org.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="ShowSqlEnabled">true</attribute>
</mbean>
</server>
I am getting this error
cglib enhancement failed
any ideas why??.
Deep
_________________ Greetings
|
|