[GeoNetwork-users] schema plugin questions

Hi List,

I'd downloaded geonetwork trunk, build and deployed to my windows environment. Also downloaded the schemaplugin trunk and build to get the archive. What I had tested so far :

1) Start geonetwork, login as admin

2) Added iso19139.anzlic profile thru "Add a metadata schema / profile" - the profile has been added successfully with message "Schema iso19139.anzlic has been added/updated"

3) After adding the profile, clicking on the "New metadata", I don't see any template added for the anzlic profile ??

4) Another weird thing encountered is after adding the new profile, restarting GeoNetwork, the main.home will fail to load with the following error meessage
" The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected"

Looking into the geonetwork.log, here's detail of the the error log :

2011-07-29 10:58:17,625 INFO [jeeves.request] - ==========================================================
2011-07-29 10:58:17,625 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Method : GET
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Content type : null
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Accept : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Session id is F9CC5F52290D938EC7AA7EB378A5AA5B
2011-07-29 10:58:17,625 INFO [jeeves.service] - Dispatching : main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.service] - -> no input parameters
2011-07-29 10:58:17,625 INFO [jeeves.service] - -> dispatching to output for : main.home
2011-07-29 10:58:17,906 INFO [jeeves.service] - -> transforming with stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> exception during transformation for : main.home
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 3 errors detected.
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException
2011-07-29 10:58:18,672 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
  <message>Failed to compile stylesheet. 3 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet" file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl" file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="128" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="370" method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="296" method="transform" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="718" method="dispatchOutput" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="414" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="709" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="196" method="execute" />
  </stack>
  <request>
    <language>en</language>
    <service>main.home</service>
  </request>
  <response />
</error>

I'm stil very new to GeoNetwork and need some pointer if I had done something not right ? My questions would be :

Q1) Why after adding the iso19139.anzlic profile, the template doesn't show up in the list as 3) above ? I'd tested adding the existing iso19139 template and able to see lists of templates when click on "Add metadata"

Q2) What's causing the main page failed to load ? How can I fix it ?

Florence Tan
Software Engineer | Auscope Grid
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence.tan@anonymised.com<mailto:florence.tan@anonymised.com> | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.

Hi List,

After a few times trial and error, managed to get the profile uploaded and the template listed, a few mistakes done earlier and here's the correct steps for those who are interested :

1) Login to geonetwork as admin
2) Add anzlic profile thru "Add a metadata schema / profile"
3) Add the template for the new profile => previously missing this step
4) Click on "New metadata", now able to see list of iso19139.anzlic templates

* One thing to note : before adding anzlic profile template, you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.

As for the "The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected" error that I had, found the root cause. What I had done, recreate the database used by GeoNetwork, removing the newly uploaded schema folder (as specify in config.xml -> schemaPluginsDir parameter). After restart, GeoNetwork will failed to load the and getting the mentioned error. To fix, remove the new uri appended for the new schema plugin in ../WEB-INF/schemaplugin-uri-catalog.xml file (after <!-- plug in schemas - come next - managed by schema.add/update/delete -->). Restart GeoNetwork.

Cheers,
Florence

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 11:30 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] [GeoNetwork-users] schema plugin questions

Hi List,

I'd downloaded geonetwork trunk, build and deployed to my windows environment. Also downloaded the schemaplugin trunk and build to get the archive. What I had tested so far :

1) Start geonetwork, login as admin

2) Added iso19139.anzlic profile thru "Add a metadata schema / profile" - the profile has been added successfully with message "Schema iso19139.anzlic has been added/updated"

3) After adding the profile, clicking on the "New metadata", I don't see any template added for the anzlic profile ??

4) Another weird thing encountered is after adding the new profile, restarting GeoNetwork, the main.home will fail to load with the following error meessage
" The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected"

Looking into the geonetwork.log, here's detail of the the error log :

2011-07-29 10:58:17,625 INFO [jeeves.request] - ==========================================================
2011-07-29 10:58:17,625 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Method : GET
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Content type : null
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Accept : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Session id is F9CC5F52290D938EC7AA7EB378A5AA5B
2011-07-29 10:58:17,625 INFO [jeeves.service] - Dispatching : main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.service] - -> no input parameters
2011-07-29 10:58:17,625 INFO [jeeves.service] - -> dispatching to output for : main.home
2011-07-29 10:58:17,906 INFO [jeeves.service] - -> transforming with stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> exception during transformation for : main.home
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 3 errors detected.
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException
2011-07-29 10:58:18,672 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
  <message>Failed to compile stylesheet. 3 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet" file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl" file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="128" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="370" method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="296" method="transform" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="718" method="dispatchOutput" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="414" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="709" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="196" method="execute" />
  </stack>
  <request>
    <language>en</language>
    <service>main.home</service>
  </request>
  <response />
</error>

I'm stil very new to GeoNetwork and need some pointer if I had done something not right ? My questions would be :

