users@glassfish.java.net

Re: Problem with the key type with findById

From: <glassfish_at_javadesktop.org>
Date: Sun, 14 Mar 2010 10:13:00 PDT

Error indicates "Cannot use an EntityTransaction while using JTA".
The source of the problem may be with your persistence.xml file.
I said maybe...
If you've deployed your app in a container, there must be something wrong with your code. You may be using an illegal command to control the synchronization between the persistence context and your underlying database. The command may have remained from your test cases!
[Message sent by forum member 'youness_teimoury' (youness126_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=391800