dev@glassfish.java.net

Re: PU with TX Type JTA

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Mon, 18 Jun 2007 09:19:51 -0400

The last line is the most important: "Please verify your application.".
Right-click on the project node and select "Verify Project". You'll get
details that help in patching things up.

   -- Ed

Arun Gupta wrote:
> Here is a great error message I see when deploying an error:
>
> -- cut here --
> Deploying application in domain failed; Deployment Error -- The
> persistence-context-ref-name [sample.NewServlet/em] in module
> [C:\Users\Arun Gupta\WebApplication5\build\web] resolves to a
> persistence unit called [JavaLibrary1PU] 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.
> -- cut here --
>
> Little detailed but very clearly conveys what is possibly wrong in the
> application. Now how do I fix it when generating this PU in NB ?
>
> -Arun