Bug 58208 - WebappClassLoaderBase fails to load sealed jar
Summary: WebappClassLoaderBase fails to load sealed jar
Status: RESOLVED DUPLICATE of bug 58192
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.0.24
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-04 16:43 UTC by Jörg Hohwiller
Modified: 2015-08-04 20:31 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Hohwiller 2015-08-04 16:43:09 UTC
I am deploying a WAR with a sealed oracle driver (ojdbc7-12.1.0.2.jar).
This works fine in apache-tomcat-8.0.23 but refused to work with apache-tomcat-8.0.24 with this error:

Caused by: java.lang.SecurityException: Sealing violation loading oracle.jdbc.driver.OracleDriverExtension : Package oracle.jdbc.driver is sealed.
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2468) ~[catalina.jar:8.0.24]
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:857) ~[catalina.jar:8.0.24]


I initially create this issue at spring-boot because I expected the spring-boot boostrap to be the source of the problem but as it works fine with 8.0.23 it clearly seems to be a bug introduced with 8.0.24.
Here is the original issue with additional details:
https://github.com/spring-projects/spring-boot/issues/3656
Comment 1 Mark Thomas 2015-08-04 18:30:22 UTC
I can't reproduce this with a simple JSP that loads the driver and the class listed in the error above.

Please provide the simplest possible test case (ideally a single JSP) that generates this error when used with a web application that includes only ojdbc7-12.1.0.2.jar in WEB-INF/lib.
Comment 2 Jörg Hohwiller 2015-08-04 20:30:52 UTC
Maybe we can create a sample out of here:

https://github.com/spring-projects/spring-boot/blob/master/spring-boot-samples/spring-boot-sample-data-jpa/pom.xml

by switching to oracle driver and chaning to WAR packaging.
However this is quite some effort.
I also do not see much changes to reproduce this with a JSP.

Are there changes in org.apache.catalina.loader.WebappClassLoaderBase or related between 8.0.23 and 8.0.24 related to this?
Comment 3 Mark Thomas 2015-08-04 20:31:50 UTC
Scratch that. I can see where the problem is. Different symptom but the same root cause as a previously reported issue.

*** This bug has been marked as a duplicate of bug 58192 ***