[GeoNetwork-users] Structured import - Exception : Unknown schema format ?

Hello

I can not do a Structured import

- Exception: Unknown schema format?

Is there anyone who can see what is wrong?

Regards
Jesper

Here is an example of the import-config.xml file:

<config>
    <categoryMapping>
        <mapping dir="Adresser" to="adresser" />
        <mapping dir="Andre_res" to="andre_res" />
        <mapping dir="Foruren_areal" to="Foruren_areal" />
        <mapping dir="Fredn_beskytlin" to="fredn_beskytlin" />
        <mapping dir="Friluftsliv" to="friluftsliv" />
        <mapping dir="Grundvand" to="grundvand" />
        <mapping dir="Landbrug" to="landbrug" />
        <mapping dir="Landskab_geologi" to="landskab_geologi" />
        <mapping dir="Matrikel" to="matrikel" />
        <mapping dir="Natur" to="natur" />
        <mapping dir="Ortofoto" to="ortofoto" />
        <mapping dir="Planlaegning" to="planlaegning" />
        <mapping dir="Raastof" to="raastof" />
        <mapping dir="Skovbrug" to="skovbrug" />
        <mapping dir="Stoej" to="stoej" />
        <mapping dir="Saerl_datasamlinger" to="saerl_datasamlinger" />
        <mapping dir="Soekort" to="soekort" />
        <mapping dir="Tekniske_anlaeg" to="tekniske_anlaeg" />
        <mapping dir="Topografi" to="topografi" />
        <mapping dir="Vandmiljoe" to="vandmiljoe" />
        <mapping dir="Oevrig_ref_data" to="oevrig_ref_data" />
        <default to="Oevrig_ref_data" />
    </categoryMapping>
    <schemaMapping>
        <mapping dir="Adresser" to="iso19139" />
        <mapping dir="Andre_res" to="iso19139" />
        <mapping dir="Foruren_areal" to="iso19139" />
        <mapping dir="Fredn_beskytlin" to="iso19139" />
        <mapping dir="Friluftsliv" to="iso19139" />
        <mapping dir="Grundvand" to="iso19139" />
        <mapping dir="Landbrug" to="iso19139" />
        <mapping dir="Landskab_geologi" to="iso19139" />
        <mapping dir="Matrikel" to="iso19139" />
        <mapping dir="Natur" to="iso19139" />
        <mapping dir="Ortofoto" to="iso19139" />
        <mapping dir="Planlaegning" to="iso19139" />
        <mapping dir="Raastof" to="iso19139" />
        <mapping dir="Skovbrug" to="iso19139" />
        <mapping dir="Stoej" to="iso19139" />
        <mapping dir="Saerl_datasamlinger" to="iso19139" />
        <mapping dir="Soekort" to="iso19139" />
        <mapping dir="Tekniske_anlaeg" to="iso19139" />
        <mapping dir="Topografi" to="iso19139" />
        <mapping dir="Vandmiljoe" to="iso19139" />
        <mapping dir="Oevrig_ref_data" to="iso19139" />
        <default to="iso19139" />
    </schemaMapping>
</config>
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Structured-import-Exception-Unknown-schema-format-tp5186017p5186017.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Jesper

Could you provide us any files you tried to import?

Thanks,

Mathieu

On Wed, Jun 16, 2010 at 1:31 PM, jesperna <Jenan@anonymised.com> wrote:

Hello

I can not do a Structured import

- Exception: Unknown schema format?

Is there anyone who can see what is wrong?

Regards
Jesper

Here is an example of the import-config.xml file:

