GeoServer (for Simple Services)
- First, I needed a clean version of GeoServer 2.0 (without sample data). Here is how I created it:
- I downloaded the .war file for GeoServer from http://geoserver.org/display/GEOS/Stable.
- You get a .zip archive with the geoserver.war inside it. Extract the .war.
- Change the .war extension to .zip and extract that to a folder called "geoserver"
- Added context snippet, ran this webapp through Tomcat on my local computer. Removed example workspaces, datastores, layers and styles.
- Removed sample data from the installation directory.
- Adjusted the Administrator name and password. This is configured in geoserver/data/security/users.properties.
- Downloaded the AppSchema extension from http://downloads.sourceforge.net/geoserver/geoserver-2.0.0-app-schema-plugin.zip.
- Extract this and place the two .jar files in geoserver/WEB-INF/lib.
- Using WinSCP, upload the contents of the folder to /mnt/data-store/geoserver/gsvr.
- 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"/>
- Adjust the Java permissions in /etc/tomcat6/policy.d/04webapps.policy by adding the following line:
permission java.security.AllPermission;
- Restart Tomcat:
/etc/init.d/tomcat6 restart