-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IllegalArgumentException can be thrown when running an uber jar on a shared drive #40549
Comments
Thanks for the report. Can you confirm that your app works with Spring Boot 3.2.5 with the "classic" loader fallback implementation as described in the release notes? |
Hi @scottfrederick , Yes, it does. I have the following plugin in the pom file of the original service where I discovered the issue:
Thanks! |
Hello please note that windows share drive can be as follow I mean we can have specific accent characters with or without spaces even if those are not good practises sometimes we do not choose where the users want to store the jar Thank you David Muszkatblit |
Hi, Upon further investigation, I believe this issue may be connected to #39675. Thanks! |
Update `NestedLocation` to deal with the fact that Jetty attempts to fix URLs. See gh-40549
Hi,
I recently upgraded from spring boot 3.1.7 to 3.2.5 and I am getting an IllegalArgumentException when I am using my service, which is stored as a jar on a shared drive.
I created a simple Eureka server app to demonstrate the issue: https://github.com/madalinaandreeab/eureka-server-demo
I placed the eureka-server-demo-0.0.1-SNAPSHOT.jar file in the \myshare\drive\users\mab\ shared drive and I started the service using the following command:
java -jar \\myshare\drive\users\mab\eureka-server-demo-0.0.1-SNAPSHOT.jar
The service starts successfully, but when I access the Eureka UI at http://localhost:8761/, I am getting the error below.
Please notice that the error refers to the
C:\drive\users\mab\eureka-server-demo-0.0.1-SNAPSHOT.jar
path which doesn't exist; The right path would be\\myshare\drive\users\mab\eureka-server-demo-0.0.1-SNAPSHOT.jar
.Thank you!
The text was updated successfully, but these errors were encountered: