springboot:启动时报jaxb-api.jar找不到

错误日志如下,解决办法:springboot项目已经自带了tomcat,没有必要在build path再添加server了。

image


   .   ____          _            __ _ _
  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
   '  |____| .__|_| |_|_| |_\__, | / / / /
  =========|_|==============|___/=/_/_/_/
  :: Spring Boot ::        (v2.1.5.RELEASE)

2020-11-12 13:46:34.597  INFO 8512 --- [           main] com.csget.Application                    : Starting Application on DESKTOP-T242M0R with PID 8512 (D:\develop\workspace\erp\erp-web\target\classes started by guard in D:\develop\workspace\erp\erp-web)
2020-11-12 13:46:34.604 DEBUG 8512 --- [           main] com.csget.Application                    : Running with Spring Boot v2.1.5.RELEASE, Spring v5.1.7.RELEASE
2020-11-12 13:46:34.604  INFO 8512 --- [           main] com.csget.Application                    : The following profiles are active: dev
2020-11-12 13:46:38.504  INFO 8512 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-11-12 13:46:38.505  INFO 8512 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.17]
2020-11-12 13:46:38.888  WARN 8512 --- [           main] o.a.tomcat.util.scan.StandardJarScanner  : 在多级类加载器中扫描[file:/D:/app/maven/repository/com/sun/xml/bind/jaxb-core/2.3.0/jaxb-api.jar]失败

java.io.IOException: java.lang.reflect.InvocationTargetException
     at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:212)
     at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:65)
     at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49)
     at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:374)
     at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:309)
     at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:278)
     at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
     at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
     at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
     at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:83)
     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.startup.Tomcat.start(Tomcat.java:455)
     at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:106)
     at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86)
     at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:427)
     at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:180)
     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181)
     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
     at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
     at com.csget.Application.main(Application.java:18)
Caused by: java.lang.reflect.InvocationTargetException: null
     at java.base/jdk.internal.reflect.GeneratedConstructorAccessor47.newInstance(Unknown Source)
     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
     at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:209)
     ... 46 common frames omitted
Caused by: java.nio.file.NoSuchFileException: D:\app\maven\repository\com\sun\xml\bind\jaxb-core\2.3.0\jaxb-api.jar
     at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
     at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
     at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
     at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
     at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
     at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:194)
     at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
     at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1222)
     at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
     at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
     at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:246)
     at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:176)
     at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
     ... 50 common frames omitted

2020-11-12 13:46:38.894  WARN 8512 --- [           main] o.a.tomcat.util.scan.StandardJarScanner  : 在多级类加载器中扫描[file:/D:/app/maven/repository/com/sun/xml/bind/jaxb-impl/2.3.0/jaxb-core.jar]失败

java.io.IOException: java.lang.reflect.InvocationTargetException
     at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:212)
     at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:65)
     at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49)
     at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:374)
     at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:309)
     at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:278)
     at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
     at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
     at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
     at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:83)
     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
     at org.apache.catalina.startup.Tomcat.start(Tomcat.java:455)
     at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:106)
     at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86)
     at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:427)
     at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:180)
     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181)
     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
     at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
     at com.csget.Application.main(Application.java:18)
Caused by: java.lang.reflect.InvocationTargetException: null
     at java.base/jdk.internal.reflect.GeneratedConstructorAccessor47.newInstance(Unknown Source)
     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
     at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:209)
     ... 46 common frames omitted
Caused by: java.nio.file.NoSuchFileException: D:\app\maven\repository\com\sun\xml\bind\jaxb-impl\2.3.0\jaxb-core.jar
     at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
     at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
     at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
     at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
     at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
     at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:194)
     at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
     at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1222)
     at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
     at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
     at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:246)
     at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:176)
     at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
     ... 50 common frames omitted

2020-11-12 13:46:38.913  INFO 8512 --- [           main] org.apache.jasper.servlet.TldScanner     : 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
2020-11-12 13:46:38.929  INFO 8512 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2020-11-12 13:46:39.875 DEBUG 8512 --- [           main] com.csget.config.ConfigDB                : jdbc:mariadb://127.0.0.1:3306/erp?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&transformedBitIsBoolean=true&useSSL=true&trustServerCertificate=true&useCompression=true
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/D:/app/maven/repository/org/mybatis/mybatis/3.4.4/mybatis-3.4.4.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

posted @ 2020-11-12 13:51  huiy_小溪  阅读(7559)  评论(0编辑  收藏  举报