<config>
   <categoryMapping>
       <mapping dir="Adresser" to="adresser" />
       <mapping dir="Andre_res" to="andre_res" />
       <mapping dir="Foruren_areal" to="Foruren_areal" />
       <mapping dir="Fredn_beskytlin" to="fredn_beskytlin" />
       <mapping dir="Friluftsliv" to="friluftsliv" />
       <mapping dir="Grundvand" to="grundvand" />
       <mapping dir="Landbrug" to="landbrug" />
       <mapping dir="Landskab_geologi" to="landskab_geologi" />
       <mapping dir="Matrikel" to="matrikel" />
       <mapping dir="Natur" to="natur" />
       <mapping dir="Ortofoto" to="ortofoto" />
       <mapping dir="Planlaegning" to="planlaegning" />
       <mapping dir="Raastof" to="raastof" />
       <mapping dir="Skovbrug" to="skovbrug" />
       <mapping dir="Stoej" to="stoej" />
       <mapping dir="Saerl_datasamlinger" to="saerl_datasamlinger" />
       <mapping dir="Soekort" to="soekort" />
       <mapping dir="Tekniske_anlaeg" to="tekniske_anlaeg" />
       <mapping dir="Topografi" to="topografi" />
       <mapping dir="Vandmiljoe" to="vandmiljoe" />
       <mapping dir="Oevrig_ref_data" to="oevrig_ref_data" />
       <default to="Oevrig_ref_data" />
   </categoryMapping>
   <schemaMapping>
       <mapping dir="Adresser" to="iso19139" />
       <mapping dir="Andre_res" to="iso19139" />
       <mapping dir="Foruren_areal" to="iso19139" />
       <mapping dir="Fredn_beskytlin" to="iso19139" />
       <mapping dir="Friluftsliv" to="iso19139" />
       <mapping dir="Grundvand" to="iso19139" />
       <mapping dir="Landbrug" to="iso19139" />
       <mapping dir="Landskab_geologi" to="iso19139" />
       <mapping dir="Matrikel" to="iso19139" />
       <mapping dir="Natur" to="iso19139" />
       <mapping dir="Ortofoto" to="iso19139" />
       <mapping dir="Planlaegning" to="iso19139" />
       <mapping dir="Raastof" to="iso19139" />
       <mapping dir="Skovbrug" to="iso19139" />
       <mapping dir="Stoej" to="iso19139" />
       <mapping dir="Saerl_datasamlinger" to="iso19139" />
       <mapping dir="Soekort" to="iso19139" />
       <mapping dir="Tekniske_anlaeg" to="iso19139" />
       <mapping dir="Topografi" to="iso19139" />
       <mapping dir="Vandmiljoe" to="iso19139" />
       <mapping dir="Oevrig_ref_data" to="iso19139" />
       <default to="iso19139" />
   </schemaMapping>
</config>
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Structured-import-Exception-Unknown-schema-format-tp5186017p5186017.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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

Example file

http://osgeo-org.1803224.n2.nabble.com/file/n5186120/107.xml 107.xml

Regards
Jesper

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Structured-import-Exception-Unknown-schema-format-tp5186017p5186120.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Jesper

I tried to import the file with 2.4.3 and the import was ok, which version
of GeoNetwork are you using?

