完美解决SpringBoot启动报错 java.io.FileNotFoundException: ..jaxb-api.jar (系统找不到指定的文件。)

完美解决SpringBoot启动报错 java.io.FileNotFoundException: ..jaxb-api.jar (系统找不到指定的文件。),第1张

完美解决SpringBoot启动报错 java.io.FileNotFoundException: ..jaxb-api.jar (系统找不到指定文件。) 一、问题

在网上找了很多解决方法最终还是没有解决这个问题。

java.io.FileNotFoundException: E:Mavenwordcomsunxmlbindjaxb-core2.3.0jaxb-api.jar (系统找不到指定的文件。)
	at java.util.zip.ZipFile.open(Native Method) ~[na:1.8.0_131]
	at java.util.zip.ZipFile.(ZipFile.java:219) ~[na:1.8.0_131]
	at java.util.zip.ZipFile.(ZipFile.java:149) ~[na:1.8.0_131]
	at java.util.jar.JarFile.(JarFile.java:166) ~[na:1.8.0_131]
	at java.util.jar.JarFile.(JarFile.java:130) ~[na:1.8.0_131]
	at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:196) ~[tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:65) ~[tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49) ~[tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:374) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:309) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:266) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262) [tomcat-embed-jasper-8.5.34.jar:8.5.34]
	at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104) [tomcat-embed-jasper-8.5.34.jar:8.5.34]
	at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:101) [tomcat-embed-jasper-8.5.34.jar:8.5.34]
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5245) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.catalina.util.Lifecyclebase.start(Lifecyclebase.java:150) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.catalina.core.Containerbase$StartChild.call(Containerbase.java:1420) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at org.apache.catalina.core.Containerbase$StartChild.call(Containerbase.java:1410) [tomcat-embed-core-8.5.34.jar:8.5.34]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_131]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]

二、原因

查找后发现是因为修改了项目名导致的。

三、解决

打开项目中的 .iml 文件 找到以下几个数据,删除修改项目名生成的数据即可。

    
    
    

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5435471.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-11
下一篇 2022-12-11

发表评论

登录后才能评论

评论列表(0条)

保存