[GeoNetwork-devel] TransformerConfigurationException with Geonetwork 2.8.0

Hi list,

I am having trouble getting Geonetwork 2.8.0 to work. I am developing and building within Eclipse and running Geonetwork through Jetty for local testing works fine. The problems start, when I deploy it to tomcat on the server or locally:

a) When I set a custom data directory and leave it empty Geonetwork fills it with the basic folder-structure. No schemas are available therefore in the administration-interface.

b) Copying the datadir-content from WEB-INF/data to the custom datadirectory results in getting a TransformerConfigurationException with “Failed to compile stylesheet. 2 errors detected.” (this error didn´t occur before, therefore I think it has to do with the datadirectory-change)
The respective entry from the logfile:
2013-03-08 16:17:06,144 ERROR [jeeves.service] - → exception during transformation for : main.home

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) stylesheet : /var/lib/tomcat6/webapps/geonetwork_test/xsl/main-page.xsl

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) message : Failed to compile stylesheet. 2 errors detected.

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) exception : TransformerConfigurationException

c) When I test Geonetwork from within Eclipse in my local tomcat I get even more stylesheet-compilation-errors (66). This time with tons of error-entries like this one:
Error at xsl:template on line 7 column 48 of metadata-csw-record-fop.xsl:
XTSE0660: Duplicate named template (see line 7 of
file:/C:/Geonetwork-GIT-Sources/core-geonetwork/web/target/geonetwork/WEB-INF/data/config/schema_plugins/csw-record/present/metadata-csw-record-fop.xsl)

Does someone have an idea what the reason for this behavior could be and how I could fix it.

Best regards and thanks in advance,

Max Stephan

Yes - I've noticed this too (you are not alone! :-)) but haven't had time to get round to finding out why as yet....

Note: subject line is a little misleading, as the exception doesn't occur for normal installations of GeoNetwork, only after you run from eclipse (or mvn jetty:run) ie. for *developers* only.

Cheers,
Simon
________________________________________
From: Max Stephan [max.stephan@anonymised.com]
Sent: Saturday, 9 March 2013 2:53 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] TransformerConfigurationException with Geonetwork 2.8.0

Hi list,

I am having trouble getting Geonetwork 2.8.0 to work. I am developing and building within Eclipse and running Geonetwork through Jetty for local testing works fine. The problems start, when I deploy it to tomcat on the server or locally:

a) When I set a custom data directory and leave it empty Geonetwork fills it with the basic folder-structure. No schemas are available therefore in the administration-interface.

b) Copying the datadir-content from WEB-INF/data to the custom datadirectory results in getting a TransformerConfigurationException with “Failed to compile stylesheet. 2 errors detected.” (this error didn´t occur before, therefore I think it has to do with the datadirectory-change)
The respective entry from the logfile:
2013-03-08 16:17:06,144 ERROR [jeeves.service] - -> exception during transformation for : main.home

2013-03-08 16:17:06,145 ERROR [jeeves.service] - -> (C) stylesheet : /var/lib/tomcat6/webapps/geonetwork_test/xsl/main-page.xsl

2013-03-08 16:17:06,145 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 2 errors detected.

2013-03-08 16:17:06,145 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException

c) When I test Geonetwork from within Eclipse in my local tomcat I get even more stylesheet-compilation-errors (66). This time with tons of error-entries like this one:
Error at xsl:template on line 7 column 48 of metadata-csw-record-fop.xsl:
XTSE0660: Duplicate named template (see line 7 of
file:/C:/Geonetwork-GIT-Sources/core-geonetwork/web/target/geonetwork/WEB-INF/data/config/schema_plugins/csw-record/present/metadata-csw-record-fop.xsl)

Does someone have an idea what the reason for this behavior could be and how I could fix it.

Best regards and thanks in advance,
Max Stephan

Hi, maybe when moving the data dir, there is some dupicate entries in schemaplugin-uri-catalog.xml ?

Francois

···

2013/3/9 <Simon.Pigot@anonymised.com>

Yes - I’ve noticed this too (you are not alone! :-)) but haven’t had time to get round to finding out why as yet…

Note: subject line is a little misleading, as the exception doesn’t occur for normal installations of GeoNetwork, only after you run from eclipse (or mvn jetty:run) ie. for developers only.

Cheers,
Simon


From: Max Stephan [max.stephan@anonymised.com458…]
Sent: Saturday, 9 March 2013 2:53 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] TransformerConfigurationException with Geonetwork 2.8.0

Hi list,

I am having trouble getting Geonetwork 2.8.0 to work. I am developing and building within Eclipse and running Geonetwork through Jetty for local testing works fine. The problems start, when I deploy it to tomcat on the server or locally:

a) When I set a custom data directory and leave it empty Geonetwork fills it with the basic folder-structure. No schemas are available therefore in the administration-interface.

b) Copying the datadir-content from WEB-INF/data to the custom datadirectory results in getting a TransformerConfigurationException with “Failed to compile stylesheet. 2 errors detected.” (this error didn´t occur before, therefore I think it has to do with the datadirectory-change)
The respective entry from the logfile:
2013-03-08 16:17:06,144 ERROR [jeeves.service] - → exception during transformation for : main.home

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) stylesheet : /var/lib/tomcat6/webapps/geonetwork_test/xsl/main-page.xsl

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) message : Failed to compile stylesheet. 2 errors detected.

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) exception : TransformerConfigurationException

c) When I test Geonetwork from within Eclipse in my local tomcat I get even more stylesheet-compilation-errors (66). This time with tons of error-entries like this one:
Error at xsl:template on line 7 column 48 of metadata-csw-record-fop.xsl:
XTSE0660: Duplicate named template (see line 7 of
file:/C:/Geonetwork-GIT-Sources/core-geonetwork/web/target/geonetwork/WEB-INF/data/config/schema_plugins/csw-record/present/metadata-csw-record-fop.xsl)

Does someone have an idea what the reason for this behavior could be and how I could fix it.

Best regards and thanks in advance,
Max Stephan


Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave™: Endpoint Security, Q1 2013 and “remains a good choice” in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi,

Schemaplugin-uri-catalog.xml was the problem. For some reason the entries from running it locally were kept in there when being deployed to the server as well. So I manually deleted them and it worked fine. Thank you!

Regards,

Max

From: Francois Prunayre [mailto:fx.prunayre@anonymised.com]
Sent: 09 March 2013 09:10
To: Simon Pigot
Cc: Max Stephan; Devel geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] TransformerConfigurationException with Geonetwork 2.8.0

Hi, maybe when moving the data dir, there is some dupicate entries in schemaplugin-uri-catalog.xml ?

Francois

2013/3/9 <Simon.Pigot@anonymised.com>

Yes - I’ve noticed this too (you are not alone! :-)) but haven’t had time to get round to finding out why as yet…

Note: subject line is a little misleading, as the exception doesn’t occur for normal installations of GeoNetwork, only after you run from eclipse (or mvn jetty:run) ie. for developers only.

Cheers,
Simon


From: Max Stephan [max.stephan@anonymised.com]
Sent: Saturday, 9 March 2013 2:53 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] TransformerConfigurationException with Geonetwork 2.8.0

Hi list,

I am having trouble getting Geonetwork 2.8.0 to work. I am developing and building within Eclipse and running Geonetwork through Jetty for local testing works fine. The problems start, when I deploy it to tomcat on the server or locally:

a) When I set a custom data directory and leave it empty Geonetwork fills it with the basic folder-structure. No schemas are available therefore in the administration-interface.

b) Copying the datadir-content from WEB-INF/data to the custom datadirectory results in getting a TransformerConfigurationException with “Failed to compile stylesheet. 2 errors detected.” (this error didn´t occur before, therefore I think it has to do with the datadirectory-change)
The respective entry from the logfile:
2013-03-08 16:17:06,144 ERROR [jeeves.service] - → exception during transformation for : main.home

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) stylesheet : /var/lib/tomcat6/webapps/geonetwork_test/xsl/main-page.xsl

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) message : Failed to compile stylesheet. 2 errors detected.

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) exception : TransformerConfigurationException

c) When I test Geonetwork from within Eclipse in my local tomcat I get even more stylesheet-compilation-errors (66). This time with tons of error-entries like this one:
Error at xsl:template on line 7 column 48 of metadata-csw-record-fop.xsl:
XTSE0660: Duplicate named template (see line 7 of
file:/C:/Geonetwork-GIT-Sources/core-geonetwork/web/target/geonetwork/WEB-INF/data/config/schema_plugins/csw-record/present/metadata-csw-record-fop.xsl)

