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.
Product Version = NetBeans IDE Dev (Build 201109180600) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.7.0 Runtime = Java HotSpot(TM) Client VM 21.0-b17 - create a web project - create at least one Entity class If you define more than one persistence unit, e.g. one for regular mode and a second one for unit test, everything works fine (run app, run test), but if you want to build the dist/xxx.war (e.g. clean and build), you'll get an error: Attempt to recreate a file for type yourEntityClass_ (with additional underscore) It seems as if NetBeans tries to generate the same file for EVERY persistence unit.
*** This bug has been marked as a duplicate of bug 183779 ***