============================= Semantic MOBY Provider Setup ============================= ------------- Set up Tomcat ------------- You will need jdk1.5 installed and in your path to run tomcat. Check this with: $ java -version to see what java is on your path $ cd Get a copy of Tomcat $ cp /apache-tomcat-5.5.17.zip . $ unzip apache-tomcat-5.5.17.zip $ cd apache-tomcat-5.5.17/conf Setup server.xml to use your port, 8080 is the default; no changes necessary if this port id Ok for your setup Edit server.xml and change 8080 to your assigned HTTP port (e.g. 3080 ) and the Tomcat shutdown port from 8005 to your assigned shutdown port (e.g. 3005 ) Set up web.xml to allow directory listings Edit web.xml parameter false to true Remove all the non-VPIN web apps from Tomcat $ cd .. $ rm -rf webapps/* -------------- Set up the PDK -------------- $ cd Get a copy of the PDK ( download from vpin website at http://vpin.ncgr.org/provider.shtml $ unzip pdk.zip ---------------------------------- Build and Deploy the Fasta Example ---------------------------------- $ cd pdk Build & deploy smoby.war (Fasta Example) $ cd pdk/examples/fasta/build $ cp build.properties.template build.properties Edit build.properties, set deploy-dir to Tomcat's webapps directory (e.g. apache-tomcat-5.5.17/webapps) $ ant deploy Note: The external jar files automatically get included in smoby.war. When smoby.war gets expanded in webapps in tomcat, the jars should be in webapps/smoby/WEB-INF/lib. ---------------------------------- Start Tomcat & Verify Installation ---------------------------------- $ cd /bin $ startup.sh Check Tomcat's output $ cat /logs/catalina.out Make sure the war file got expanded $ ls -l /webapps There should be a webapps/smoby directory in tomcat that is the result of smoby.war getting expanded. If it is not there, smoby.war has not been expanded. There is a bug in tomcat that sometimes causes this. You can usually work around the bug by stopping and restarting tomcat after smoby.war has been placed there by the build process. If the webapps/smoby directory is there, the fasta example should work ok. You can access the index.jsp file by going to http://localhost/smoby/index.jsp (if you are running tomcat on localhost:80, of course)