users@glassfish.java.net

Re: Can't deploy app client with Glassfish v3 - JPA problem

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Tue, 12 Jan 2010 16:33:51 -0800

As the error suggests, a container manager em (One injected using
@PersitenceContext) has to be of type JTA. Please update your
persitence.xml.

On 1/12/2010 10:03 AM, glassfish_at_javadesktop.org wrote:
> When I try and load the ear file into gf I get the following exception:
> java.lang.RuntimeException: The persistence-context-ref-name [.PcuFileSelector/em] in module [WPDN#WPDN-war.war] resolves to a persistence unit called [BeanLibPU] which is of type RESOURCE_LOCAL. Only persistence units with transaction type JTA can be used as a container managed entity manager. Please verify your application.
>
> I'm using EclipseLink(JPA 2.0), but the JTA checkbox is ghosted in netbeans.
>
> Any pointers would be appreciated.
> [Message sent by forum member 'dbritton60' (dbritton_at_web-spun.net)]
>
> http://forums.java.net/jive/thread.jspa?messageID=380379
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>