namespace problem inspire BaseTypes3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

namespace problem inspire BaseTypes3

Heijboer, Tjerk
Hello,

I am using a postgis datastore and deegree maps that to the  INSPIRE mineral resources schema at http://inspire.ec.europa.eu/schemas/mr-core/3.0/MineralResourcesCore.xsd.
The inspire mineral resource schemas only use the BaseTypes 3.3 Identifier type

but deegree comes with the following stacktrace:

[MappedSchemaBuilderGML] Multiple prefices for namespace 'http://inspire.ec.europa.eu/schemas/base/3.3': app1 / base
Info:   [09:18:44]  WARN: [MappedSchemaBuilderGML] Multiple prefices for namespace 'base': urn:x-inspire:specification:gmlas:BaseTypes:3.2 / http://inspire.ec.europa.eu/schemas/base/3.3
Info:   [09:18:44] ERROR: [SQLFeatureStore] Unable to match XPath 'base:Identifier' to application schema. Step '{urn:x-inspire:specification:gmlas:BaseTypes:3.2}Identifier' cannot be resolved.
java.lang.IllegalArgumentException: Unable to match XPath 'base:Identifier' to application schema. Step '{urn:x-inspire:specification:gmlas:BaseTypes:3.2}Identifier' cannot be resolved.
        at org.deegree.feature.persistence.sql.mapper.XPathSchemaWalker.getTargetElement(XPathSchemaWalker.java:111)
        at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:449)
        at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:376)
        at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:459)
        at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:376)
        at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildFtMapping(MappedSchemaBuilderGML.java:327)
        at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.<init>(MappedSchemaBuilderGML.java:174)
        at org.deegree.feature.persistence.sql.config.AbstractMappedSchemaBuilder.build(AbstractMappedSchemaBuilder.java:123)
        at org.deegree.feature.persistence.sql.SQLFeatureStore.init(SQLFeatureStore.java:261)
        at org.deegree.commons.config.AbstractResourceManager.processResourceConfig(AbstractResourceManager.java:264)
        at org.deegree.commons.config.AbstractResourceManager.startup(AbstractResourceManager.java:181)
        at org.deegree.feature.persistence.FeatureStoreManager.startup(FeatureStoreManager.java:112)
        at org.deegree.commons.config.DeegreeWorkspace.initAll(DeegreeWorkspace.java:403)
        at org.deegree.services.controller.OGCFrontController.initWorkspace(OGCFrontController.java:1133)
        at org.deegree.services.controller.OGCFrontController.reload(OGCFrontController.java:1196)
        at org.deegree.console.WorkspaceBean.startWorkspace(WorkspaceBean.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.sun.el.parser.AstValue.invoke(AstValue.java:289)
        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
        at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at javax.faces.component.UICommand.broadcast(UICommand.java:315)
        at com.sun.faces.facelets.component.UIRepeat.broadcast(UIRepeat.java:1045)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.deegree.client.core.filter.InputFileFilter.doFilter(InputFileFilter.java:75)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
        at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
        at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
        at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
        at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
        at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
        at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
        at java.lang.Thread.run(Thread.java:745)

If I analyze the chain of imports: INSPIRE BaseTypes2.xsd version 1.0 imports INSPIRE Addresses.xsd version 3.0, which imports INSPIRE  BaseTypes.xsd version 3.2.

could this be a source for this error? How can this be solved?


cheers

Tjerk

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users
Reply | Threaded
Open this post in threaded view
|

Re: namespace problem inspire BaseTypes3

tfriebe

Dear Tjerk,

Can you please post the version of deegree and how you have created the Database DDL and deegree FeatureStore configuration? And check if one of the following issues apply to your question:

-  ​https://github.com/deegree/deegree3/issues/746
-  ​https://github.com/deegree/deegree3/issues/745     
- ​ https://github.com/deegree/deegree3/issues/742     
-  ​https://github.com/deegree/deegree3/issues/713     
We appreciate if you can post a comment to the related issue.

Kind regards,
Torsten

Am 06.07.16 um 14:49 schrieb Heijboer, Tjerk:
Hello,

I am using a postgis datastore and deegree maps that to the  INSPIRE mineral resources schema at http://inspire.ec.europa.eu/schemas/mr-core/3.0/MineralResourcesCore.xsd. 
The inspire mineral resource schemas only use the BaseTypes 3.3 Identifier type

but deegree comes with the following stacktrace:

[MappedSchemaBuilderGML] Multiple prefices for namespace 'http://inspire.ec.europa.eu/schemas/base/3.3': app1 / base
Info:   [09:18:44]  WARN: [MappedSchemaBuilderGML] Multiple prefices for namespace 'base': urn:x-inspire:specification:gmlas:BaseTypes:3.2 / http://inspire.ec.europa.eu/schemas/base/3.3
Info:   [09:18:44] ERROR: [SQLFeatureStore] Unable to match XPath 'base:Identifier' to application schema. Step '{urn:x-inspire:specification:gmlas:BaseTypes:3.2}Identifier' cannot be resolved.
java.lang.IllegalArgumentException: Unable to match XPath 'base:Identifier' to application schema. Step '{urn:x-inspire:specification:gmlas:BaseTypes:3.2}Identifier' cannot be resolved.
	at org.deegree.feature.persistence.sql.mapper.XPathSchemaWalker.getTargetElement(XPathSchemaWalker.java:111)
	at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:449)
	at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:376)
	at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:459)
	at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildMapping(MappedSchemaBuilderGML.java:376)
	at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.buildFtMapping(MappedSchemaBuilderGML.java:327)
	at org.deegree.feature.persistence.sql.config.MappedSchemaBuilderGML.<init>(MappedSchemaBuilderGML.java:174)
	at org.deegree.feature.persistence.sql.config.AbstractMappedSchemaBuilder.build(AbstractMappedSchemaBuilder.java:123)
	at org.deegree.feature.persistence.sql.SQLFeatureStore.init(SQLFeatureStore.java:261)
	at org.deegree.commons.config.AbstractResourceManager.processResourceConfig(AbstractResourceManager.java:264)
	at org.deegree.commons.config.AbstractResourceManager.startup(AbstractResourceManager.java:181)
	at org.deegree.feature.persistence.FeatureStoreManager.startup(FeatureStoreManager.java:112)
	at org.deegree.commons.config.DeegreeWorkspace.initAll(DeegreeWorkspace.java:403)
	at org.deegree.services.controller.OGCFrontController.initWorkspace(OGCFrontController.java:1133)
	at org.deegree.services.controller.OGCFrontController.reload(OGCFrontController.java:1196)
	at org.deegree.console.WorkspaceBean.startWorkspace(WorkspaceBean.java:212)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.el.parser.AstValue.invoke(AstValue.java:289)
	at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
	at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	at javax.faces.component.UICommand.broadcast(UICommand.java:315)
	at com.sun.faces.facelets.component.UIRepeat.broadcast(UIRepeat.java:1045)
	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at org.deegree.client.core.filter.InputFileFilter.doFilter(InputFileFilter.java:75)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
	at java.lang.Thread.run(Thread.java:745)

If I analyze the chain of imports: INSPIRE BaseTypes2.xsd version 1.0 imports INSPIRE Addresses.xsd version 3.0, which imports INSPIRE  BaseTypes.xsd version 3.2.

could this be a source for this error? How can this be solved?


cheers

Tjerk

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users


-- 
l a t / l o n  GmbH
Aennchenstrasse 19                 53177 Bonn, Germany
phone ++49 +228 18496-0            fax ++49 +228 18496-29
http://www.lat-lon.de              http://www.deegree.org

lat/lon gesellschaft für raumbezogene informationssysteme mbH
Registergericht: Amtsgericht Bonn, HRB 13042
Geschäftsführer: Jens Fitzke und Torsten Friebe

------------------------------------------------------------------------------

_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users