Installing Apache and Tomcat and Mysql on Windows 7
Installing Apache and Tomcat and Mysql on Windows 7 - Deploying a GWT app on your Tomcat Server PDF Print E-mail
Written by Administrator   
Sunday, 05 December 2010 15:26
Article Index
Installing Apache and Tomcat and Mysql on Windows 7
Installing Apache on WIndows
Tomcat Windows Install
Install mod_jk on Windows
Setting Up Tomcat Manager
Deploying a GWT app on your Tomcat Server
Installing Mysql on Window 7
Installing JDBC
JDBCHello JDBC Test Project for Eclipse
All Pages

Saving a WAR file from a GWT App and Deploying it On Your Server.

 
I created a GWT application called IORTest.   It ran with the Google debug server just fine.
 
Now I want to deploy it on my Tomcat/Apache server.
 
So I started a cmd.exe prompt box.
 
Then I changed directory to the IORTest project in the workspace
 
cd \eclipse_workspace
cd IORTest
cd war
 
Then I used the jar utility to create the war file:
 
jar cf /tmp/java/IORTest.war *
 
Then used a web browser to open the Tomcat Manager:
 
http://127.0.0.1:8080
Then I clicked on the 'manager' link in the upper left corner of the page.
Then I clicked on the  'Choose File' button in the WAR file to deploy section of the manager page.
I navigated to my war file in d:\tmp\java\IORTest.war and pressed the open button.
 
Back on the tomcat manager page, I pressed the 'Deploy' button.
 
Then I visited the link:
http://127.0.0.1:8080/IORTest
 
and my GWT app came up and ran perfectly!
 
Last Updated on Sunday, 05 December 2010 18:27
 

Sponsored Links

Bold Inventions, Powered by Joomla!; Joomla templates by SG web hosting