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 250444

Summary: Data source shown twice in persistence.xml design view
Product: javaee Reporter: MackSix
Component: PersistenceAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal CC: MackSix
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Example Project
SQL to create and populate tables
Screenshot

Description MackSix 2015-02-16 12:00:29 UTC
Created attachment 152008 [details]
Example Project

1. Install GlassFish 4.1 and register in Services window.
3. Create new Java DB database named "addressbook" and use attached sql file to create and populate tables
2. Open attached project in NetBeans.
3. Compile project and run it to check if it works.
4. Open persistence.xml and drop open the Data source combo box and notice jdbc/addressbook is listed twice.

Expected: jdbc/addressbook is only listed one time.

See attached screenshot.

Product Version: NetBeans IDE Dev (Build 201502150001)
Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2015-02-16 12:01:09 UTC
Created attachment 152009 [details]
SQL to create and populate tables
Comment 2 MackSix 2015-02-16 12:01:32 UTC
Created attachment 152010 [details]
Screenshot
Comment 3 Petr Hejl 2015-07-13 13:27:03 UTC
Fixed in web-main f67707586762.
Comment 4 Quality Engineering 2015-07-14 01:17:03 UTC
Integrated into 'main-silver', will be available in build *201507140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f67707586762
User: Petr Hejl <phejl@netbeans.org>
Log: #250444 - Data source shown twice in persistence.xml design view