[jboss-user] [Beginner's Corner] - Re: JBoss5.1.0 + JPA = Object not persists

Wolf-Dieter Fink do-not-reply at jboss.com
Tue Oct 4 02:06:50 EDT 2011


Wolf-Dieter Fink [http://community.jboss.org/people/wdfink] created the discussion

"Re: JBoss5.1.0 + JPA = Object not persists"

To view the discussion, visit: http://community.jboss.org/message/629969#629969

--------------------------------------------------------------
> Amit Ajmani wrote:
> 
> and i am using TransactionManagement.Container in my Stateless EJB. I have put the hibernate-jpa-2.0-final.jar in server/default/lib folder.
> 
> The problem is :
> Whenever i invoke a method to persist an object, sometimes it works well and save it into DB and sometimes it wont, just increases the hibernate_sequence value and and comes out silently without even throwing an exception but does not fire an insert query .
> 
> But when i run the same application over JBoss6.0 it works perfectly.
> 
> Any clue on this ........

Why you put hibernate-jpa-2.0 jar into the lib directory. The JBoss supports hibernate and jpa (maybe not 2.0) and it might conflict with it.
Do you must use jpa2.0??

Work sometimes sounds to me like a transaction rollback ... do you see any in the logfiles?

Why and what do you use instead of 6.0 when it works with it?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/629969#629969]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111004/5dbb6066/attachment.html 


More information about the jboss-user mailing list