vaadin / bakery-app-starter-fw8-spring

Internal repository for Bakery App Starter for FW8 and Spring
Other
0 stars 2 forks source link

Executable JAR cannot login #499

Closed petrixh closed 6 years ago

petrixh commented 6 years ago

When using the Full Stack V8 starter with Spring (Bakery) and making a executable JAR as instructed in the Readme-file, the resulting JAR does not work. After creating the JAR, if you run it with "java -jar xxx.jar" and you navigate to localhost:8080 the url will change to localhost:8080/login.html and you're presented with a whitelabel error message stating that login.html is not found.

Unzip the jar and you'll notice that login.html is not in the JAR... However, even after forcefully adding login.html into the jar (to BOOT-INF/classes/login.html right next to to the VAADIN-folder) and repackaging it, it still doesn't work.

Retested by setting the type back to WAR and tried running it as an executable WAR (per Readme instructions again) it works just fine...

Steps to reproduce: 1) Go to vaadin.com/start 2) create a new v8 full stack project with spring (the protools version) 3) open pom.xml and change the packaging to jar 4) do a clean install 5) cd to target and run java -jar xxx.jar 6) open a browser to http://localhost:8080

Bonus bug? While examining the extracted JAR I also noticed that the VAADIN-folder only contained the widgetset but no theme, so even if one was able to login, would the "apptheme" actually work?

johannesh2 commented 6 years ago

Would this be a suitable solution https://github.com/vaadin/bakery-app-starter-fw8-spring/pull/500

johannesh2 commented 6 years ago

Please reopen if the instructions were not enough or something else needs in your opinion to be done for this ticket.