Dear Users and Developers,
I am using the stable 2.8.0 ANZMEST version of Geonetwork (similar to GN
2.8.0 with ANZMEST schema additions). Initially I had the geonetwork data
directory in the default location geonetwork/WEB-INF/data and all was fine
i.e I was adding/changing metadata and working OK.
Today I decided I should, as recommended, put the data directory into an
independant place to make it easier to do upgrades. So I set
-Dgeonetwork.dir=/home/awalsh/geonetwork_data for the java command
in start_geonetwork.sh and I copied all contents geonetwork/WEB-INF/data
to the new location /home/awalsh/geonetwork_data.
I then restart geonetwork, it detects the new data dir. location OK but startup fails
with message:
ERROR [geonetwork.schemamanager] - Failed whilst adding the schema information.
Exception message if any is Exceeded maximum number of plugin schemas 20
Below is an excerpt from my geonetwork log (from startup to fail point):
2013-06-11 11:09:32,727 INFO [jeeves] - Overrides being applied to configuration file: .*WEB-INF/config\.xml
2013-06-11 11:09:32,734 INFO [jeeves] - Replacing attribute value of node appHandler/param[@name='preferredSchema']
2013-06-11 11:09:32,735 DEBUG [jeeves] - New attribute is:iso19139.anzlic
2013-06-11 11:09:32,739 DEBUG [jeeves] - Updating attibute of node /geonet/appHandler/param[6]
2013-06-11 11:09:32,743 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:32,761 DEBUG [jeeves] - Elements added are:<toAdd>
<include>config-metadata-schemaplugins.xml</include>
</toAdd>
2013-06-11 11:09:32,761 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:32,761 INFO [jeeves] - Adding xml elements to default/gui
2013-06-11 11:09:32,762 DEBUG [jeeves] - Elements added are:<toAdd>
<xml name="ccjurisdictions" file="xml/creativecommons/jurisdictionSelectOptions" />
<xml name="dcjurisdictions" file="xml/datacommons/jurisdictionSelectOptions" />
</toAdd>
2013-06-11 11:09:32,763 DEBUG [jeeves] - Adding xml to /geonet/default/gui
2013-06-11 11:09:32,768 INFO [jeeves] - Replacing attribute value of node services/service[@name='main.search.suggest']/param[@name='threshold']
2013-06-11 11:09:32,768 DEBUG [jeeves] - New attribute is:1
2013-06-11 11:09:36,376 INFO [jeeves] - Overrides being applied to configuration file: .*WEB-INF/user-profiles\.xml
2013-06-11 11:09:36,377 INFO [jeeves] - Adding xml elements to profile[@name='Editor']
2013-06-11 11:09:36,377 DEBUG [jeeves] - Elements added are:<toAdd>
<allow service="metadata.creativecommons.form" />
<allow service="metadata.creativecommons.set" />
<allow service="metadata.datacommons.form" />
<allow service="metadata.datacommons.set" />
</toAdd>
2013-06-11 11:09:36,378 DEBUG [jeeves] - Adding xml to /profiles/profile[4]
2013-06-11 11:09:36,379 INFO [jeeves] - Adding xml elements to profile[@name='Guest']
2013-06-11 11:09:36,380 DEBUG [jeeves] - Elements added are:<toAdd>
<allow service="prepare.taxon.search" />
<allow service="xml.forward.taxonsearch" />
<allow service="portal.search.credits" />
<allow service="portal.search.dataparams" />
<allow service="portal.search.taxonNames" />
<allow service="portal.summary.keywords" />
<allow service="portal.summary.longParamNames" />
<allow service="portal.summary.organisations" />
<allow service="xml_anzmeta" />
<allow service="xml_anzmetaTorifcs" />
<allow service="xml_anzmetaToiso19139.anzlic" />
<allow service="xml_anzmetaTooai_dc" />
<allow service="xml_eml-gbif" />
<allow service="xml_eml-gbifTorifcs" />
<allow service="xml_iso19135" />
<allow service="xml_iso19135ToSKOS" />
<allow service="xml_iso19135Tooai_dc" />
<allow service="xml_iso19139.anzlic" />
<allow service="xml_iso19139.anzlicTorifcs" />
<allow service="xml_iso19139.anzlicTooai_dc" />
<allow service="xml_iso19139.mcp" />
<allow service="xml_iso19139.mcpTorifcs" />
<allow service="xml_iso19139.mcpTooai_dc" />
<allow service="xml_iso19139.mcp-1.4" />
<allow service="xml_iso19139.mcp-1.4Torifcs" />
<allow service="xml_iso19139.mcp-1.4Tooai_dc" />
<allow service="xml_iso19139Torifcs" />
</toAdd>
2013-06-11 11:09:36,382 DEBUG [jeeves] - Adding xml to /profiles/profile[6]
2013-06-11 11:09:36,488 INFO [jeeves.apphand] - Initializing GeoNetwork 2.8.0.ANZMEST ...
2013-06-11 11:09:36,522 WARN [geonetwork.data.directory] - - Data directory initialization: /home/awalsh/geonetwork_data
2013-06-11 11:09:36,527 INFO [jeeves.apphand] - Data directory: /home/awalsh/geonetwork_data/
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - jeeves.xml.catalog.files property set to /home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - Overriding mime-mappings property (was set to ../web/geonetwork/WEB-INF/mime-types.properties)
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - mime-mappings property set to /home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/mime-types.properties
2013-06-11 11:09:36,876 INFO [jeeves.apphand] - - Database connection on jdbc:postgresql_postGIS://123.123.123.123:5432/gn ...
2013-06-11 11:09:36,921 INFO [jeeves.apphand] - Found an existing GeoNetwork database.
2013-06-11 11:09:36,925 INFO [jeeves.apphand] - - Thread Pool...
2013-06-11 11:09:36,928 INFO [jeeves.apphand] - - Setting manager...
2013-06-11 11:09:37,114 INFO [jeeves.apphand] - - Migration ...
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version:2.8.0 subversion:ANZMEST
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Database version:2.8.0 subversion:0
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version = Database version, no migration task to apply.
2013-06-11 11:09:37,119 INFO [jeeves.apphand] - - Z39.50...
2013-06-11 11:09:37,229 INFO [jeeves.apphand] - Repositories file built from template.
2013-06-11 11:09:40,692 INFO [jeeves.apphand] - Server is Enabled.
2013-06-11 11:09:40,697 INFO [jeeves.apphand] - - Schema manager...
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema plugins directory: /home/awalsh/geonetwork_data/config/schema_plugins
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema Catalog File : /home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,795 DEBUG [jeeves] - Using oasis catalog files /home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,796 DEBUG [jeeves] - Using catalog resolver verbosity 1
2013-06-11 11:09:50,217 ERROR [geonetwork.schemamanager] - Schema anzmeta does not have any XSD files!
2013-06-11 11:09:56,463 INFO [jeeves] - Overrides being applied to configuration file: .*iso19139/schema-conversions\.xml
2013-06-11 11:09:56,464 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:56,464 DEBUG [jeeves] - Elements added are:<toAdd>
<converter name="xml_iso19139Torifcs" nsUri="http://ands.org.au/standards/rif-cs/registryObjects" schemaLocation="http://services.ands.org.au/home/orca/schemata/registryObjects.xsd" xslt="rif.xsl" />
</toAdd>
2013-06-11 11:09:56,464 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:56,472 ERROR [geonetwork.schemamanager] - Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Raised exception while starting appl handler. Skipped.
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Handler : org.fao.geonet.Geonetwork
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Exception : OperationAbortedEx : Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,477 ERROR [jeeves.engine] - Message : Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,478 ERROR [jeeves.engine] - Stack : OperationAbortedEx : Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1258)
....
Is this a bug is there something else I need to do when I relocate the data directory?
Seems that it is sensing to many plugin schemas (exceeds 20).
Andrew