Bug 61439 - Stop shipping JavaEE APIs as part as tomcat-embed-core
Summary: Stop shipping JavaEE APIs as part as tomcat-embed-core
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Packaging (show other bugs)
Version: 8.5.x-trunk
Hardware: All All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-17 15:11 UTC by Stephane Nicoll
Modified: 2017-09-29 14:36 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Nicoll 2017-08-17 15:11:08 UTC
This relates to #59899 and the support of Java9 which is summarized in this Spring Boot issue: https://github.com/spring-projects/spring-boot/issues/9366

Essentially, we are wondering if you would consider stop shipping JavaEE APIs and rather rely on official JAR(s). That way, we (and anyone) could apply regular build exclusion in case we are shipping it ourselves or if we want to provide a more recent version.
Comment 1 Mark Thomas 2017-08-31 14:50:15 UTC
Fixed in:
- trunk for 9.0.0.M27 onwards
- 8.5.x for 8.5.21 onwards
- 8.0.x for 8.0.47 onwards
- 7.0.x for 7.0.82 onwards
Comment 2 Mark Thomas 2017-09-29 13:45:50 UTC
The current solution doesn't quite meet the requirement.

My current thinking is to remove the javax.ejb, javax.persistence and javax.xml.ws classes from the distributed JARS entirely. Essentially make the code that references these classes optional based on the presence of those classes - similar to the way we handle javax.mail
Comment 3 Andy Wilkinson 2017-09-29 13:49:38 UTC
FWIW, the new proposal sounds good to me. I think that'll resolve the problem that we've got in Boot with the current solution.
Comment 4 Mark Thomas 2017-09-29 14:36:42 UTC
It didn't quite make this weeks's releases.

Fixed in:
- trunk for 9.0.2 onwards
- 8.5.x for 8.5.24 onwards
- 8.0.x for 8.0.48 onwards
- 7.0.x for 7.0.83 onwards