Hi all,
I´m having a problem when a try to use the method find of Session Class.
I created a .sar in JBoss where the jboss-service.xml is the following:
Code:
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory, name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=projds</depends>
<attribute name="MapResources">
.. .hbm.xml´s
</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/projds</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.OracleDialect</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
</mbean>
</server>
Hibernate version: 2.1.4JBoss Version: 3.2.3Name and version of the database you are using: Oracle 9.2.0.1Full stack trace of any exception that occurs:Code:
2004-12-02 16:44:55,968 - ERROR net.sf.hibernate.transaction.JTATransaction - Could not register Synchronization
javax.transaction.RollbackException: Already marked for rollback
at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:689)
at net.sf.hibernate.transaction.JTATransaction.begin( JTATransaction.java169
at net.sf.hibernate.transaction.JTATransactionFactory.beginTransaction(JTATransactionFactory.java:58)
at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2227)
at proj.database.DataSource.find(DataSource.java:265)
at proj.j2ee.sigmai.dao.manager.BdDAO.findBdDelay(BdDAO.java:263)
at proj.j2ee.sigmai.model.bo.manager.BdBO.findBdDelay(BdBO.java:863)
Somebody knows this problem?
thanks,
[]´s