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

Summary: Non-portable persistence.xml with <provider>
Product: javaee Reporter: arungupta <arungupta>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

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