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.
I am using NB IDE 5.5.1 build 200703050600. Steps: - Create Blue Prints Persistence Web-only sample. - Set target server to Sun App Server - Right click on package ...autoid.model and do new Entity Classes from database. Will get exception dialog with: java.lang.ClassCastException: org.netbeans.modules.xml.core.XMLDataObject cannot be cast to org.netbeans.modules.j2ee.persistence.unit.PUDataObject at org.netbeans.modules.j2ee.persistence.dd.PersistenceUtils$EntityMappingsCache.getPUDataObject(PersistenceUtils.java:651)
Created attachment 39222 [details] log
This is caused by an invalid persistence.xml file in the sample. The error handling has been already improved in trunk, please see issue 90305 for a workaround and for more details on this. The problem has been filed against blueprints as well (issue 90376). *** This issue has been marked as a duplicate of 90305 ***