-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with Hibernate and Jboss
PostPosted: Fri Dec 03, 2004 9:37 am 
Senior
Senior

Joined: Wed Sep 24, 2003 3:01 pm
Posts: 158
Location: Bragan�a Paulista - Brasil
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.4

JBoss Version: 3.2.3

Name and version of the database you are using: Oracle 9.2.0.1

Full 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

_________________
Tads


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.