NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
dbritton
Joined: 02 Jul 2009 Posts: 20
|
Posted: Thu Dec 03, 2009 4:46 pm Post subject: Application Client Enity Manager cannot find Persistence Unit with Java Web Start |
|
|
I have an Enterprise Application Project in Netbeans 6.7.1.
The enterprise application client module has the business code and the
persistence unit (TopLink) defined in the app-client.jar. I can run this
application clinet from NB without a problem.
I'm using JPA (EnityManager) in a Java SE environment.
When I try and run the app-client from Java Web Start I get an error
that the EnityManager cannot find the PU. The persistence unit is packaged in the app.ear->app-client.jar->META-INF->persistence.xml.
There's not a wealth of information, that I could find on the net, but this
seems to be correct.
The error I get is:
INFO: ACC009: Load Application Class: [jws.Main]
hello world! From JWS
Dec 3, 2009 11:44:21 AM com.sun.enterprise.appclient.MainWithModuleSupport <init>
WARNING: ACC003: Application threw an exception.
javax.persistence.PersistenceException: No Persistence provider for EntityManager named JWS-app-clientPU: The following providers:
oracle.toplink.essentials.PersistenceProvider
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.
Any ideas on what I need to do to properly package the PU for an Enterprise Application Client ??
Thanks,
David |
|
| Back to top |
|
 |
dbritton
Joined: 02 Jul 2009 Posts: 20
|
Posted: Fri Dec 11, 2009 4:42 pm Post subject: |
|
|
| Bump |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 612 Location: Simpsonville, SC
|
Posted: Mon Dec 14, 2009 2:57 pm Post subject: Re: Application Client Enity Manager cannot find Persistence Unit with Java Web Start |
|
|
Is this related to the bug below. If you are using TopLink or EclipseLink. You can not use the application client in offline mode if the persistence.xml file is retrieved from the server. Please vote on the bug.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=287718
On Fri, Dec 11, 2009 at 11:42 AM, dbritton <address-removed ([email]address-removed[/email])> wrote:
--
John Yeary
--
http://javaevangelist.blogspot.com
"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the grey twilight that knows not victory nor defeat."
-- Theodore Roosevelt |
|
| Back to top |
|
 |
|
|
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 You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|