-
Notifications
You must be signed in to change notification settings - Fork 168
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
Resources not found when running the .war embedded tomcat #3689
Comments
I'm facing the same error when I changed the packaging to jar with Spring Boot 2.0,
but when I use:
I got the following exception error
|
I just ran into this as well. This is the default behavior when you deploy to AWS Beanstalk. But what AWS does by default is rename your WAR file to "application.jar" and then executes "java -jar application.jar". Took me half a day to figure out renaming the WAR to JAR breaks everything. I had simple views before, but now that I'm including HTML in the views I'm seeing the same errors. I will change my deployment package to execute the WAR with mvn spring-boot:run until there is fix. |
Similar messages also observed with |
Issue moved to vaadin/spring #265 via ZenHub |
Out of the box, Spring Boot uses a public static void main entry-point that launches an embedded web tomcat server packaged into the
.war
file, thus runningjava -jar target/my-app.war
launches the app. Tough, flow seems unable to find resources packaged into the.war
file. The same war deployed in a tomcat works as expected.You can reproduce e.g. by checking out bakery and packaging it:
The error in console is:
Can't find resource 'frontend://src/views/login/login-view.html' via the servlet context'
The text was updated successfully, but these errors were encountered: