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 - Data source shown twice in persistence.xml design view
Summary: Data source shown twice in persistence.xml design view
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 12:00 UTC by MackSix
Modified: 2015-07-14 01:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example Project (23.88 KB, application/x-zip-compressed)
2015-02-16 12:00 UTC, MackSix
Details
SQL to create and populate tables (885 bytes, text/plain)
2015-02-16 12:01 UTC, MackSix
Details
Screenshot (29.58 KB, image/png)
2015-02-16 12:01 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
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