ryskajakub
ryskajakub

Reputation: 6431

run gwt in server mode

I'm trying to use eclipse 3.6 with Google Web Toolkit and I don't see there an option to run the app on the server. When I click on Run, there is automatically the hosted mode, when I click the Run as... there is option 1. Run as application , 2. Run as applet - which is useless, 3. Run as Web application - which leads to running in hosted mode. During creation of GWT project, ide even doesn't ask about target server, like it does when creating the other web apps. Isn't there such an option or I'm just overlooking it?

Upvotes: 1

Views: 3624

Answers (4)

max
max

Reputation: 1712

Well, we are doing an web application with GWT. We are not using eclipse but using GWT4NB Netbeans plugins. It allows us to compile GWT in netbeans and deploy the web application to any server which in our case is Glassfish 2. We are also using EJB and communication with RPC. We call ServiceImpl from RPC and call EJB methods from ServiceImpl.

So, I believe you could do something eclipse also, create a war and then deploy to any servlet container probably Tomcat or Glassfish.

Upvotes: 0

Riley Lark
Riley Lark

Reputation: 20890

If you want to run development mode as a server to other computers, include the bindAddress switch in the command line. E.g. -bindAddress 192.168.0.35 (or whatever address). You add arguments to the command line by choosing "Run configurations..." from the run menu.

This is still running in development mode. If you want to deploy to a production server, click the red "Gwt compile" toolbox and then copy your war folder to your server manually.

Upvotes: 0

z00bs
z00bs

Reputation: 7498

You need to set the -noserver option. See here for some guidance.

Upvotes: 1

Tahir Akhtar
Tahir Akhtar

Reputation: 11625

I don't have my eclipse installation handy at the moment, but I believe that "Google Plugin for Eclipse" gives you the option to run the GWT app in an external server. If you already have GPE installed, try updating to latest version of the plugin.

You might also want to checkout this FAQ entry:

http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee

Upvotes: 0

Related Questions