Hi Byron,
The zip file load method (currently) only works when the zip file is on the same server as the geonetwork installation. Looking at your catalina.out below, I can see that you've specified a windows pathname (probably on a local machine from which you are browsing the server) to the zip file but the server is some other machine because it's running Unix (from the pathname of the xslt file shown in the log) - you'd need to put the schema zip file on your Unix server to get that particular type of schema loading to work. You could maybe open an enhancement request to allow http upload as well - that way a browse dialog could be provided that would let you select a schema on a local drive.
You should still be able to loading the schema from an http URL (eg. zip file on a webserver somewhere such as a standards authority and/or the schema custodian) as well.
Cheers,
Simon
* - protocol needs to include 'metadata-schema'
________________________________________
From: ByronCinNZ [cochranes4@anonymised.com]
Sent: Friday, 16 March 2012 3:34 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Loading Schemas
Simon,
In this example I am test loading the iso19139.mcp profile. It gives the
same error if I browse from linux or windows so I do not think it is a path
name problem - and the same path loads on local installs both on ubuntu and
windows 7. I also tried moving the zip to a location accessible by url with
the same result. The only difference I see is that I did a headless install
and then changed file ownership on the install directory with chown instead
of using the install wizard. Nothing out of ordinary and all else seems to
work fine. I have had this occur on two separate, but identical, debian
servers. Below is the output from catalina.out.
/2012-03-16 02:53:14,043 INFO [jeeves.request] -
2012-03-16 02:53:14,043 INFO [jeeves.request] - HTML Request (from
192.168.102.145) : /geonetwork/srv/en/metadata.schema.add
2012-03-16 02:53:14,043 DEBUG [jeeves.request] - Method : POST
2012-03-16 02:53:14,044 DEBUG [jeeves.request] - Content type :
application/x-www-form-urlencoded; charset=UTF-8
2012-03-16 02:53:14,044 DEBUG [jeeves.request] - Accept :
text/javascript, text/html, application/xml, text/xml, */*
2012-03-16 02:53:14,044 DEBUG [jeeves.request] - Session id is
17A0E81FAC155685DA53B20B5515F427
2012-03-16 02:53:14,108 INFO [jeeves.service] - Dispatching :
metadata.schema.add
2012-03-16 02:53:14,108 DEBUG [jeeves.service] - -> parameters are :
<request>
<uuid />
<url />
<fname>C:\temp\Schemas\dist\iso19139.mcp.zip</fname>
<schema>iso19139.mcp</schema>
<_method>put</_method>
<fname-radio>on</fname-radio>
</request>
2012-03-16 02:53:14,134 ERROR [jeeves.service] - Exception when executing
service
2012-03-16 02:53:14,134 ERROR [jeeves.service] - (C) Exc :
OperationAbortedEx : Zip Archive doesn't exist
2012-03-16 02:53:14,135 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="operation-aborted">
<message>Zip Archive doesn't exist</message>
<class>OperationAbortedEx</class>
<stack>
<at class="org.fao.geonet.services.schema.SchemaUtils"
file="SchemaUtils.java" line="143" method="doSchema" />
<at class="org.fao.geonet.services.schema.SchemaUtils"
file="SchemaUtils.java" line="128" method="processSchema" />
<at class="org.fao.geonet.services.schema.SchemaUtils"
file="SchemaUtils.java" line="51" method="addSchema" />
<at class="org.fao.geonet.services.schema.Add" file="Add.java" line="93"
method="exec" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="230" method="execService" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="139" method="execServices" />
<at class="jeeves.server.dispatchers.ServiceManager"
file="ServiceManager.java" line="411" method="dispatch" />
<at class="jeeves.server.JeevesEngine" file="JeevesEngine.java"
line="723" method="dispatch" />
<at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="196" method="execute" />
<at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="110" method="doPost" />
<skip>...</skip>
</stack>
<request>
<language>en</language>
<service>metadata.schema.add</service>
</request>
</error>
2012-03-16 02:53:14,135 INFO [jeeves.service] - -> dispatching to error
for : metadata.schema.add
2012-03-16 02:53:14,146 INFO [jeeves.service] - -> transforming with
stylesheet : /var/lib/tomcat6/webapps/geonetwork/xsl/xml-error.xsl
2012-03-16 02:53:14,171 INFO [jeeves.service] - -> end error
transformation for : metadata.schema.add
2012-03-16 02:53:14,171 INFO [jeeves.service] - -> error ended for :
metadata.schema.add/
Cheers,
Byron
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Loading-Schemas-tp4587666p4622079.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork