java.io.FileNotFoundException: D:\WorkSpace\repository\com\oracle\ojdbc\oraclepki\oracle.osdt\osdt_cert.jar (系统找不到指定的路径。)
java.io.FileNotFoundException: D:\WorkSpace\repository\com\oracle\ojdbc\oraclepki\oracle.osdt\osdt_core.jar (系统找不到指定的路径。)
The reason for the problem is the dependency added in POM and the built-in dependence of toCat on JSP support, which is used to compile JSP.
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>
Solution: shield the jar package:
method 1: add the following codes in the startup class:
System.setProperty(org.apache.tomcat.util.scan.Constants.SKIP_JARS_PROPERTY,"*.jar");
Method 2: add the following codes in application.yml:
server:
tomcat:
additional-tld-skip-patterns:
- osdt_cert.jar
- osdt_core.jar
Read More:
- [Solved] Mybatis.generator error: Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2
- [Solved] fasterxml ToStringSerializerBase Error: Caused by: java.lang.NoClassDefFoundError…
- Caused by: java.lang.IllegalStateException (How to Fix)
- How to Solve Log4j 2.5 upgrade to 2.15 error
- [ERROR] Failed to execute goal on project simple-project: Could not resolve dependencies for project
- [Solved] Jxls error: Cannot load XLS transformer. Please make sure a Transformer implementation is in classpath
- [Solved] Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
- [Solved] nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
- [Solved] Error running ‘tomcat:run‘: Cannot run program “tomcat:run“
- [Solved] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
- Error querying database.Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource.
- Error resolving template [index], template might not exist
- Jjwt error: ERROR 9856 — [nio-8083-exec-2] o.a.c.c. [. [. [. [/]. [dispatch server]
- Error resolution: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/Datatype
- [Solved] Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
- How to Solve Spring integrate Seata startup error
- [Solved] SpringBoot Create Project and Failed to Access localhost:8080 Error
- [Solved] Mybatis add dependencies Error: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
- [Solved] spring boot integrated PageHelper Error
- maven.TestGenerateMojo.execute(TestGenerateMojo.java:65) [How to Solve]