[GeoNetwork-users] GeoNetwork CSW API errors

Hi everyone,

Got a quick question: I got two Geonetwork instances (version 3.0.4) and
compiled the MCP and ANZLIC schema into the GeoNetwork.war file (using
the METADATA101 repo).

I would like to use the CSW API to harvest and access the data from
other systems.

When I harvest data from one of the servers to the other, I get no
records back. In the log, I see a large number of warnings (see list below).

When I use the CSW Test tool and run any of the 'getRecords' requests
(i.e. with the CSW 2.0.2 output format) I don't get any records while
the response header indicates that there are matching records.

Any hints what I can do?

Cheers,

Rainer

[...]

List of warnings in the log:

2016-08-09 20:57:55,414 ERROR [geonetwork.search] -
----------------------------------------------
2016-08-09 20:57:55,460 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '892' (iso19139.mcp). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,461 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 892
2016-08-09 20:57:55,490 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '893' (csw-record). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/csw-record/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,490 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 893
2016-08-09 20:57:55,516 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '894' (csw-record). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/csw-record/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,516 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 894
2016-08-09 20:57:55,545 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '895' (iso19139.mcp). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,545 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 895
2016-08-09 20:57:55,575 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '896' (csw-record). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/csw-record/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,576 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 896
2016-08-09 20:57:55,605 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '897' (iso19139.mcp). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,605 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 897
2016-08-09 20:57:55,632 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '898' (csw-record). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/csw-record/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,632 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 898
2016-08-09 20:57:55,661 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '916' (iso19139.mcp). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,661 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 916
2016-08-09 20:57:55,699 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '914' (iso19139.mcp). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,699 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 914
2016-08-09 20:57:55,728 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '915' (csw-record). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/csw-record/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,728 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 915
2016-08-09 20:57:55,759 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '1021' (csw-record). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/csw-record/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,759 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 1021
2016-08-09 20:57:55,790 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '1022' (csw-record). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/csw-record/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,791 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 1022
2016-08-09 20:57:55,825 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '1023' (iso19139.mcp). Corresponding XSL
transformation
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'
does not exist. The record will not be returned in response.
2016-08-09 20:57:55,825 WARN [jeeves.webapp.csw] - SearchController :
Metadata not found or invalid schema : 1023
[...]

Hi,

The error message is pretty explicit
'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'
does not exist.

See https://github.com/geonetwork/core-geonetwork/pull/1280 for details and
instructions:
"For schema plugin maintainer, the 2 changes are:
* add allTypenames in XYZSchemaPlugin class to register supported typenames
* rename CSW XSLT transformation ogc => csw, iso => gmd"

HTH

Francois

2016-08-10 3:07 GMT+02:00 Rainer Spittel <fb3rasp@anonymised.com>:

Hi everyone,

Got a quick question: I got two Geonetwork instances (version 3.0.4) and
compiled the MCP and ANZLIC schema into the GeoNetwork.war file (using
the METADATA101 repo).

I would like to use the CSW API to harvest and access the data from
other systems.

When I harvest data from one of the servers to the other, I get no
records back. In the log, I see a large number of warnings (see list

below).

When I use the CSW Test tool and run any of the 'getRecords' requests
(i.e. with the CSW 2.0.2 output format) I don't get any records while
the response header indicates that there are matching records.

Any hints what I can do?

Cheers,

Rainer

[...]

List of warnings in the log:

2016-08-09 20:57:55,414 ERROR [geonetwork.search] -
----------------------------------------------
2016-08-09 20:57:55,460 WARN [jeeves.webapp.csw] - OutputSchema 'gmd'
not supported for metadata with '892' (iso19139.mcp). Corresponding XSL
transformation

'/var/lib/tomcat/webapps/tet/WEB-INF/data/config/schema_plugins/iso19139.mcp/present/csw/gmd-summary.xsl'

does not exist. The record will not be returned in response.

<snip/>