Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 241733 - Non-portable persistence.xml with <provider>
Non-portable persistence.xml with <provider>
Status: RESOLVED FIXED
Product: javaee
Classification: Unclassified
Component: Persistence
8.0
PC Mac OS X
: P3 (vote)
: 8.0
Assigned To: Sergey Petrov
issues@javaee
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-12 03:58 UTC by arungupta
Modified: 2014-02-13 02:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo