Upgrade from Tomcat 8.0.39 to 8.0.41 results in 'failed to scan' errors

前端 未结 1 1732
天命终不由人
天命终不由人 2020-12-09 17:41

I have a Spring Boot WAR application perfectly working under Tomcat 8.0.39 on AWS. After issuing sudo service tomcat8 stop, upgrading to Tomcat 8.0.41 through <

相关标签:
1条回答
  • 2020-12-09 18:06

    There was a bug, that Tomcat 8 ignores the Class-Path header in the MANIFEST.MF file of a JAR, see Bug 59226:

    Bug 59226 - StandardJarScanner ignores jars in manifest Class-path header

    This bug was fixed with Tomcat 8.0.34, but it produced a lot of warnings for not required JARs, see Bug 59961:

    Bug 59961 - Provide an option to disable processing of Class-Path entry in a jar's manifest file

    Since Tomcat 8.0.38 you can disable the scan of the MANIFEST.MF file, see The Jar Scanner Component:

    scanManifest

    If true, the Manifest files of any JARs found will be scanned for additional class path entires and those entries will be added to the URLs to scan. The default is true.

    0 讨论(0)
提交回复
热议问题