GWT application - Deploy on Tomcat or any other servlet container

Is there a plugin for Eclipse GWT or any other method for automatically deploying and running a GWT application on Tomcat (or any other Serlvet container)? At the moment, the only way I know is to copy the compiled classes to the WEB-INF directory, but this is hard work. In addition, you need to configure Apache Tomcat manually. I would like to have something like in the Eclipse Dynamic Web Project, where you can run your servlets directly by spawning tomcat.

thanks

+4
source share
2 answers

You can write an Ant task to deploy and run the GWT application. It can copy files, and then inform your servlet container of the latest files being downloaded.

+4
source

This is what you are looking for: " How to use my own server in host mode instead of the embedded Jetty GWT instance? "?
PS: You only need to copy the contents of the war folder once .
PPS: I assume that you want to easily deploy your application to Tomcat during development, since you are raising Tomcat spawning from Eclipse, and this is not a production server.

+2
source

Source: https://habr.com/ru/post/1300431/


All Articles