Several recipes of this book use data stored in an RDBMS, in fact PostgreSQL, with the PostGIS spatial extension.
Configuring spatial data from a RDBMS in your GeoServer requires you to create a connection setting for several parameters from the admin web interface. Whatever database you are using, it may be useful to configure the connection using the Java Naming and Directory Interface (JNDI) standard.
Stop your Tomcat using the following command:
$ sudo service tomcat stop
Move the JDBC PostgreSQL driver in the
lib
folder of Tomcat:$ cd /opt/Tomcat7042/webapps/geoserver/WEB-INF/lib $ sudo mv postgresql-8.4-701.jdbc3.jar /opt/Tomcat7042/lib/.
Now, edit the Tomcat configuration file in order to set...