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.
When creating a persistence unit in a normal NetBeans 6.8 EJB project sets the persistence attribute to JTA. If you create a Maven EJB project and do the same thing, it sets the persistence attribute to Resource Local. The user then needs to read the server.log to find out what is wrong. This is related to : https://netbeans.org/bugzilla/show_bug.cgi?id=159873
It's either invalid issue or some kind of enhancement, as persistence know nothing if server which isn't yet set for project and will be set in future support jta or not. in ant based ejb project server is set on project creation step.
as a workaround server should be set in properties. as enhanment update to p2 as the question appears quite frequently and it's good to decide on design changes.