Tomcat 8 is failing to find jar after updating to JWS 3.1.0

Solution Verified - Updated -

Issue

  • After upgrading to Tomcat 8.0.36 from JWS 3.1.0, we started seeing FileNotFoundException from Tomcat trying to look up and find some strange jar that is not provided in any lib folders:
WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.scan Failed to scan [file:/path/to/jws/tomcat8/lib/strangelib.jar] from classloader hierarchy
 java.io.FileNotFoundException: /path/to/jws/tomcat8/lib/strangelib.jar (No such file or directory)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:225)
    at java.util.zip.ZipFile.<init>(ZipFile.java:155)
    at java.util.jar.JarFile.<init>(JarFile.java:166)
    at java.util.jar.JarFile.<init>(JarFile.java:130)
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60)
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43)
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:322)
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:272)
    at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1887)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1127)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:306)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5202)

Environment

  • JBoss Web Server (JWS) 3.1.0
    • Tomcat 8.0.36

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In