Bug 62560 - Add "oraclepki.jar" to tomcat.util.scan.StandardJarScanFilter.jarsToSkip
Summary: Add "oraclepki.jar" to tomcat.util.scan.StandardJarScanFilter.jarsToSkip
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.5.x-trunk
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2018-07-21 19:17 UTC by Michael Osipov
Modified: 2018-08-06 19:44 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov 2018-07-21 19:17:56 UTC
This JAR is part Oracle Wallet implementation for the JDBC driver.  Unfortunately, it contains a "Class-Path" manifest entry which refers to other JARs in ORACLE_HOME. They shall be excluded to have ojdbc.jar as well as Wallet support available once per VM via common loader for all apps.
Comment 1 Michael Osipov 2018-07-21 19:21:47 UTC
A typical usecase is:

> <target name="link-libraries">
> 	<echo message="Linking additional libraries..." />
> 	<mkdir dir="${tomcat.dir}/lib/oracle" />
> 	<symlink link="${tomcat.dir}/lib/oracle/ojdbc6.jar" resource="${oracle.home}/jdbc/lib/ojdbc6.jar" />
> 	<symlink link="${tomcat.dir}/lib/oracle/oraclepki.jar" resource="${oracle.home}/jlib/oraclepki.jar" />
> 	<symlink link="${tomcat.dir}/lib/oracle/osdt_cert.jar" resource="${oracle.home}/jlib/osdt_cert.jar" />
> 	<symlink link="${tomcat.dir}/lib/oracle/osdt_core.jar" resource="${oracle.home}/jlib/osdt_core.jar" />
> </target>
Comment 2 Mark Thomas 2018-08-06 19:44:31 UTC
Fixed in:
- 9.0.x for 9.0.11 onwards
- 8.5.x for 8.5.33 onwards
- 7.0.x for 7.0.91 onwards