Bug 59899 - Tomcat-embed-core brings outdated JPA API
Summary: Tomcat-embed-core brings outdated JPA API
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Packaging (show other bugs)
Version: 8.5.4
Hardware: All All
: P2 normal with 1 vote (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2016-07-25 15:41 UTC by Stephane Nicoll
Modified: 2016-08-04 20:44 UTC (History)
2 users (show)


Note You need to log in before you can comment on or make changes to this bug.
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: