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 77353 - Unable to create persistence unit
Summary: Unable to create persistence unit
Status: RESOLVED DUPLICATE of bug 75850
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Freeform (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-03 23:01 UTC by navneet
Modified: 2006-07-12 10:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log for the Null Pointer Exception (28.16 KB, text/plain)
2006-06-03 23:02 UTC, navneet
Details
persistence.xml that was used (712 bytes, text/xml)
2006-06-03 23:03 UTC, navneet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description navneet 2006-06-03 23:01:20 UTC
- Installed Netbeans 5.5 Dev Release dated 20060601
- Defined MySQL JDBC Driver
- Added Library with MySQL Driver
- Connected to MySQL Database using the Database node in "Runtime"
- Open existing Web App that runs under Bundled Tomcat (not currently running )

Case 1: (No persistence.xml)
- Open sources folder. Right click and select "Entities from Database"
- In the dialog, select the jdbc connection and select all tables
- The dialog shows that there is no persistence unit that exists. Click on the
button to create it
- Gives NullPinterException ( log attached )

Case 2: (With persistence.xml)
- Open sources folder. 
- Create a persistence.xml (attached) and save in the entity folder
- Right click and select "Entities from Database"
- In the dialog, select the jdbc connection and select all tables
- The dialog shows that there is no persistence unit that exists. Click on the
button to create it
- Gives NullPinterException ( log attached )
Comment 1 navneet 2006-06-03 23:02:12 UTC
Created attachment 30767 [details]
Log for the Null Pointer Exception
Comment 2 navneet 2006-06-03 23:03:02 UTC
Created attachment 30768 [details]
persistence.xml that was used
Comment 3 Lukas Jungmann 2006-06-23 23:04:15 UTC
-> j2ee/persistence
Comment 4 Erno Mononen 2006-06-26 14:11:59 UTC
Did you have a standard web project or a free-form project (web application with 
existing ant script) ?
Comment 5 Jan Horvath 2006-06-26 14:30:10 UTC
I cannot reproduce it in standard web application. Please attach your project
Comment 6 Petr Jiricka 2006-07-12 10:02:36 UTC
I will assume this really refers to freeform so it is a duplicate of 75850.

*** This issue has been marked as a duplicate of 75850 ***