Posts tagged eclipse
Running Two GWT Applications in Eclipse
0Sometime back, I wanted to run two applications concurrently. But the only way to do it, was to stop the running applications, and start the second. It was time consuming, not to mention boring.The two applciations were not related to each oter, just that code from the first application was needed in the second.
Here I will show you how to run two or more web-apps simultaneously.
First of all, you need to right click the Project, and highlight Run As. Click on Run configurations. Switch to the Arguments tab, and add two arguments as
-port f00 -codeServerPort b4r
Do this for the second application too. Make sure that all the four ports are different. Else you will face an error as
Port 127.0.0.1:9999 is already is use; you probably still have another session active
Now, the two apps run at different addresses as follows, without any clashes.
- http://127.0.0.1:9999/ProjectTwo.html?gwt.codesvr=127.0.0.1:9998
- http://127.0.0.1:8888/ProjectOne.html?gwt.codesvr=127.0.0.1:8887
That should do it. Just add the arguments to as many Run Configurations you want, and you should be able to run them concurrently.
