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:
- Springboot Project: How to Introduces Local Jar Package
- Solve the problem that some jar packages failed to download when Maven was packaged
- [Solved] Springboot Package jar and Startup Error: It was loaded from the following location
- OTA Pack Compile Error: ExternalError: Failed to run signapk.jar: return code 1:Error: A JNI error has occurred
- error:unable to access jarfile cracker2017.jar [How to Solve]
- [Solved] Error:Cannot determine path to ‘tools.jar‘ library for 17
- [Solved] jar file Execute Error: power shell error: unable to access jarfile
- [Solved] Jar error on Linux: no main manifest attribute
- [Solved] jar Run Error: no main manifest attribute
- How to Solve IntelliJ IDEA Error: Cannot determine path to ‘tools.jar‘ library for 17 (C:\Program Files\Java\jd…
- Tomcat Run Error: Can‘t find catalina.jar [How to Solve]
- [Solved] docker Start jar package and Set JVM parameter Error
- The MapReduce program generates a jar package and runs with an error classnotfoundexception
- [Solved] Android project Compile error: error processing kotlin-stdlib-1.6.0.jar
- How to Solve JAR pack error: Error resolving template [/userInfo], template might not exist or might not be accessib
- [Solved] Maven Package Error: Error assembling JAR
- [Solved] Hadoop Error: Exception in thread “main“ java.io.IOException: Error opening job jar: /usr/local/hadoop-2.
- [Solved] IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- [Integrate the mobile MAS SMS service] SDK start error: NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtil