This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 76179 - PU wizard should not require persistence lib if it is on classpath
Summary: PU wizard should not require persistence lib if it is on classpath
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
Depends on: 80421
Blocks:
  Show dependency tree
 
Reported: 2006-05-10 19:59 UTC by Pavel Buzek
Modified: 2008-12-08 15:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2006-05-10 19:59:35 UTC
I saw this problem when testing a web app with tomcat/hibernate. The web app is
2.4 so it uses jdbc instead of data source. The PU wizard forces you to create a
library with hibernate ejb 3 entity manager to let you create a PU. But in
reality you do not need this library because the server already has it. Also,
you must not deploy the library with the web module otherwise jboss classloaders
will be confused. So I think that the PU wizard should detect if you already
have a EM provider in project cp (such as from server, but even otherwise) and
have an option <No Library - use provider from project> (maybe better wording...

Erno, Martine, what do you think?
Comment 1 Pavel Buzek 2006-05-10 20:00:15 UTC
I will do it for 5.5 is you see no problem with this.
Comment 2 Erno Mononen 2006-05-11 14:15:08 UTC
I think this is a good idea. Maybe provider's name could be displayed for this 
option also as there might be more than one provider in classpath.  
Comment 3 Erno Mononen 2007-01-04 09:16:23 UTC
Issue 80421 should be resolved before this can be implemented, now it is not 
possible to detect what persistence providers are already on the server.
Comment 4 Erno Mononen 2007-10-17 16:00:30 UTC
Setting the TM to future for now as issue 80421 needs to be fixed first (which likely won't happen before 6.0 since it 
was not accepted as a defect).
Comment 5 Dongmei Cao 2008-11-18 00:13:57 UTC
As for the particular issue describe in this issue, it does not exist any more (must have been fixed in 6.0). The user
does not required to have the persistence lib in the project before creating any PU. 

Mark it as fixed in 6.5 since I just verified in NB 6.5.
Comment 6 mvanek 2008-12-08 15:10:31 UTC
verified.
NetBeans IDE Dev (Build 200812080201)