Hi Rich:
Although we do not use postgresql db, we have had success with Tomcat
and GN 2.6.x doing the following:
1. Using Tomcat 5.5 and jre 1.5 as indicated by the GN
documentation.
2. Using the downloadable geonetwork.war and adding it to the
Tomcat ".../webapps" directory. Tomcat will deploy Geonetwork
automatically.
3. Changing the config.xml file to point to the preferred db...we
have done this for McKoi and Oracle.
4. Stopping and starting Tomcat.
Somethings to keep in mind...
1. The Geoserver.war file will have to be installed separately for
purposes of generating the map viewers. Use the admin console to create
your data sources and layers.
2. GeoNetwork will need to be configured for your Geoserver through
the config-gui.xml to properly show the map viewers.
3. If you have any other installations of GeoNetwork on the server,
check your ports to make sure that they are not already consumed by
another installation. This happens with McKoi. The db.conf will allow
you to do this.
4. We did not have to make any changes to the config.xml for the
parameters you mentioned other than to set "true" for the appropriate db
nor changes to log4j.cfg other than to set: log4j.rootLogger = ON for
debug purposes.
Hopefully this helps some.
Ralph
GIS Data Services
BSS-Geographic Business Solutions
MNR-Land Resources Cluster
Government of Ontario
300 Water St., 2nd Fl, Nth Tower
Peterborough, ON
Canada K9J 8M5
-----Original Message-----
From: RichC [mailto:richard@anonymised.com]
Sent: November 18, 2010 3:41 AM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Linking Tomcat to Geonetwork 2.6.x
Thanks for your prompt reply.
I've almost achieved the task using the following method, with four
issues
(noticed at this stage) that I need to resolve.
Method used
To start and stop tomcat:
/etc/init.d/tomcat6 start
/etc/init.d/tomcat6 stop
Add the following lines to /etc/tomcat6/tomcat-users.xml
<role rolename="manager"/>
<role rolename="admin"/>
<user name="admin" password="secret_password" roles="manager,admin"/>
Visited http://localhost:8080/manager/html to check Tomcat is running,
and
login.
Initially added the following options to /etc/tomcat6//tomcat6.conf, but
had
to delete as it stopped Tomcat from starting
JAVA_OPTS="--JvmMs 256 --JvmMx 512 -XX:MaxPermSize=256
-XX:PermSize=128m"
Created geonetwork.xml in /usr/share/tomcat6/conf/Catalina/localhost/
and
inserted the following:
<Context docBase="/webapps/geonetwork"
privileged="true" antiResourceLocking="false"
antiJARLocking="false">
Downloaded
http://jdbc.postgresql.org/download/postgresql-8.4-702.jdbc4.jar
into /srv/tomcat6/webapps/geonetwork/WEB-INF/lib. Removed original
(older)
version.
Copied geonetwork directory and contents to /srv/tomcat6/webapps/
Modified config.xml
/srv/tomcat6/webapps/geonetwork/WEB-INF/config.xml
Line 7 <uploadDir>/home/user/geonetwork_243/data/tmp</uploadDir> and
Line 189 <param name="dataDir" value="/home/user/geonetwork_243/data"
Updated location of geonetwork.log in
/srv/tomcat6/webapps/geonetwork/WEB-INF/log4j.cfg
Line40 log4j.appender.jeeves.file =
/srv/tomcat6/webapps/geonetwork/geonetwork.log
Issues remaining after starting GN in Tomcat:
1. categories missing from homepage at
http://localhost:8080/geonetwork/srv/en/main.home
2. Small map and 'Show map' items missing from homepage until after
refreshing page in browser (see attachment).
3. login gives 'Null pointer exception error'
4. geonetwork.log does not appear at
/srv/tomcat6/webapps/geonetwork/geonetwork.log. Not being generated?
Thanks,
Richard
http://osgeo-org.1803224.n2.nabble.com/file/n5750828/Screenshot-1.png
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Linking-Tomcat-to-Geonetwork-2-6-
x-tp5747050p5750828.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.