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 241733 - Non-portable persistence.xml with <provider>
Summary: Non-portable persistence.xml with <provider>
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 03:58 UTC by arungupta
Modified: 2014-02-13 02:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arungupta 2014-02-12 03:58:29 UTC
Create a new Java EE 7 Web application
Target the application to GlassFish
Create a new Persistence Unit by right-clicking on project and selecting "New Persistence Unit"

The only Persistence Provider shown is "EclipseLink (JPA 2.1)(default)".

The generated persistence.xml has the following element:

<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>

This makes the application non-portable to other Java EE 7 compliant application servers, such as WildFly. There should be no need to define <provider> element as the container has an implementation-specific provider defined already.
Comment 1 Sergey Petrov 2014-02-12 10:06:05 UTC
Arun,
can you update your nb profile to use new email?
Comment 2 Sergey Petrov 2014-02-12 12:17:34 UTC
http://hg.netbeans.org/web-main/rev/720ddc0427fa
Comment 3 Quality Engineering 2014-02-13 02:44:05 UTC
Integrated into 'main-silver', will be available in build *201402130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/720ddc0427fa
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #241733 check if properties are jpa standard