Wednesday, February 21, 2024

Re: Deploy to Google App Engine (GAE)



On Wednesday, February 21, 2024 at 3:11:54 PM UTC+1 tim_mac...@yahoo.co.uk wrote:
I've been trying this app engine sample for Java 11+ which uses a JAR packaged artifact that is installed locally:
it provides a Main class to instantiate an HTTP server to run an embedded web application WAR file.
It has explicit jetty 11 dependencies.

The WAR project is
The WAR is run in a local server with:
mvn exec:java -Dexec.args="../helloworld-servlet/target/helloworld.war"

The problem I have is when I include GWT in the WAR project this draws in Jetty 9 & other dependencies
which get copied to the cloud-deployment dependencies directory.

This means you WAR have dependencies on gwt-user and/or gwt-dev, that you never want to deploy to a server. The WAR should have a dependency on gwt-servlet only (or requestfactory-server).

…and this is exactly what https://github.com/tbroyer/gwt-maven-archetypes were meant to solve.

--
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/c04ab91a-b898-489d-a509-6fafb9a363can%40googlegroups.com.

2 comments:

  1. The Google Web Toolkit (GWT) is a development toolkit that allows developers to build and deploy complex browser-based applications using Java. It compiles Java code into JavaScript, making it easier to create responsive, cross-platform applications. GWT also integrates with Google App Engine for easy deployment, supporting developers with tools like Maven for handling dependencies. https://geometrydashpro.fun/geometry-dash-tips-and-tricks/

    ReplyDelete
  2. The Google Web Toolkit (GWT) allows developers to build complex web applications in Java, compiling code to JavaScript for efficient browser use. In the context of deploying to Google App Engine (GAE), it’s important to streamline dependencies. Specifically, GWT projects should only include gwt-servlet in their WAR files to avoid unnecessary components, such as gwt-user or gwt-dev, which can complicate cloud deployment. See More for Details. https://trafficrider.racing/

    ReplyDelete