From Informatics
Basic Steps
- check out the project from https://ncisvn.nci.nih.gov/svn/geworkbench/trunk/geworkbench-web/
- export the war file
- drop the war file in tomcat's webapps directory
Notes
- The machine to use : afdev.c2b2.columbia.edu
- The user account to use: cagrid
- The tomcat installation to use: /ifs/data/c2b2/af_lab/cagrid/apache-tomcat-7.0.30
- (one-time change has been made to avoid the conflict with cagrid: change the port number to 8082) what do we need to do about the redirect port 8443?
- URL to access the application http://afdev.c2b2.columbia.edu:8082/geworkbench/
- how to create war file (currently from eclipse. can we do this with ant script so we can automate the process as a daily routine?) Does GWT compiling have to be done before create the war? I think yes. How to automate that part? Other than that, do we need to build the project before creating the war?
- the war file be named geworkbench.war.
- how to copy the war file to the server (I use WinSCP. Any better alternative? Eventually automated.)
- is restarting the server necessary?
- other settings in tomcat that we may need to care about, but at this point it seems better to leave as they are.
/conf/server.xml this is where the confusion comes in
There was a Context element
<Context docBase="geworkbench-web" path="/geworkbench" reloadable="true" source="org.eclipse.jst.jee.server:geworkbench-web"/>
under Host under Engine. Removing it (and sticking to the name geworkbench.war instead of geworkbench-web.war) may
have solved the many problems we encountered.
/conf/context.xml I guess we don't need to touch it, but it was touched since original installation for some reason
/conf/web.xml no need to touch
/webapps/geworkbench/WEB-INF/web.xml whatever is there is from the repository
/webapps/geworkbench/WEB-INF/sun-web.xml
problems encountered
- after I dropped a new war file to running tomcat, I got 404 on /geworkbench
- only by me: some files missing in the war file - widgets directory under VAADIN if I remember it right
- confusion and out-of-sync deployment caused by the two different names: geworkbench and geworkbench-web. e.g. the old files are not updated, all the files are gone, we need to have both directories under webapss to make the application actually work
References