Q1) Why after adding the iso19139.anzlic profile, the template doesn't show up in the list as 3) above ? I'd tested adding the existing iso19139 template and able to see lists of templates when click on "Add metadata"

Q2) What's causing the main page failed to load ? How can I fix it ?

Florence Tan
Software Engineer | Auscope Grid
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence.tan@anonymised.com<mailto:florence.tan@anonymised.com> | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

One more point to add :

5) if the new template still doesn't listed, restart GeoNetwork.

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 2:35 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] Re: [GeoNetwork-users] schema plugin questions

Hi List,

After a few times trial and error, managed to get the profile uploaded and the template listed, a few mistakes done earlier and here's the correct steps for those who are interested :

1) Login to geonetwork as admin
2) Add anzlic profile thru "Add a metadata schema / profile"
3) Add the template for the new profile => previously missing this step
4) Click on "New metadata", now able to see list of iso19139.anzlic templates

* One thing to note : before adding anzlic profile template, you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.

As for the "The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected" error that I had, found the root cause. What I had done, recreate the database used by GeoNetwork, removing the newly uploaded schema folder (as specify in config.xml -> schemaPluginsDir parameter). After restart, GeoNetwork will failed to load the and getting the mentioned error. To fix, remove the new uri appended for the new schema plugin in ../WEB-INF/schemaplugin-uri-catalog.xml file (after <!-- plug in schemas - come next - managed by schema.add/update/delete -->). Restart GeoNetwork.

Cheers,
Florence

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 11:30 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] [GeoNetwork-users] schema plugin questions

Hi List,

I'd downloaded geonetwork trunk, build and deployed to my windows environment. Also downloaded the schemaplugin trunk and build to get the archive. What I had tested so far :

1) Start geonetwork, login as admin

2) Added iso19139.anzlic profile thru "Add a metadata schema / profile" - the profile has been added successfully with message "Schema iso19139.anzlic has been added/updated"

3) After adding the profile, clicking on the "New metadata", I don't see any template added for the anzlic profile ??

4) Another weird thing encountered is after adding the new profile, restarting GeoNetwork, the main.home will fail to load with the following error meessage
" The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected"

Looking into the geonetwork.log, here's detail of the the error log :

2011-07-29 10:58:17,625 INFO [jeeves.request] - ==========================================================
2011-07-29 10:58:17,625 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Method : GET
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Content type : null
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Accept : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Session id is F9CC5F52290D938EC7AA7EB378A5AA5B
2011-07-29 10:58:17,625 INFO [jeeves.service] - Dispatching : main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.service] - -> no input parameters
2011-07-29 10:58:17,625 INFO [jeeves.service] - -> dispatching to output for : main.home
2011-07-29 10:58:17,906 INFO [jeeves.service] - -> transforming with stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> exception during transformation for : main.home
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 3 errors detected.
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException
2011-07-29 10:58:18,672 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
  <message>Failed to compile stylesheet. 3 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet" file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl" file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="128" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="370" method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="296" method="transform" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="718" method="dispatchOutput" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="414" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="709" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="196" method="execute" />
  </stack>
  <request>
    <language>en</language>
    <service>main.home</service>
  </request>
  <response />
</error>

I'm stil very new to GeoNetwork and need some pointer if I had done something not right ? My questions would be :

Q1) Why after adding the iso19139.anzlic profile, the template doesn't show up in the list as 3) above ? I'd tested adding the existing iso19139 template and able to see lists of templates when click on "Add metadata"

Q2) What's causing the main page failed to load ? How can I fix it ?

Florence Tan
Software Engineer | Auscope Grid
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence.tan@anonymised.com<mailto:florence.tan@anonymised.com> | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Florence,

This may have been unnecessarily complicated due to some unusual steps you took? There is no need to add iso19139 - it is a built in schema and it's presence is assumed - if you removed it (and I don't know why you'd do that) then this might explain why you've had issues.

I just built a bare trunk + installer, installed it, built the schemaPlugin zip files (by running 'ant' in the checked out schemaPlugins/trunk directory), then added iso19139.anzlic.zip (from the dist subdirectory) to GeoNetwork thru 'Add a metadata schema / profile' and everything worked as expected.

Basically I'm not sure why you have had to take such convoluted steps (unless you removed the iso19139 built in schema) but I certainly didn't and don't see the problems you have had.

If there are additional steps or extra info that might help avoid this in future it would be good if you can suggest it for the doco.

Cheers and thanks,
Simon
________________________________________
From: Florence.Tan@anonymised.com [Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 5:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] schema plugin questions

One more point to add :

5) if the new template still doesn't listed, restart GeoNetwork.

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 2:35 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] Re: [GeoNetwork-users] schema plugin questions

Hi List,

After a few times trial and error, managed to get the profile uploaded and the template listed, a few mistakes done earlier and here's the correct steps for those who are interested :

1) Login to geonetwork as admin
2) Add anzlic profile thru "Add a metadata schema / profile"
3) Add the template for the new profile => previously missing this step
4) Click on "New metadata", now able to see list of iso19139.anzlic templates

* One thing to note : before adding anzlic profile template, you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.

As for the "The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected" error that I had, found the root cause. What I had done, recreate the database used by GeoNetwork, removing the newly uploaded schema folder (as specify in config.xml -> schemaPluginsDir parameter). After restart, GeoNetwork will failed to load the and getting the mentioned error. To fix, remove the new uri appended for the new schema plugin in ../WEB-INF/schemaplugin-uri-catalog.xml file (after <!-- plug in schemas - come next - managed by schema.add/update/delete -->). Restart GeoNetwork.

Cheers,
Florence

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 11:30 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] [GeoNetwork-users] schema plugin questions

Hi List,

I'd downloaded geonetwork trunk, build and deployed to my windows environment. Also downloaded the schemaplugin trunk and build to get the archive. What I had tested so far :

1) Start geonetwork, login as admin

2) Added iso19139.anzlic profile thru "Add a metadata schema / profile" - the profile has been added successfully with message "Schema iso19139.anzlic has been added/updated"

3) After adding the profile, clicking on the "New metadata", I don't see any template added for the anzlic profile ??

4) Another weird thing encountered is after adding the new profile, restarting GeoNetwork, the main.home will fail to load with the following error meessage
" The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected"

Looking into the geonetwork.log, here's detail of the the error log :

2011-07-29 10:58:17,625 INFO [jeeves.request] - ==========================================================
2011-07-29 10:58:17,625 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Method : GET
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Content type : null
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Accept : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Session id is F9CC5F52290D938EC7AA7EB378A5AA5B
2011-07-29 10:58:17,625 INFO [jeeves.service] - Dispatching : main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.service] - -> no input parameters
2011-07-29 10:58:17,625 INFO [jeeves.service] - -> dispatching to output for : main.home
2011-07-29 10:58:17,906 INFO [jeeves.service] - -> transforming with stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> exception during transformation for : main.home
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 3 errors detected.
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException
2011-07-29 10:58:18,672 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
  <message>Failed to compile stylesheet. 3 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet" file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl" file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="128" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="370" method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="296" method="transform" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="718" method="dispatchOutput" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="414" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="709" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="196" method="execute" />
  </stack>
  <request>
    <language>en</language>
    <service>main.home</service>
  </request>
  <response />
</error>

I'm stil very new to GeoNetwork and need some pointer if I had done something not right ? My questions would be :

Q1) Why after adding the iso19139.anzlic profile, the template doesn't show up in the list as 3) above ? I'd tested adding the existing iso19139 template and able to see lists of templates when click on "Add metadata"

Q2) What's causing the main page failed to load ? How can I fix it ?

Florence Tan
Software Engineer | Auscope Grid
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence.tan@anonymised.com<mailto:florence.tan@anonymised.com> | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Simon,

No, I didn't remove the build in schema for iso19139. What I think will be an important step is to restart GeoNetwork if the new template added doesn't show up in the list. My first test was just adding the iso19139.anzlic.zip and the template, but when click on the Add metadata, I get message ask me to add template first - I guess if I have restarted the GeoNetwork, I do not have to run thru all these trial and error.

After successful added the anzlic profile, I go on with a second test to add the mcp profile, successfully added and no restart of GeoNetwork needed and is able to see the mcp template in the template list in Add Metadata.

FYI, I'm using Internet Explorer.

Regards,
Florence

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Friday, 29 July 2011 4:14 PM
To: Tan, Florence (CESRE, Kensington); geonetwork-users@anonymised.comet
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Florence,

This may have been unnecessarily complicated due to some unusual steps you took? There is no need to add iso19139 - it is a built in schema and it's presence is assumed - if you removed it (and I don't know why you'd do that) then this might explain why you've had issues.

I just built a bare trunk + installer, installed it, built the schemaPlugin zip files (by running 'ant' in the checked out schemaPlugins/trunk directory), then added iso19139.anzlic.zip (from the dist subdirectory) to GeoNetwork thru 'Add a metadata schema / profile' and everything worked as expected.

Basically I'm not sure why you have had to take such convoluted steps (unless you removed the iso19139 built in schema) but I certainly didn't and don't see the problems you have had.

If there are additional steps or extra info that might help avoid this in future it would be good if you can suggest it for the doco.

Cheers and thanks,
Simon
________________________________________
From: Florence.Tan@anonymised.com [Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 5:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] schema plugin questions

One more point to add :

5) if the new template still doesn't listed, restart GeoNetwork.

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 2:35 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] Re: [GeoNetwork-users] schema plugin questions

Hi List,

After a few times trial and error, managed to get the profile uploaded and the template listed, a few mistakes done earlier and here's the correct steps for those who are interested :

1) Login to geonetwork as admin
2) Add anzlic profile thru "Add a metadata schema / profile"
3) Add the template for the new profile => previously missing this step
4) Click on "New metadata", now able to see list of iso19139.anzlic templates

* One thing to note : before adding anzlic profile template, you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.

As for the "The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected" error that I had, found the root cause. What I had done, recreate the database used by GeoNetwork, removing the newly uploaded schema folder (as specify in config.xml -> schemaPluginsDir parameter). After restart, GeoNetwork will failed to load the and getting the mentioned error. To fix, remove the new uri appended for the new schema plugin in ../WEB-INF/schemaplugin-uri-catalog.xml file (after <!-- plug in schemas - come next - managed by schema.add/update/delete -->). Restart GeoNetwork.

Cheers,
Florence

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 11:30 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] [GeoNetwork-users] schema plugin questions

Hi List,

I'd downloaded geonetwork trunk, build and deployed to my windows environment. Also downloaded the schemaplugin trunk and build to get the archive. What I had tested so far :

1) Start geonetwork, login as admin

2) Added iso19139.anzlic profile thru "Add a metadata schema / profile" - the profile has been added successfully with message "Schema iso19139.anzlic has been added/updated"

3) After adding the profile, clicking on the "New metadata", I don't see any template added for the anzlic profile ??

4) Another weird thing encountered is after adding the new profile, restarting GeoNetwork, the main.home will fail to load with the following error meessage
" The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected"

Looking into the geonetwork.log, here's detail of the the error log :

2011-07-29 10:58:17,625 INFO [jeeves.request] - ==========================================================
2011-07-29 10:58:17,625 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Method : GET
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Content type : null
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Accept : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Session id is F9CC5F52290D938EC7AA7EB378A5AA5B
2011-07-29 10:58:17,625 INFO [jeeves.service] - Dispatching : main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.service] - -> no input parameters
2011-07-29 10:58:17,625 INFO [jeeves.service] - -> dispatching to output for : main.home
2011-07-29 10:58:17,906 INFO [jeeves.service] - -> transforming with stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> exception during transformation for : main.home
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 3 errors detected.
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException
2011-07-29 10:58:18,672 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
  <message>Failed to compile stylesheet. 3 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet" file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl" file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="128" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="370" method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="296" method="transform" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="718" method="dispatchOutput" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="414" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="709" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="196" method="execute" />
  </stack>
  <request>
    <language>en</language>
    <service>main.home</service>
  </request>
  <response />
</error>

I'm stil very new to GeoNetwork and need some pointer if I had done something not right ? My questions would be :

Q1) Why after adding the iso19139.anzlic profile, the template doesn't show up in the list as 3) above ? I'd tested adding the existing iso19139 template and able to see lists of templates when click on "Add metadata"

Q2) What's causing the main page failed to load ? How can I fix it ?

Florence Tan
Software Engineer | Auscope Grid
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence.tan@anonymised.com<mailto:florence.tan@anonymised.com> | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Florence,

Ok, not seeing the templates in 'New metadata' after adding a schema+templates is an issue that should be fixed, you shouldn't have to restart after adding a metadata schema. I've fixed that in svn commit rev 8049.

I really would like to know if possible how you ran into the other problems you mentioned in your original post where you were also saying that the main page wouldn't compile after you added the schema ie. 'The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected' and that you needed to add the base schema iso19139 ie. 'you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.' I couldn't reproduce those so the reason for this persistence is so that we can either change the doc or otherwise take steps to avoid that happening to other users :slight_smile:

Cheers and thanks for reporting this,
Simon
________________________________________
From: Tan, Florence (CESRE, Kensington)
Sent: Friday, 29 July 2011 6:25 PM
To: Pigot, Simon (CMAR, Hobart); geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Simon,

No, I didn't remove the build in schema for iso19139. What I think will be an important step is to restart GeoNetwork if the new template added doesn't show up in the list. My first test was just adding the iso19139.anzlic.zip and the template, but when click on the Add metadata, I get message ask me to add template first - I guess if I have restarted the GeoNetwork, I do not have to run thru all these trial and error.

After successful added the anzlic profile, I go on with a second test to add the mcp profile, successfully added and no restart of GeoNetwork needed and is able to see the mcp template in the template list in Add Metadata.

FYI, I'm using Internet Explorer.

Regards,
Florence

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Friday, 29 July 2011 4:14 PM
To: Tan, Florence (CESRE, Kensington); geonetwork-users@anonymised.comet
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Florence,

This may have been unnecessarily complicated due to some unusual steps you took? There is no need to add iso19139 - it is a built in schema and it's presence is assumed - if you removed it (and I don't know why you'd do that) then this might explain why you've had issues.

I just built a bare trunk + installer, installed it, built the schemaPlugin zip files (by running 'ant' in the checked out schemaPlugins/trunk directory), then added iso19139.anzlic.zip (from the dist subdirectory) to GeoNetwork thru 'Add a metadata schema / profile' and everything worked as expected.

Basically I'm not sure why you have had to take such convoluted steps (unless you removed the iso19139 built in schema) but I certainly didn't and don't see the problems you have had.

If there are additional steps or extra info that might help avoid this in future it would be good if you can suggest it for the doco.

Cheers and thanks,
Simon
________________________________________
From: Florence.Tan@anonymised.com [Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 5:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] schema plugin questions

