最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Unable to open root Jar file exception with spring boot - Stack Overflow

programmeradmin2浏览0评论

Unfortunatelly I have a strange error with Vaadin/Spring boot application. While I use IntelliJ, I can run my application without any error on Safari or Chrome. But if I start my app in console with: /path/to/java -jar /path/to/app --spring.profiles.active=prod the app started normally, I see the console logs, but when I try to open the UI ( localhost:8081/..../myapp I got this exception:

java.io.IOException: Unable to open root Jar file 'war:file:/Users/.../myapp-1.0-SNAPSHOT.jar*/BOOT-INF/lib/flow-server-2.10.5.jar'

If I unzip the jar file, I can see /BOOT-INF/lib/flow-server-2.10.5.jar in the right place. I use the same JAVA ( 8 or 17 ), the same parameters and the same browsers in both cases. Could anyone help me? Regards.

发布评论

评论列表(0)

  1. 暂无评论