[GeoNetwork-devel] Empty Template List on Admin->New XML [SEC=UNCLASSIFIED]

Hi Andy,

Templates are stored in the database. If building from source you still need to run the Gast tool at least once to create the database schema and populate key tables. There is an Ant script in the installer directory you can run to create the install jar file.

Not sure why you would copy bin, csw or gast to Tomcat (web is required). Richard Walker has created some documentation you might find useful, see http://trac.osgeo.org/geonetwork/wiki/HowToRunUnderTomcat .

Regards,

Steve

-----Original Message-----
From: geonetwork-devel-bounces@lists.sourceforge.net [mailto:geonetwork-devel-bounces@lists.sourceforge.net] On Behalf Of Andrew Chamberlain
Sent: Saturday, 16 August 2008 1:06
To: geonetwork-devel@anonymised.comourceforge.net
Subject: [GeoNetwork-devel] Empty Template List on Admin->New XML

Hi All,

Just wondering if anyone can help…

Why is it that when I install a packaged, stable version of GeoNework (ie. using “java -jar geonetwork-install-2.2.0.jar”), everything is dandy and I get a populated list of templates in the “New Metadata” admin page … but when I build from SVN and copy the created directories (ie. bin, csw, gast, web, etc.) to Tomcat, the same “Template” list is empty?

The reason I’m trying to build from SVN is to make use of the recently added support for entering ISO 19119 data.

Perhaps I need to build an installer jar file (e.g. geonetwork-install-2.3.0.jar) which I run using “java -jar …” ?

Any advice or recommendations would be very much appreciated.

Many thanks,

Andy

Hi Stephen,

Thanks for getting back. And thanks too for the tip about the installer having an ant script for itself. I hadn’t spotted that, and using this will give me the confidence that I’m doing everything else right.

I’ve now tried installing using a freshly built installer jar file (as above), but the template menu remains empty. This is despite a seemingly successful set-up of the database using the GAST (the log for this is given below). When it says “Adding tempate file”, is there a table in the database which I could check to ensure it was added successfully?

Also, not sure if it’s related, but I’m still getting the following error when inserting the sample data:

no segments* file found in org.apache.lucene.store.FSDirectory@/usr/local/geonetwork/web/geonetwork/WEB-INF/lucene: files:

I’m guessing this is because it’s a fresh install and there’s no previous data in Lucene (?).

Is there anything else I can check? Your help is very much appreciated!

Andy