One more point to add :

5) if the new template still doesn't listed, restart GeoNetwork.

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 2:35 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] Re: [GeoNetwork-users] schema plugin questions

Hi List,

After a few times trial and error, managed to get the profile uploaded and the template listed, a few mistakes done earlier and here's the correct steps for those who are interested :

1) Login to geonetwork as admin
2) Add anzlic profile thru "Add a metadata schema / profile"
3) Add the template for the new profile => previously missing this step
4) Click on "New metadata", now able to see list of iso19139.anzlic templates

* One thing to note : before adding anzlic profile template, you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.

As for the "The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected" error that I had, found the root cause. What I had done, recreate the database used by GeoNetwork, removing the newly uploaded schema folder (as specify in config.xml -> schemaPluginsDir parameter). After restart, GeoNetwork will failed to load the and getting the mentioned error. To fix, remove the new uri appended for the new schema plugin in ../WEB-INF/schemaplugin-uri-catalog.xml file (after <!-- plug in schemas - come next - managed by schema.add/update/delete -->). Restart GeoNetwork.

Cheers,
Florence

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 11:30 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] [GeoNetwork-users] schema plugin questions

Hi List,

I'd downloaded geonetwork trunk, build and deployed to my windows environment. Also downloaded the schemaplugin trunk and build to get the archive. What I had tested so far :

1) Start geonetwork, login as admin

2) Added iso19139.anzlic profile thru "Add a metadata schema / profile" - the profile has been added successfully with message "Schema iso19139.anzlic has been added/updated"

3) After adding the profile, clicking on the "New metadata", I don't see any template added for the anzlic profile ??

4) Another weird thing encountered is after adding the new profile, restarting GeoNetwork, the main.home will fail to load with the following error meessage
" The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected"

Looking into the geonetwork.log, here's detail of the the error log :

2011-07-29 10:58:17,625 INFO [jeeves.request] - ==========================================================
2011-07-29 10:58:17,625 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Method : GET
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Content type : null
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Accept : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Session id is F9CC5F52290D938EC7AA7EB378A5AA5B
2011-07-29 10:58:17,625 INFO [jeeves.service] - Dispatching : main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.service] - -> no input parameters
2011-07-29 10:58:17,625 INFO [jeeves.service] - -> dispatching to output for : main.home
2011-07-29 10:58:17,906 INFO [jeeves.service] - -> transforming with stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> exception during transformation for : main.home
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 3 errors detected.
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException
2011-07-29 10:58:18,672 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
  <message>Failed to compile stylesheet. 3 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet" file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl" file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="128" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="370" method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="296" method="transform" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="718" method="dispatchOutput" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="414" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="709" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="196" method="execute" />
  </stack>
  <request>
    <language>en</language>
    <service>main.home</service>
  </request>
  <response />
</error>

I'm stil very new to GeoNetwork and need some pointer if I had done something not right ? My questions would be :

Q1) Why after adding the iso19139.anzlic profile, the template doesn't show up in the list as 3) above ? I'd tested adding the existing iso19139 template and able to see lists of templates when click on "Add metadata"

Q2) What's causing the main page failed to load ? How can I fix it ?

Florence Tan
Software Engineer | Auscope Grid
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence.tan@anonymised.com<mailto:florence.tan@anonymised.com> | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Simon,

Thanks for the fix.

As for the second problem below, I guess this should not happen if the first problem has been fixed. I ran into that problem when I do this after adding the new schema and template and not seeing it listed in the add metadata page :

1) After I added the template, no template listed in "Add Metadata" page. So I had tried to add the template again. When checked in the database -> metadata table, the record shows that the template had been added successfully and had duplicate records due to my previous action.
2) Since there's no delete function for removing added template, what I did is to drop and recreate the geonetwork database and delete the schemaPlugin directory.
3) After restart GeoServer, 'The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected' error occurred. -> Mentioned in earlier email, if I manual remove the template, I should remove the entry in ../WEB-INF/schemaplugin-uri-catalog.xml file as well.
4) 'you must add the core profile template (iso19139 in this case)' => I guess this is incorrect and you can ignore this statement.

May be a "delete" button would be great for added template. Or additional doc to guide user how to remove a template from geonetwork. :slight_smile:

Thanks & Regards,
Florence

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Friday, 29 July 2011 11:38 PM
To: Tan, Florence (CESRE, Kensington); geonetwork-users@anonymised.comet
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Florence,

Ok, not seeing the templates in 'New metadata' after adding a schema+templates is an issue that should be fixed, you shouldn't have to restart after adding a metadata schema. I've fixed that in svn commit rev 8049.

I really would like to know if possible how you ran into the other problems you mentioned in your original post where you were also saying that the main page wouldn't compile after you added the schema ie. 'The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected' and that you needed to add the base schema iso19139 ie. 'you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.' I couldn't reproduce those so the reason for this persistence is so that we can either change the doc or otherwise take steps to avoid that happening to other users :slight_smile:

