DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page Persistence API Entities in different JARs in J2SE
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Talking Persistence API Entities in different JARs in J2SE - 07-28-2008, 10:20 AM

I posted this question on the Glassfish forums as well but haven't got a response all day...

I have an Entity in a different JAR file than the one containing the Persistence Unit. My EntityManager can't find the Entity even though I declare it with a <class> tag in the persistence.xml and include it on the Persistence Unit's classpath (I use NetBeans Platform so I wrap the JAR in a library wrapper module and include it as a a 'module dependency' -- the equivalent of adding it as a library to the project).

This thread at the Glassfish forums addresses the issue in J2EE but the <jar-file> tag is not supported in J2SE. The JavaDoc/XML schema for persistence.xml confirms this.

Is there another way to do this in J2SE? Why is the <jar-file> tag not supported in J2SE?
Reply With Quote
Reply

Tags
j2se, jpa, persistence

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying a new app with EMF jars using JWS issues jjabson Eclipse 0 12-19-2008 06:52 PM
Converting Jars to Eclipse Plugins qbproger Eclipse 0 03-06-2008 12:48 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com