springboot启动报错 Failed to scan *****/derbyLocale_ja_JP.jar from classloader hierarchy

问题

这是部分报错信息

2019-07-11 14:03:34.283 WARN [restartedMain][DirectJDKLog.java:175] - Failed to scan [file:/D:/repo/org/apache/derby/derby/10.14.2.0/derbyLocale_ja_JP.jar] from classloader hierarchy
java.io.FileNotFoundException: D:\repo\org\apache\derby\derby\10.14.2.0\derbyLocale_ja_JP.jar (系统找不到指定的文件。)
	at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_172]
	at java.util.zip.ZipFile.(ZipFile.java:225) ~[?:1.8.0_172]
	at java.util.zip.ZipFile.(ZipFile.java:155) ~[?:1.8.0_172]
	at java.util.jar.JarFile.(JarFile.java:166) ~[?:1.8.0_172]
	at java.util.jar.JarFile.(JarFile.java:130) ~[?:1.8.0_172]
	at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:164) ~[tomcat-embed-core-9.0.17.jar:9.0.17]
	at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:65) ~[tomcat-embed-core-9.0.17.jar:9.0.17]
	at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49) ~[tomcat-embed-core-9.0.17.jar:9.0.17]
	at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:374) ~[tomcat-embed-core-9.0.17.jar:9.0.17]
	at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:309) [tomcat-embed-core-9.0.17.jar:9.0.17]
	at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:266) [tomcat-embed-core-9.0.17.jar:9.0.17]
	at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229) [tomcat-embed-core-9.0.17.jar:9.0.17]
	at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262) [tomcat-embed-jasper-8.5.40.jar:8.5.40]
	at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104) [tomcat-embed-jasper-8.5.40.jar:8.5.40]

原因

由于springboot项目自带tomcat插件,冲突导致

解决方案

检查pom.xml文件找到以下内容,删除掉。再次启动就不会有警告了!

		
			org.springframework.boot
			spring-boot-starter-tomcat
			provided
		
		
			org.apache.tomcat.embed
			tomcat-embed-jasper
			provided
		

你可能感兴趣的:(框架-springboot)