Opened 13 years ago

Closed 12 years ago

#847 closed defect (fixed)

schemaPluginsDir in context.xml doesn't work as expected

Reported by: sha Owned by: geonetwork-devel@…
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: schemaPluginsDir schema plugin config.xml Cc:

Description

After upload of a custom schema (via de GUI), the schema is placed in the WEB-INF/data/config/schema_plugins directory.

I use geonetwork.war under tomcat so in our system the dir is: /usr/share/tomcat6/webapps/geonetwork/WEB-INF/data/config/schema_plugins

I want this to be an other dir, because if geonetwork.war is redeployed, the uploaded schema is gone.

In WEB-INF/config.xml I saw the following line:

<param name="schemaPluginsDir" value="schemaPlugins" />

I expect that if I change the value of this parameter to a different dir, it might do the trick (store uploaded profiles at a custom defined dir instead of the default one). Unfortunately that didn't work (nothing changes). Also, I couldn't find documentation on changing the default dir for the schema plugins.

Is the schemaPluginsDir meant for this purpose? If so, this currently doesn't work (geonetwork r8955).

Change History (2)

comment:1 by fxp, 13 years ago

If you want to be able to redeploy the war, you should set a data directory outside the webapp. The schema plugin is in the data directory.

See http://geonetwork-opensource.org/manuals/trunk/eng/users/admin/advanced-configuration/index.html#geonetwork-data-directory

comment:2 by simonp, 12 years ago

Resolution: fixed
Status: newclosed

Removed obsolete schemaPluginsDir element from config.xml - schema plugins are in the geonetwork data dir as described above.

Note: See TracTickets for help on using tickets.