Cheers and thanks for reporting this,
Simon
________________________________________
From: Tan, Florence (CESRE, Kensington)
Sent: Friday, 29 July 2011 6:25 PM
To: Pigot, Simon (CMAR, Hobart); geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Simon,

No, I didn't remove the build in schema for iso19139. What I think will be an important step is to restart GeoNetwork if the new template added doesn't show up in the list. My first test was just adding the iso19139.anzlic.zip and the template, but when click on the Add metadata, I get message ask me to add template first - I guess if I have restarted the GeoNetwork, I do not have to run thru all these trial and error.

After successful added the anzlic profile, I go on with a second test to add the mcp profile, successfully added and no restart of GeoNetwork needed and is able to see the mcp template in the template list in Add Metadata.

FYI, I'm using Internet Explorer.

Regards,
Florence

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Friday, 29 July 2011 4:14 PM
To: Tan, Florence (CESRE, Kensington); geonetwork-users@anonymised.comet
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Florence,

This may have been unnecessarily complicated due to some unusual steps you took? There is no need to add iso19139 - it is a built in schema and it's presence is assumed - if you removed it (and I don't know why you'd do that) then this might explain why you've had issues.

I just built a bare trunk + installer, installed it, built the schemaPlugin zip files (by running 'ant' in the checked out schemaPlugins/trunk directory), then added iso19139.anzlic.zip (from the dist subdirectory) to GeoNetwork thru 'Add a metadata schema / profile' and everything worked as expected.

Basically I'm not sure why you have had to take such convoluted steps (unless you removed the iso19139 built in schema) but I certainly didn't and don't see the problems you have had.

If there are additional steps or extra info that might help avoid this in future it would be good if you can suggest it for the doco.

Cheers and thanks,
Simon
________________________________________
From: Florence.Tan@anonymised.com [Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 5:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] schema plugin questions

One more point to add :

5) if the new template still doesn't listed, restart GeoNetwork.

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 2:35 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] Re: [GeoNetwork-users] schema plugin questions

Hi List,

After a few times trial and error, managed to get the profile uploaded and the template listed, a few mistakes done earlier and here's the correct steps for those who are interested :

1) Login to geonetwork as admin
2) Add anzlic profile thru "Add a metadata schema / profile"
3) Add the template for the new profile => previously missing this step
4) Click on "New metadata", now able to see list of iso19139.anzlic templates

* One thing to note : before adding anzlic profile template, you must add the core profile template (iso19139 in this case) -> thanks Terry for pointing this out.

As for the "The requested operation could not be performed. TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected" error that I had, found the root cause. What I had done, recreate the database used by GeoNetwork, removing the newly uploaded schema folder (as specify in config.xml -> schemaPluginsDir parameter). After restart, GeoNetwork will failed to load the and getting the mentioned error. To fix, remove the new uri appended for the new schema plugin in ../WEB-INF/schemaplugin-uri-catalog.xml file (after <!-- plug in schemas - come next - managed by schema.add/update/delete -->). Restart GeoNetwork.

Cheers,
Florence

-----Original Message-----
From: Florence.Tan@anonymised.com [mailto:Florence.Tan@anonymised.com]
Sent: Friday, 29 July 2011 11:30 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [ExternalEmail] [GeoNetwork-users] schema plugin questions

Hi List,

I'd downloaded geonetwork trunk, build and deployed to my windows environment. Also downloaded the schemaplugin trunk and build to get the archive. What I had tested so far :

1) Start geonetwork, login as admin

2) Added iso19139.anzlic profile thru "Add a metadata schema / profile" - the profile has been added successfully with message "Schema iso19139.anzlic has been added/updated"

3) After adding the profile, clicking on the "New metadata", I don't see any template added for the anzlic profile ??

4) Another weird thing encountered is after adding the new profile, restarting GeoNetwork, the main.home will fail to load with the following error meessage
" The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors detected"

Looking into the geonetwork.log, here's detail of the the error log :

2011-07-29 10:58:17,625 INFO [jeeves.request] - ==========================================================
2011-07-29 10:58:17,625 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Method : GET
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Content type : null
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Accept : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
2011-07-29 10:58:17,625 DEBUG [jeeves.request] - Session id is F9CC5F52290D938EC7AA7EB378A5AA5B
2011-07-29 10:58:17,625 INFO [jeeves.service] - Dispatching : main.home
2011-07-29 10:58:17,625 DEBUG [jeeves.service] - -> no input parameters
2011-07-29 10:58:17,625 INFO [jeeves.service] - -> dispatching to output for : main.home
2011-07-29 10:58:17,906 INFO [jeeves.service] - -> transforming with stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> exception during transformation for : main.home
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) stylesheet : C:\geonetworktrunk\web\geonetwork\/xsl/main-page.xsl
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) message : Failed to compile stylesheet. 3 errors detected.
2011-07-29 10:58:18,672 ERROR [jeeves.service] - -> (C) exception : TransformerConfigurationException
2011-07-29 10:58:18,672 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
  <message>Failed to compile stylesheet. 3 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet" file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl" file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="128" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory" file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="370" method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="296" method="transform" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="718" method="dispatchOutput" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="414" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="709" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="196" method="execute" />
  </stack>
  <request>
    <language>en</language>
    <service>main.home</service>
  </request>
  <response />
