spring-boot: "Ignoring Class-Path entry ... as ... does not exists" checks wrong path?
Possible duplicate of #9802
After upgrading Spring Boot, I get a ton of these messages:
Ignoring Class-Path entry file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/charsets.jar found in C:\Users\MyUser\AppData\Local\Temp\classpath113224.jar as C:\Users\MyUser\AppData\Local\Temp\file:\C:\Program%20Files\Java\jdk1.8.0_131\jre\lib\charsets.jar does not exist
Ignoring Class-Path entry file:/C:/Users/MyUser/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-actuator/1.5.6.RELEASE/2a0e4f39d58078159c2929c039e7c7813b325871/spring-boot-actuator-1.5.6.RELEASE.jar found in C:\Users\MyUser\AppData\Local\Temp\classpath113224.jar as C:\Users\MyUser\AppData\Local\Temp\file:\C:\Users\MyUser\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-actuator\1.5.6.RELEASE\2a0e4f39d58078159c2929c039e7c7813b325871\spring-boot-actuator-1.5.6.RELEASE.jar does not exist
Now if you look closely, you’ll see that the “… does not exist” part lists an invalid path:
...\Temp\file:\C:\Users\MyUser\...
So either the checked file or the log output is definitely wrong 😃
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (10 by maintainers)
@wilkinsona Thanks for the prompt reply. Created an issue https://youtrack.jetbrains.com/issue/IDEA-178585
That sounds like a rather broad high-risk change. I’ve opened https://github.com/spring-projects/spring-boot/issues/10268 to change Boot’s behaviour.
Hi, everyone, I’ve tried to start using devtools, but it seems that I can’t because of this issue. I’m using IntelliJ Idea 2017.2.2 for Windows with classpath jar enabled. According to #5127, devtools should support that. The problem is that the jar’s manifest contains absolute paths, but
org.springframework.boot.devtools.restart.ChangeableUrls
can’t find them, because it usesnew File(jarFile.getName()).getParentFile()
as a base directory, and treats the paths in the manifest as relative. As a result, it fails to find dependencies using paths likeC:\Users\{username}\AppData\Local\Temp\file:\C:\Users\{username}\.gradle\caches\modules-2\files-2.1\software.amazon.ion\ion-java\1.0.2\ee9dacea7726e495f8352b81c12c23834ffbc564\ion-java-1.0.2.jar