Mantis - Resin
Viewing Issue Advanced Details
5678 major always 03-07-14 01:53 08-27-14 14:17
mate  
ferg  
normal  
closed 4.0.37  
no change required  
none    
none  
0005678: (Allow) Upgrade JPA API to 2.1
If you want to use JPA 2.1 API with Resin, you currently need to modify the javaee-16.jar and replace the javax/persistence directory. In some (cloud) environments, patching jars may not be an option.

Please consider to either update the included JPA version, or at least extract the JPA part to a separate JAR file that can be replaced with a newer version (just like JSF).

Notes
(0006465)
fsamuels   
08-04-14 12:12   
This is particularly a problem for me because I would like to use Hibernate 4.3 which implements JPA 2.1.
(0006478)
ferg   
08-27-14 14:17   
<jvm-classpath> in <server-default> allows for classpath overriding. The classpath specified in <jvm-classpath> has priority over the default classpath.

<server-default>
  <jvm-classpath>/path/to/jpa21.jar</jvm-classpath>
</server-default>

server/6e62 tests this behavior for JPA by overriding javax.persistence.Cache (no change required)