A fix related to this error was fixed in that version (
http://trac.osgeo.org/geonetwork/ticket/206), for example if the metadata
contained the csw namespace definition the schema detection failed. I saw
your file and probably is related to the geonet or ine namespaces defined.
If can't upgrade, please try to remove from metadata these namespace
definitions and try import again to verify.

Regards,
Jose Garcia

On Wed, Jun 16, 2010 at 2:10 PM, jesperna <Jenan@anonymised.com> wrote:

Example file

http://osgeo-org.1803224.n2.nabble.com/file/n5186120/107.xml 107.xml

Regards
Jesper

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Structured-import-Exception-Unknown-schema-format-tp5186017p5186120.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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 Jose

GN specs:

Geonetwork v2.4.3
Java 1.6.0_20
Tomcat 6.0.24
Jakarta isapi_redirect 1.2.30
PostGresQL 8.4
Windows2003 R2 SP2 version 5.2 x86 (32 bit)

There are no errors when I imported one file at the time. That works fine.

It's when I try the batch upload (129 files).

I will try to remove the namespace definitions - and try again..

Regards Jesper

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Structured-import-Exception-Unknown-schema-format-tp5186017p5189599.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi again

GN is now actually reading the import-config.xml file..

But errors when scanning files..

GN Error log:

010-06-17 09:02:05,440 INFO [jeeves.request] -

2010-06-17 09:02:05,440 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /geonetwork/srv/en/util.import
2010-06-17 09:02:05,440 DEBUG [jeeves.request] - Method : POST
2010-06-17 09:02:05,440 DEBUG [jeeves.request] - Content type :
application/x-www-form-urlencoded
2010-06-17 09:02:05,440 DEBUG [jeeves.request] - Accept : image/gif,
image/jpeg, image/pjpeg, image/pjpeg, application/xaml+xml,
application/vnd.ms-xpsdocument, application/x-ms-xbap,
application/x-ms-application, */*
2010-06-17 09:02:05,440 DEBUG [jeeves.request] - Session id is
6E64F4C2471459C0823A6D801C71E64C
2010-06-17 09:02:05,440 INFO [jeeves.service] - Dispatching : util.import
2010-06-17 09:02:05,440 DEBUG [jeeves.service] - -> parameters are :
<request>
  <uuidAction>nothing</uuidAction>
  <file_type>single</file_type>
  <dir>C:\Data\XML_imp\Upload</dir>
  <category>_none_</category>
  <group>3</group>
  <styleSheet>_none_</styleSheet>
</request>
2010-06-17 09:02:05,440 DEBUG [jeeves.webapp.util.import] - Scanning site :
C:\Data\XML_imp\Upload\Adresser
2010-06-17 09:02:05,440 DEBUG [jeeves.webapp.util.import] - Scanning site :
C:\Data\XML_imp\Upload\Andre_res
2010-06-17 09:02:05,440 DEBUG [jeeves.webapp.util.import] - Scanning site :
C:\Data\XML_imp\Upload\Foruren_areal
2010-06-17 09:02:05,440 DEBUG [jeeves.webapp.util.import] - Scanning site :
C:\Data\XML_imp\Upload\Fredn_beskytlin
2010-06-17 09:02:05,440 DEBUG [jeeves.webapp.util.import] - Scanning site :
C:\Data\XML_imp\Upload\Friluftsliv
2010-06-17 09:02:05,440 DEBUG [jeeves.webapp.util.import] - Scanning site :
C:\Data\XML_imp\Upload\Grundvand
2010-06-17 09:02:05,440 DEBUG [jeeves.webapp.util.import] - Scanning
category : C:\Data\XML_imp\Upload\Grundvand\115.xml
2010-06-17 09:02:05,440 ERROR [jeeves.service] - Exception when executing
service
2010-06-17 09:02:05,440 ERROR [jeeves.service] - (C) Exc :
java.lang.Exception: Cannot scan files in :
C:\Data\XML_imp\Upload\Grundvand\115.xml
2010-06-17 09:02:05,440 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
  <message>Cannot scan files in :
C:\Data\XML_imp\Upload\Grundvand\115.xml</message>
  <class>Exception</class>
  <stack>
    <at class="org.fao.geonet.services.metadata.ImportFromDir" file="???"
line="-1" method="configImport" />
    <at class="org.fao.geonet.services.metadata.ImportFromDir" file="???"
line="-1" method="exec" />
    <at class="jeeves.server.dispatchers.ServiceInfo" file="???" line="-1"
method="execService" />
    <at class="jeeves.server.dispatchers.ServiceInfo" file="???" line="-1"
method="execServices" />
    <at class="jeeves.server.dispatchers.ServiceManager" file="???"
line="-1" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="???" line="-1"
method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="???"
line="-1" method="execute" />
    <at class="jeeves.server.sources.http.JeevesServlet" file="???"
line="-1" method="doPost" />
    <at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="637" method="service" />
    <at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="717" method="service" />
  </stack>
  <request>
    <language>en</language>
    <service>util.import</service>
  </request>
</error>
2010-06-17 09:02:05,440 INFO [jeeves.service] - -> dispatching to error
for : util.import
2010-06-17 09:02:05,456 INFO [jeeves.service] - -> transforming with
stylesheet : C:\Prgs\Tomcat_60\webapps\geonetwork\/xsl/error.xsl
2010-06-17 09:02:05,487 INFO [jeeves.service] - -> end error
transformation for : util.import
2010-06-17 09:02:05,487 INFO [jeeves.service] - -> error ended for :
util.import

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Structured-import-Exception-Unknown-schema-format-tp5186017p5189731.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.