Does someone have an idea what the reason for this behavior could be and how I could fix it.

Best regards and thanks in advance,
Max Stephan


Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave™: Endpoint Security, Q1 2013 and “remains a good choice” in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Max

If you use the default data dir when running in jetty in development, note that inside WEB-INF/data are created several folders (apart of existing config folder). These folders should be removed before building the war/installer:

  • WEB-INF/data/data
  • WEB-INF/data/index

and also updated the file Schemaplugin-uri-catalog.xml as you point.

I think this can be handle in maven, so when building the war file this is done automatically. If you can open a issue in trac would be great.

Thanks and regards,
Jose García

On Tue, Mar 12, 2013 at 4:36 PM, Max Stephan <max.stephan@anonymised.com> wrote:

Hi,

Schemaplugin-uri-catalog.xml was the problem. For some reason the entries from running it locally were kept in there when being deployed to the server as well. So I manually deleted them and it worked fine. Thank you!

Regards,

Max

From: Francois Prunayre [mailto:fx.prunayre@anonymised.com]
Sent: 09 March 2013 09:10
To: Simon Pigot
Cc: Max Stephan; Devel geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] TransformerConfigurationException with Geonetwork 2.8.0

Hi, maybe when moving the data dir, there is some dupicate entries in schemaplugin-uri-catalog.xml ?

Francois

2013/3/9 <Simon.Pigot@anonymised.com>

Yes - I’ve noticed this too (you are not alone! :-)) but haven’t had time to get round to finding out why as yet…

Note: subject line is a little misleading, as the exception doesn’t occur for normal installations of GeoNetwork, only after you run from eclipse (or mvn jetty:run) ie. for developers only.

Cheers,
Simon


From: Max Stephan [max.stephan@anonymised.com]
Sent: Saturday, 9 March 2013 2:53 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] TransformerConfigurationException with Geonetwork 2.8.0

Hi list,

I am having trouble getting Geonetwork 2.8.0 to work. I am developing and building within Eclipse and running Geonetwork through Jetty for local testing works fine. The problems start, when I deploy it to tomcat on the server or locally:

a) When I set a custom data directory and leave it empty Geonetwork fills it with the basic folder-structure. No schemas are available therefore in the administration-interface.

b) Copying the datadir-content from WEB-INF/data to the custom datadirectory results in getting a TransformerConfigurationException with “Failed to compile stylesheet. 2 errors detected.” (this error didn´t occur before, therefore I think it has to do with the datadirectory-change)
The respective entry from the logfile:
2013-03-08 16:17:06,144 ERROR [jeeves.service] - → exception during transformation for : main.home

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) stylesheet : /var/lib/tomcat6/webapps/geonetwork_test/xsl/main-page.xsl

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) message : Failed to compile stylesheet. 2 errors detected.

2013-03-08 16:17:06,145 ERROR [jeeves.service] - → (C) exception : TransformerConfigurationException

c) When I test Geonetwork from within Eclipse in my local tomcat I get even more stylesheet-compilation-errors (66). This time with tons of error-entries like this one:
Error at xsl:template on line 7 column 48 of metadata-csw-record-fop.xsl:
XTSE0660: Duplicate named template (see line 7 of
file:/C:/Geonetwork-GIT-Sources/core-geonetwork/web/target/geonetwork/WEB-INF/data/config/schema_plugins/csw-record/present/metadata-csw-record-fop.xsl)

Does someone have an idea what the reason for this behavior could be and how I could fix it.

Best regards and thanks in advance,
Max Stephan


Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave™: Endpoint Security, Q1 2013 and “remains a good choice” in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev


GeoNetwork-devel mailing list
GeoNetwork-devel@anonymised.comforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave™: Endpoint Security, Q1 2013 and “remains a good choice” in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net

Hello,

this message "TransformerConfigurationException with Geonetwork 2.8.0" does
not only turn up in Eclipse, but also if you install it on a Linux-machine /
tomcat / postgres.

The error message showing up after starting GeoNetwork with a browser is:

*The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 66 errors
detected.*

Greetings
Anja

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/TransformerConfigurationException-with-Geonetwork-2-8-0-tp5039238p5040138.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.