Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
246 stars 149 forks source link

Metadata Editor #159

Closed g3r4n closed 8 years ago

g3r4n commented 9 years ago

Metadata Editor only work for "Dublin Core" when i want to create metadata manually. Does anyone has the same issue ?

mhogeweg commented 9 years ago

hi, that doesn't sound right. please check ...\geoportal\WEB-INF\classes\gpt\metadata\schemas.xml (that's where you control what schemas are active) and the error logs.

g3r4n commented 9 years ago

ok i'll look that. I've deployed geoportal on JBoss for imformation.

g3r4n commented 9 years ago

It's probabily an issue with JBoss because it's working on Tomcat.

g3r4n commented 9 years ago

I haven't change the basic configuration of schemas.xml and all schemas are active. There is no error logs.

g3r4n commented 9 years ago

I have change to tomcat.

g3r4n commented 9 years ago

Metadata editor for ISO 19115 (Data) (not working) image

Metadata editor for Dublin Core ( working !) : image

I've nothing in the log.

mhogeweg commented 9 years ago

can you see errors in the browser (firebug? or chrome?)

g3r4n commented 9 years ago

i don't see any error in the console of my chrome browser

g3r4n commented 9 years ago

log in debug mode : http://pastebin.com/9mx9qeMP

g3r4n commented 9 years ago

The error comes from parsing XML. During parsing GXE definition from XML file, when he try to build the rootElement the URL of the elment extends is like "$base/MD_Metadata_Dataset.xml".The URL is build from BaseLocation, the Base location URL format is :

So, the build adress on JBoss is like : vfs:/C:/XXXXXXX/MD_Metadata_Dataset.xml and we get the following error in GxeLoader line 293 : Error loading XML file: $base/MD_Metadata_Dataset.xml, java.lang.IllegalArgumentException: URI scheme is not "file"