java -jar mywebapp-server/target/mywebapp.war
And I can tell Google App Engine to do the same in the app.yaml:
entrypoint: java -jar mywebapp.war
And woohoo! GWT running in Google App Engine: https://gae-gwt-412604.appspot.com/
On Sunday 28 January 2024 at 12:54:48 pm UTC+11 Craig Mitchell wrote:
Hi,Using the SpringBoot archetype ( https://github.com/NaluKit/gwt-maven-springboot-archetype ), I can happy run mvn clean package and get a war file that has everything and runs nicely on a web server.If I then modify mywebapp-server/pom.xml to have:<packaging>jar</packaging>(instead of war)I then get an executable jar, which I can run:java -jar mywebapp-server/target/mywebapp.jarThe executable JAR runs the embedded Tomcat server, which contains the index.html + css (inside the mywebapp.jar in BOOT-INF\classes\public), however, all the GWT files are in BOOT-INF\lib\mywebapp-client-HEAD-SNAPSHOT.war) so it never sees them. As a result, the app only shows the html, and nothing else works.Has anyone made a GWT app as an executable JAR? Or any suggestions how to do it?The reason I need an executable JAR, is because that's all Google App Engine standard supports: https://cloud.google.com/appengine/docs/standard/testing-and-deploying-your-app?tab=javaThanks in advance.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/b209137d-862b-4efd-b232-7f9d5b08c12fn%40googlegroups.com.
No comments:
Post a Comment