Bug 59899

Summary: Tomcat-embed-core brings outdated JPA API
Product: Tomcat 8 Reporter: Stephane Nicoll <stephane.nicoll>
Component: PackagingAssignee: Tomcat Developers Mailing List <dev>
Severity: normal CC: awilkinson, bclozel
Priority: P2    
Version: 8.5.4   
Target Milestone: ----   
Hardware: All   
OS: All   

Description Stephane Nicoll 2016-07-25 15:41:08 UTC
I just noticed that `tomcat-embed-core` brings an outdated JPA API. Spring Framework 5 requires JPA 2.1 now and unless I order the classpath in a  certain way, my app breaks when deployed in embedded tomcat because of this.

Would it be possible to upgrade the JPA API that Tomcat brings?
Comment 1 Mark Thomas 2016-07-25 16:55:14 UTC
Hmm. We have a sub-set of the JPA annotations so we can do resource injection. It would be better if we could remove that dependency entirely. I wonder if that is possible.
Comment 2 Mark Thomas 2016-08-04 20:44:27 UTC
I took a look at removing the dependency entirely but that was going to need a fair amount of reflection. Therefore, I updated the API for 8.0.x onwards (since this is a Java EE 7 change). The fix will be in: