···
2016-09-07 16:26 GMT+02:00 Heather Lucier <hlucier@anonymised.com>:
Do you think upgrading from 3.1.0-Snapshot to 3.2.0 would help?
No 3.1.0-snapshot will be tagged 3.2.0 when the release is created - so they are the same.
Francois
On Thu, Sep 1, 2016 at 11:05 AM, Heather Lucier <hlucier@anonymised.com> wrote:
Yes. I’m using 3.1.0-SNAPSHOT. Should I be using something different?
–
Heather M. Lucier
M.S. Earth System Science & Engineering
University of Michigan, 2013
On Thu, Sep 1, 2016 at 10:12 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
Hi,
–
Heather M. Lucier
M.S. Earth System Science & Engineering
University of Michigan, 2013
2016-09-01 15:42 GMT+02:00 Heather Lucier <hlucier@anonymised.com>:
Hi List,
I’ve been having problems loading the ISO19115-3 standards to GeoNetwork, but I killed the java process and then restarted GeoNetwork today and I got the error below. I was able to find bootstrap.less, but not in the folder it was looking in. I found it in http://crow:8080/geonetwork/catalog/lib/style/bootstap/less/bootstrap.less. Also, below that it says it failed to validate schema-ident.xml and that, “One of ‘{“http://geonetwork-opensource.org/schemas/schema-ident”:depends, “http://geonetwork-opensource.org/schemas/schema-ident”:schemaLocation}’ is expected.” So, I looked at schema-ident.xml and schemaLocation is in the file. So, I’m not sure what is going on. Has anyone ever encountered this before?
Raised exception while starting the application. Fix the error and restart.
Exception |
<br>OperationAbortedEx : Failed whilst validating schema-ident file /opt/geonetwork/core-geonetwork/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19115-3/schema-ident.xml. Exception message if any is XSD Validation error(s):<br><xsderrors><br> <error><br> <typeOfError>ERROR</typeOfError><br> <errorNumber>1</errorNumber><br> <message>cvc-complex-type.2.4.a: Invalid content was found starting with element 'title'. One of '{"[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":depends, "[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":schemaLocation}' is expected. (Element: title with parent element: schema)</message><br> <xpath>title[1]</xpath><br>
|
Are you sure that you’re using develop branch ?
Schema documentation (title and desc) was added https://github.com/geonetwork/core-geonetwork/pull/1478 (and is not available in 3.0.x)
HTH.
Francois
</error>
</xsderrors>
|
Message
|
Failed whilst validating schema-ident file /opt/geonetwork/core-geonetwork/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19115-3/schema-ident.xml. Exception message if any is XSD Validation error(s):
<xsderrors>
<error>
<typeOfError>ERROR</typeOfError>
<errorNumber>1</errorNumber>
<message>cvc-complex-type.2.4.a: Invalid content was found starting with element 'title'. One of '{"[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":depends, "[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":schemaLocation}' is expected. (Element: title with parent element: schema)</message>
<xpath>title[1]</xpath>
</error>
</xsderrors>
|
Handler
|
org.fao.geonet.Geonetwork
|
Stack
|
OperationAbortedEx : Failed whilst validating schema-ident file /opt/geonetwork/core-geonetwork/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19115-3/schema-ident.xml. Exception message if any is XSD Validation error(s):
<xsderrors>
<error>
<typeOfError>ERROR</typeOfError>
<errorNumber>1</errorNumber>
<message>cvc-complex-type.2.4.a: Invalid content was found starting with element 'title'. One of '{"[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":depends, "[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":schemaLocation}' is expected. (Element: title with parent element: schema)</message>
<xpath>title[1]</xpath>
</error>
</xsderrors>
at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1333)
at org.fao.geonet.kernel.SchemaManager.configure(SchemaManager.java:201)
at org.fao.geonet.Geonetwork.start(Geonetwork.java:274)
at jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.java:454)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:175)
at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:82)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:519)
at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:331)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:742)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:710)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:293)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.server.handl[er.ContextHandlerCollection.do](http://er.contexthandlercollection.do/)Start(ContextHandlerCollection.java:172)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:280)
at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)
at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at [org.apache.maven.lifecycle.int](http://org.apache.maven.lifecycle.int/)ernal.MojoExecutor.execute(MojoExecutor.java:208)
at [org.apache.maven.lifecycle.int](http://org.apache.maven.lifecycle.int/)ernal.MojoExecutor.execute(MojoExecutor.java:153)
at [org.apache.maven.lifecycle.int](http://org.apache.maven.lifecycle.int/)ernal.MojoExecutor.execute(MojoExecutor.java:145)
at [org.apache.maven.lifecycle.int](http://org.apache.maven.lifecycle.int/)ernal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at [org.apache.maven.lifecycle.int](http://org.apache.maven.lifecycle.int/)ernal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at [org.apache.maven.lifecycle.int](http://org.apache.maven.lifecycle.int/)ernal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at [org.apache.maven.lifecycle.int](http://org.apache.maven.lifecycle.int/)ernal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: XSDValidationErrorEx : XSD Validation error(s):
<xsderrors>
<error>
<typeOfError>ERROR</typeOfError>
<errorNumber>1</errorNumber>
<message>cvc-complex-type.2.4.a: Invalid content was found starting with element 'title'. One of '{"[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":depends, "[http://geonetwork-opensource.org/schemas/schema-ident](http://geonetwork-opensource.org/schemas/schema-ident)":schemaLocation}' is expected. (Element: title with parent element: schema)</message>
<xpath>title[1]</xpath>
</error>
</xsderrors>
at org.fao.geonet.utils.Xml.validate(Xml.java:1168)
at org.fao.geonet.utils.Xml.validate(Xml.java:1148)
at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1319)
... 50 more
|
Thanks,
Heather
On Thu, Aug 25, 2016 at 8:52 AM, Heather Lucier <hlucier@anonymised.com> wrote:
Hello,
That’s where I thought, but I didn’t see it there, so I was hoping I was supposed to check another area. I don’t understand why it isn’t there. I added iso 19115-3 as a submodule and I added all the specified code. Do you have any idea why it wouldn’t be there?
Thanks,
Heather
–
Heather M. Lucier
M.S. Earth System Science & Engineering
University of Michigan, 2013
On Thu, Aug 25, 2016 at 5:58 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
Hi,
–
Heather M. Lucier
M.S. Earth System Science & Engineering
University of Michigan, 2013
2016-08-23 22:31 GMT+02:00 Heather Lucier <hlucier@anonymised.com>:
Hello Francis,
I was able to get everything done to install the plugin up to where it says “Adding Editor Configuration” on this page. I’m not really sure where I’m supposed to check if the plugin is loaded. Should I be looking somewhere in the code or on the server web page?
Simply check in the metadata standard page in the admin ?
http://localhost:8080/geonetwork/srv/eng/admin.console#/metadata
HTH.
Francois
Thanks,
Heather
On Tue, Aug 16, 2016 at 1:49 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
Hi Heather,
–
Heather M. Lucier
M.S. Earth System Science & Engineering
University of Michigan, 2013
2016-08-08 17:31 GMT+02:00 Heather Lucier <hlucier@anonymised.com>:
Hi Francois,
I tried option 2 before and it didn’t work. Do you know how I can incorporate https://github.com/metadata101/iso19139.sdn-csr/blob/master/src/main/plugin/iso19139.sdn-csr/schema/SDN2_CSR_ISO19139_3.0.0.xsd in geonetwork?
Option 2 is about ISO19115-3, so it is not related to CSR schemas. Instruction about how to add it to GeoNetwork are here https://github.com/metadata101/iso19115-3/blob/develop/README.md#installing-the-plugin and require to build from the source code.
HTH
Francois
Thanks,
Heather
On Fri, Jul 29, 2016 at 2:44 AM, Francois Prunayre <fx.prunayre@anonymised.com.31…> wrote:
Hi Heather,
–
Heather M. Lucier
M.S. Earth System Science & Engineering
University of Michigan, 2013
2016-07-28 21:44 GMT+02:00 Heather Lucier <hlucier@anonymised.com>:
Hello List,
I recently followed Jose’s advice to replace the folder schema and schema.xsd in:
/opt/geonetwork/core-geonetwork/schemas/iso19139/src/main/plugin/iso19139
This got me some of the ISO 19115 -2 elements like the expanded Lineage, but I didn’t get any of the acquisition information. There’s a file called in acquisitioninformation.xsd under the gmi folder in the schema folder, but I can’t see any of it when I try to create a new metadata entry on GeoNetwork. Does anyone have any thoughts on how I can fix it? this is the zip folder with all of the iso packages
About ISO19115-2 support, I’m not sure we’ve a public complete & working plugin based on ISO19139.
I would suggest 2 options:
-
iso19139.sdn-csr includes gmi.xsd and provide basic support of gmi elements https://github.com/metadata101/iso19139.sdn-csr/blob/master/src/main/plugin/iso19139.sdn-csr/schema/SDN2_CSR_ISO19139_3.0.0.xsd. BTW it’s a quite specific plugin related to Cruise Summary Reports and AFAIK, gmi sections was not that much tested. The main goal of that plugin was to be able to load and search on this type of records - editing was not the main priority so it may provide only basic support.
-
ISO19115-3 includes ISO19115-2 (and ISO19110 for Feature catalog and ISO19157 for Quality). See https://github.com/metadata101/iso19115-3
I would go for option 2 using GeoNetwork develop branch (coming 3.2.0). I’m currently working on ISO19115-3 and more specifically on the quality measures section. Acquisition information section is available in that plugin (even if I’ve not tested it that much for now but I could help fixing issues if needed). See instruction to build GeoNetwork with ISO19115-3 https://github.com/metadata101/iso19115-3#installing-the-plugin
HTH.
Francois
Thanks,
Heather
–
Heather M. Lucier
M.S. Earth System Science & Engineering
University of Michigan, 2013
GeoNetwork-devel mailing list
GeoNetwork-devel@anonymised.comorge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork