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 181940 - Persistence library not detected if GlassFish is not registered
Summary: Persistence library not detected if GlassFish is not registered
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on: 178970
Blocks:
  Show dependency tree
 
Reported: 2010-03-12 13:05 UTC by Petr Jiricka
Modified: 2010-04-26 08:46 UTC (History)
1 user (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 Petr Jiricka 2010-03-12 13:05:19 UTC
1. Use zip-based distribution without a registered GlassFish
2. Create a new Maven web application
3. Create a new Persistence Unit in this project
=> the Persistence Library field does not offer any pre-registered libraries, only the "New..." and "Manage..." items.
Comment 1 Sergey Petrov 2010-03-12 15:16:45 UTC
It may have sense to change behavior and block pu creation if server isn't set as there was other reports for maven like jta/local transaction choice etc as before server is selected it's not known if it support jta or not, also default and supported providers are unknown so pu wizard don't know what options to suggest and if it's required or not to add library and may be more.
Comment 2 Sergey Petrov 2010-03-16 12:21:04 UTC
require some decision on design in case if server platform/properties etc can't be defined
Comment 3 Sergey Petrov 2010-04-23 12:08:47 UTC
just tried with removed home dir in locally buils nb and the issue seems fixed by some change occasionally.
but according to 178970 it's not possible to create pu as server isn't set.
Comment 4 Petr Jiricka 2010-04-23 12:40:54 UTC
Yes, I think this can be closed now.
Comment 5 Sergey Petrov 2010-04-26 08:46:36 UTC
fixed either way if it will be allowed or not to create pu.