Org.apache.tomcat.util.scan.standardjarscanner.processurls failed to scan

Org.apache.tomcat.util.scan.standardjarscanner.processurls failed to scan

Last updated on SEPTEMBER 15, 2022

Applies to:

JDBC - Version 19.3 and later
Information in this document applies to any platform.

Symptoms

During startup of tomcat while using jdbc 19.3, the following warning is seen:

ERROR
------
java.io.FileNotFoundException: <TOMCAT_HOME>\apache-tomcat-8.5.32\customlib\oraclepki.entry in MANIFEST./<PATH>/oracle jar (The system cannot find the file specified)
MF:/ojdbc8/19.3/ojdbc8-19.3.jar
WARNING [<HOST>] org.apache.tomcat.Class-Path: oraclepkiutil.scan.StandardJarScanner.processURLs Failed to scan [file:/<PATH>/apache-tomcat-8.5.32/customlib/oraclepki.jar]

from classloader hierarchy java.io.FileNotFoundException: <TOMCAT_HOME>\apache-tomcat-8.5.32\customlib\oraclepki.jar (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.jar.JarFile.(JarFile.java:167)
at java.util.jar.JarFile.(JarFile.java:131)
at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:188)
at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:65)
at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49)
at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:374)
at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:309)
at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:266)
at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1888)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1116)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:765)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.

Embedded tomcat giving failed to scan jars from classloader hierarchy

Questions : Embedded tomcat giving failed to scan jars from classloader hierarchy

2022-09-16T02:29:26+00:00 2022-09-16T02:29:26+00:00

876

I am newly trying out Embedded tomcat anycodings_tomcat version 8.0.15. Downloaded the maven anycodings_tomcat dependency into my project.

Create the necessary context and instances. anycodings_tomcat Tomcat server is coming up fine. But I am anycodings_tomcat getting the below warnings

Jun 17, 2017 9:50:44 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan  [file:/C:/Users/raghavender.n/.m2/repository/xalan/xalan/2.7.2/xercesImpl.jar] from classloader hierarchy
java.io.FileNotFoundException:C:\Users\raghavender.n\.m2\repository\xalan\xalan\2.7.2\xercesImpl.jar (The system cannot find the file specified)
WARNING: Failed to scan [file:/C:/Users/raghavender.n/.m2/repository/xalan/xalan/2.7.2/xml-apis.jar] from classloader hierarchy
java.io.FileNotFoundException: C:\Users\raghavender.n\.m2\repository\xalan\xalan\2.7.2\xml-apis.jar (The system cannot find the file specified)

<!-- https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-core -->
<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>
    <version>8.5.15</version>
</dependency>

How can i disable/avoid the warnings from anycodings_tomcat embedded tomcat jar?

Total Answers 3

25

Answers 1 : of Embedded tomcat giving failed to scan jars from classloader hierarchy

you can add anycodings_tomcat server.tomcat.additional-tld-skip-patterns=*.jar in anycodings_tomcat application.propertiesfile or server: anycodings_tomcat tomcat: anycodings_tomcat additional-tld-skip-patterns: anycodings_tomcat '*.jar' in application.ymlfile.

Refer : The Jar Scanner anycodings_tomcat Component、The official reply.

0

2022-09-16T02:29:26+00:00 2022-09-16T02:29:26+00:00Answer Link

mRahman

3

Answers 2 : of Embedded tomcat giving failed to scan jars from classloader hierarchy

Do not think xml-apis.jar is a anycodings_tomcat dependency needed by tomcat-embed-core anycodings_tomcat as shown with dependency hierachy.

For your error, make sure scope of anycodings_tomcat xml-apis.jar is not "provided", delete anycodings_tomcat all files under anycodings_tomcat C:/Users/raghavender.n/.m2/repository/xalan/xalan/ anycodings_tomcat and do "mvn clean install" then check if anycodings_tomcat xml-apis.jar is there.

For Spring Web Application with Embeded anycodings_tomcat Tomcat without Spring Boot , you may anycodings_tomcat refer to this post.

0

2022-09-16T02:29:26+00:00 2022-09-16T02:29:26+00:00Answer Link

miraj

1

Answers 3 : of Embedded tomcat giving failed to scan jars from classloader hierarchy

For workaround, in catalina.properties anycodings_tomcat file put the following line:

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar

0

2022-09-16T02:29:26+00:00 2022-09-16T02:29:26+00:00Answer Link

joy