Embedded tomcat giving failed to scan jars from classloader hierarchy

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

Refer : The Jar Scanner ComponentThe official reply.


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

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

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