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.
The aim is to generate persistence entities (EJB 3.0) from database tables. The project is an Enterprise Application project. The wizard comes up and imports the db-structure without a problem. Table selection and configuration of the generation process is no problem. The following error rises during generation: java.lang.AssertionError: Should have set configFilesFolder, e.g. by retrieving it from a PersistenceLocationProvider or EjbJar or by asking the user at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.createBeans(RelatedCMPWizard.java:226) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.access$100(RelatedCMPWizard.java:42) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard$2.run(RelatedCMPWizard.java:191) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Netbeans BUILD 200604110200 Java 1.5.0_05-b05 VM: Hotspot client I try this one using two tables, one with a multicolumn primary key which references a second table with a multicolumn primary key.
Which project is that? Are you sure it is an Enterprise Application (EAR) project? I think entity classes (and Java classes) are not supported in EAR projects. Marking as incomplete for now.
This was an EAR Project. The Persistence Classes should work, as they are the EJB 3.0 Standard. I hope I can reconstruct this error next week using the Beta Version.
Sorry, it is still not clear to me. I don't understand how you invoked the Entity Classes from Database wizard on an EAR project, since the wizard is not available in the New File wizard. Could it have been an EJB project inside an EAR project? Please post detailed reproducible steps.
I cannot reproduce this issue with the actual daily builds. So I mark it as WORKSFORME.