</error>

I'm stil very new to GeoNetwork and need some pointer if I had done something not right ? My questions would be :

Q1) Why after adding the iso19139.anzlic profile, the template doesn't show up in the list as 3) above ? I'd tested adding the existing iso19139 template and able to see lists of templates when click on "Add metadata"

Q2) What's causing the main page failed to load ? How can I fix it ?

Florence Tan
Software Engineer | Auscope Grid
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence.tan@anonymised.com<mailto:florence.tan@anonymised.com> | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi,

I tried the same process as described by the original poster (Florence) and
get "TransformerConfigurationException : Failed to compile stylesheet. 3
errors detected.". I did not delete any schema's and I only added Anzmeta
once.

All I did was download the anzmeta.zip from
https://github.com/geonetwork/schema-plugins-no-history/tree/master/anzmeta
and then use "Add Template" and add the zip file. It installed fine and I
saw it in the template list on the home page but not on the list of
templates to use when creating an new metadata file.

Then when I tried to logout I got the error above. I have tried to restart
geonetwork/tomcat and even the machine but I still get the error. When I
look at
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/schemaplugin-uri-catalog.xml I
do not see a plug in schema added.

I can not run Simon's process (to ant the package) as my Geonetwork doesn't
load now.

best,

Aug 01, 2011; 12:03pm — by florence.tan florence.tan
Hi Simon,

Thanks for the fix.

As for the second problem below, I guess this should not happen if the first
problem has been fixed. I ran into that problem when I do this after adding
the new schema and template and not seeing it listed in the add metadata
page :

1) After I added the template, no template listed in "Add Metadata" page.
So I had tried to add the template again. When checked in the database ->
metadata table, the record shows that the template had been added
successfully and had duplicate records due to my previous action.
2) Since there's no delete function for removing added template, what I did
is to drop and recreate the geonetwork database and delete the schemaPlugin
directory.
3) After restart GeoServer, 'The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors
detected' error occurred. -> Mentioned in earlier email, if I manual remove
the template, I should remove the entry in
../WEB-INF/schemaplugin-uri-catalog.xml file as well.
4) 'you must add the core profile template (iso19139 in this case)' => I
guess this is incorrect and you can ignore this statement.

May be a "delete" button would be great for added template. Or additional
doc to guide user how to remove a template from geonetwork. :slight_smile:

Thanks & Regards,
Florence
Hi Simon,

Thanks for the fix.

As for the second problem below, I guess this should not happen if the first
problem has been fixed. I ran into that problem when I do this after adding
the new schema and template and not seeing it listed in the add metadata
page :

1) After I added the template, no template listed in "Add Metadata" page.
So I had tried to add the template again. When checked in the database ->
metadata table, the record shows that the template had been added
successfully and had duplicate records due to my previous action.
2) Since there's no delete function for removing added template, what I did
is to drop and recreate the geonetwork database and delete the schemaPlugin
directory.
3) After restart GeoServer, 'The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors
detected' error occurred. -> Mentioned in earlier email, if I manual remove
the template, I should remove the entry in
../WEB-INF/schemaplugin-uri-catalog.xml file as well.
4) 'you must add the core profile template (iso19139 in this case)' => I
guess this is incorrect and you can ignore this statement.

May be a "delete" button would be great for added template. Or additional
doc to guide user how to remove a template from geonetwork. :slight_smile:

Thanks & Regards,
Florence

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Friday, 29 July 2011 11:38 PM
To: Tan, Florence (CESRE, Kensington); [hidden email]
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Florence,

Ok, not seeing the templates in 'New metadata' after adding a
schema+templates is an issue that should be fixed, you shouldn't have to
restart after adding a metadata schema. I've fixed that in svn commit rev
8049.

I really would like to know if possible how you ran into the other problems
you mentioned in your original post where you were also saying that the main
page wouldn't compile after you added the schema ie. 'The requested
operation could not be performed. TransformerConfigurationException : Failed
to compile stylesheet. 3 errors detected' and that you needed to add the
base schema iso19139 ie. 'you must add the core profile template (iso19139
in this case) -> thanks Terry for pointing this out.' I couldn't reproduce
those so the reason for this persistence is so that we can either change the
doc or otherwise take steps to avoid that happening to other users :slight_smile:

Cheers and thanks for reporting this,
Simon

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/schema-plugin-questions-tp3860673p5042243.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi George,

