Gwt tomcat enviroment

Outdated should be updated!

Installation
Required software:

export JAVA_HOME=// export PATH=${PATH}://bin/
 * JDK ( >= 1.5) http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html
 * download and install JDK.
 * set JAVA_HOME and update PATH variable (add also this lines to ~.bashrc file)

for example: export JAVA_HOME=/home/bac1ca/programming/jdk1.6.0_22/ export PATH=${PATH}:/home/bac1ca/programming/jdk1.6.0_22/bin/

export ANT_HOME=/ export PATH=${PATH}:/bin/
 * ANT ( >= 1.8.0) http://ant.apache.org/bindownload.cgi
 * download and unpack ant archive.
 * set ANT_HOME and update PATH variable (add also this lines to ~.bashrc file)

for example: export ANT_HOME=/usr/share/ant/ export PATH=${PATH}:/usr/share/ant/bin/


 * Apache Tomcat (7.0) http://tomcat.apache.org/download-70.cgi
 * download and unpack tomcat archive.
 * set CATALINA_HOME (add also this line to ~.bashrc file)

export CATALINA_HOME=/home/bac1ca/programming/tomcat/apache-tomcat-7.0.19/

for example: export CATALINA_HOME=/home/bac1ca/programming/tomcat/apache-tomcat-7.0.19/
 * in command line:

cd $CATALINA_HOME/bin/ chmod +x *.sh
 * to start tomcat server:

cd $CATALINA_HOME/bin/ ./startup.sh
 * to stop tomcat server:

cd $CATALINA_HOME/bin/ ./shutdown.sh


 * GWT SDK (2.3.0) http://code.google.com/webtoolkit/download.html
 * download and unpack GWT sdk.

Create first GWT application
1. Generate web application: cd gwt-2.3.0 chmod u+x webAppCreator ./webAppCreator -out TestGWT ru.spb.osll.geo2tag.TestGWT

2. To build GWT application and create war: cd TestGWT/ ant war

3. To deploy GWT application on tomcat server:   
 * Open build.xml and add lines:

     and deploy
 * run ant

4. Start tomcat server: cd $CATALINA_HOME/bin/ ./startup.sh

5. Open your browser at http://localhost:8080/TestGWT. You must see gwt application in action.

3. Eclipse IDE

 * If you use Eclipse IDE you must download the GWT plugin (http://code.google.com/eclipse/docs/download.html) and see how to import existing project (http://code.google.com/eclipse/docs/existingprojects.html).


 * Also you can install tomcat plugin for eclipse (http://www.eclipsetotale.com/tomcatPlugin.html#A3).

How to build Webside
How to Build GWT application

Prerequisites:

1. JDK >= 1.5

2. Apache Ant >= 1.7.0

3. Apache Tomcat >= 7.0

4. GWT SDK >= 2.3.0

5. GWT Openlayer client jar https://bitbucket.org/gwtopenlayers/gwt-openlayers/downloads

1. Change 'local.properties' file containing gwt.sdk && junit.jar definitions: gwt.sdk= junit.jar= openlayers.jar= gwt-visual.jar= E.g., on my computer 'local.properties' consists of 2 lines: gwt.sdk=/home/bac1ca/programming/gwt-2.3.0 junit.jar=/home/bac1ca/downloads/junit-4.9b3.jar openlayers.jar=/opt/tomcat/gwt-openlayers/gwt-openlayers-client-1.0-SNAPSHOT.jar gwt-visual.jar=/opt/tomcat/gwt-visualisation/gwt-visualization.jar

2. To build, just run 'ant build'.

3. To deploy, just run 'ant deploy'.

4. To testing, just run 'ant test'.

5. To creating eclipse project, just run 'ant eclipse.generate'