I'm working with GeoNetwork 2.4.2 running off of Tomcat 6.
On my Windows machine, I've been able to easily use GAST to connect to a
MySQL database. However, I have an Ubuntu Server 9.04 machine I'm also
trying to setup GeoNetwork on. On this machine I cannot run GAST (no GUI),
but also need to get GeoNetwork connected to MySQL. I thought that I would
make the change by adjusting the /web/geonetwork/WEB-INF/config.xml file as
shown below but that did not work. When I try to log in, I'm greeted with a
NullPointerException.
Also, I noticed that on my Windows machine, GAST had not made any
adjustments to the config.xml file -- something else must be telling
GeoNetwork where to connect.
How do I configure GeoNetwork to connect to MySQL when I cannot use GAST?
Thanks,
Ryan
______________________________________
Adjusted config.xml file on Ubuntu machine:
<resources>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- mckoi standalone -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<resource enabled="false">
<name>main-db</name>
<provider>jeeves.resources.dbms.DbmsPool</provider>
<config>
<user>xRgAPQLl</user>
<password>*******</password>
<driver>com.mckoi.JDBCDriver</driver>
<url>jdbc:mckoi://localhost:9157/</url>
<poolSize>10</poolSize>
</config>
<activator
class="org.fao.geonet.activators.McKoiActivator"><configFile>WEB-INF/db/db.conf</configFile></activator></resource>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- mysql -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<resource enabled="true">
<name>main-db</name>
<provider>jeeves.resources.dbms.DbmsPool</provider>
<config>
<user>catalogAdmin</user>
<password>*******</password>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://localhost:3306/geonetwork</url>
<poolSize>10</poolSize>
<reconnectTime>3600</reconnectTime>
</config>
</resource>