The ANZMEST configuration of GeoNetwork 2.8.0 (as available from http://anzlicmet.bluenet.utas.edu.au) already includes the old anzmeta metadata schema ie. you don't need to do anything except install ANZMEST.

If you'd like to add the anzmeta sample record in ANZMEST then go to Administration, select anzmeta and add the sample record.

You cannot edit or create anzmeta records in GeoNetwork because anzmeta doesn't have an XML schema document/description (XSD) (well, not one that I know of anyway) - it is an older DTD based metadata schema (see http://www.ga.gov.au/anzmeta/). You can, however, import anzmeta records and index them for searching etc in GeoNetwork.

If you want to edit metadata in anzmeta records then your best bet is to import the anzmeta records and convert them to ANZLIC ISO19115/19139 using the import XSLT provided by ANZLIC for this purpose (choose the fabulously well named stylesheet anzMetav2toanzProfile from the stylesheet list provided by ANZMEST when you import the anzmeta records).

Information about the AU/NZ profiles included with ANZMEST (including references to documentation and schema plugin downloads for those that are using vanilla GeoNetwork 2.8.0) can be found on http://anzlicmet.bluenet.utas.edu.au

Cheers,
Simon
________________________________________
From: George Corea [georgec@anonymised.com]
Sent: Friday, 22 March 2013 1:20 PM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] schema plugin questions

Hi,

I tried the same process as described by the original poster (Florence) and
get "TransformerConfigurationException : Failed to compile stylesheet. 3
errors detected.". I did not delete any schema's and I only added Anzmeta
once.

All I did was download the anzmeta.zip from

and then use "Add Template" and add the zip file. It installed fine and I
saw it in the template list on the home page but not on the list of
templates to use when creating an new metadata file.

Then when I tried to logout I got the error above. I have tried to restart
geonetwork/tomcat and even the machine but I still get the error. When I
look at
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/schemaplugin-uri-catalog.xml I
do not see a plug in schema added.

I can not run Simon's process (to ant the package) as my Geonetwork doesn't
load now.

best,

Aug 01, 2011; 12:03pm — by florence.tan florence.tan
Hi Simon,

Thanks for the fix.

As for the second problem below, I guess this should not happen if the first
problem has been fixed. I ran into that problem when I do this after adding
the new schema and template and not seeing it listed in the add metadata
page :

1) After I added the template, no template listed in "Add Metadata" page.
So I had tried to add the template again. When checked in the database ->
metadata table, the record shows that the template had been added
successfully and had duplicate records due to my previous action.
2) Since there's no delete function for removing added template, what I did
is to drop and recreate the geonetwork database and delete the schemaPlugin
directory.
3) After restart GeoServer, 'The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors
detected' error occurred. -> Mentioned in earlier email, if I manual remove
the template, I should remove the entry in
../WEB-INF/schemaplugin-uri-catalog.xml file as well.
4) 'you must add the core profile template (iso19139 in this case)' => I
guess this is incorrect and you can ignore this statement.

May be a "delete" button would be great for added template. Or additional
doc to guide user how to remove a template from geonetwork. :slight_smile:

Thanks & Regards,
Florence
Hi Simon,

Thanks for the fix.

As for the second problem below, I guess this should not happen if the first
problem has been fixed. I ran into that problem when I do this after adding
the new schema and template and not seeing it listed in the add metadata
page :

1) After I added the template, no template listed in "Add Metadata" page.
So I had tried to add the template again. When checked in the database ->
metadata table, the record shows that the template had been added
successfully and had duplicate records due to my previous action.
2) Since there's no delete function for removing added template, what I did
is to drop and recreate the geonetwork database and delete the schemaPlugin
directory.
3) After restart GeoServer, 'The requested operation could not be performed.
TransformerConfigurationException : Failed to compile stylesheet. 3 errors
detected' error occurred. -> Mentioned in earlier email, if I manual remove
the template, I should remove the entry in
../WEB-INF/schemaplugin-uri-catalog.xml file as well.
4) 'you must add the core profile template (iso19139 in this case)' => I
guess this is incorrect and you can ignore this statement.

May be a "delete" button would be great for added template. Or additional
doc to guide user how to remove a template from geonetwork. :slight_smile:

Thanks & Regards,
Florence

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Friday, 29 July 2011 11:38 PM
To: Tan, Florence (CESRE, Kensington); [hidden email]
Subject: RE: [GeoNetwork-users] schema plugin questions

Hi Florence,

Ok, not seeing the templates in 'New metadata' after adding a
schema+templates is an issue that should be fixed, you shouldn't have to
restart after adding a metadata schema. I've fixed that in svn commit rev
8049.

I really would like to know if possible how you ran into the other problems
you mentioned in your original post where you were also saying that the main
page wouldn't compile after you added the schema ie. 'The requested
operation could not be performed. TransformerConfigurationException : Failed
to compile stylesheet. 3 errors detected' and that you needed to add the
base schema iso19139 ie. 'you must add the core profile template (iso19139
in this case) -> thanks Terry for pointing this out.' I couldn't reproduce
those so the reason for this persistence is so that we can either change the
doc or otherwise take steps to avoid that happening to other users :slight_smile:

Cheers and thanks for reporting this,
Simon

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/schema-plugin-questions-tp3860673p5042243.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.