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 202420 - [71cat] compile fails when using more than one persistence provider
Summary: [71cat] compile fails when using more than one persistence provider
Status: RESOLVED DUPLICATE of bug 183779
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Martin Fousek
Depends on:
Reported: 2011-09-21 13:01 UTC by muellermi
Modified: 2011-11-16 16:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2011-09-21 13:01:33 UTC
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.
Comment 1 Sergey Petrov 2011-09-22 03:15:07 UTC

*** This bug has been marked as a duplicate of bug 183779 ***