Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT App through tomcat on Intellij-Idea 10

Sounds simple, but I'm having lots of issues.

I want to run a GWT project in a tomcat on Intellij-idea 10.

Does anyone know how to set up the run config?

Regards, Charles.

like image 627
charles Avatar asked May 13 '11 14:05

charles


2 Answers

You can use '-noserver' option to start Dev Mode under Tomcat. Edit your GWT run configuration by adding '-noserver -port 8080' to 'Dev Mode parameters' field, then run the Tomcat configuration and after that run the GWT configuration.

like image 140
Nik Avatar answered Sep 22 '22 16:09

Nik


This all implies that this is a development run, i.e. for local testing/debugging purposes. This is not deployment to production servers. I also assume you have GWT and Web facets defined for this project.

  1. If you need GWT debugging, then you must run as GWT run configuration: here you can only choose a Default server (Jetty that comes with GWT) or an AppEngine Development server (if installed).

  2. If you must run under Tomcat, then:

    a. Add a Tomcat server under Settings - App Servers.

    b. Create an Artifact - WAR exploded (under project settings). Add all items in right pane to the left pane.

    b. Create a Tomcat run configuration with this Artifact.

like image 40
Peter Knego Avatar answered Sep 22 '22 16:09

Peter Knego