GeoServer (for Simple Services)

  1. First, I needed a clean version of GeoServer 2.0 (without sample data). Here is how I created it:
    1. I downloaded the .war file for GeoServer from http://geoserver.org/display/GEOS/Stable.
    2. You get a .zip archive with the geoserver.war inside it. Extract the .war.
    3. Change the .war extension to .zip and extract that to a folder called "geoserver"
    4. Added context snippet, ran this webapp through Tomcat on my local computer. Removed example workspaces, datastores, layers and styles.
    5. Removed sample data from the installation directory.
    6. Adjusted the Administrator name and password. This is configured in geoserver/data/security/users.properties.
    7. Downloaded the AppSchema extension from http://downloads.sourceforge.net/geoserver/geoserver-2.0.0-app-schema-plugin.zip.
    8. Extract this and place the two .jar files in geoserver/WEB-INF/lib.
  2. Using WinSCP, upload the contents of the folder to /mnt/data-store/geoserver/gsvr.
  3. Add a context snippet file that points Tomcat to the Geoserver folder. The file is /etc/tomcat6/Catalina/localhost/gsvr.xml. Here are its contents:
    <Context path="/gsvr" 
    	docBase="/mnt/data-store/geoserver/gsvr" debug="0"
    	reloadable="true" cachingAllowed="false"
    	allowLinking="true"/>
  4. Adjust the Java permissions in /etc/tomcat6/policy.d/04webapps.policy by adding the following line:
    permission java.security.AllPermission;
  5. Restart Tomcat:
    /etc/init.d/tomcat6 restart