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

Summary: Persistence library not detected if GlassFish is not registered
Product: javaee Reporter: Petr Jiricka <pjiricka>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED FIXED    
Severity: normal CC: kganfield
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 178970    
Bug Blocks:    

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.