[Geoserver-users] Geoserver 2.3.2 and Neo4j [SOLVED]

Hello again!!

I just figured it out!!! Googling about the last error *"Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/*XMLInputSource;)" I’ve found this post and looked again in geoserver/WEB-INF/lib… there were 2 xerces jar files. One in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).

I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now I can see Neo4j as a Vector Data Source.

Well, I should have searched this before, but now, there’s a hint in both lists.

I didn’t make a test yet… hope it works fine!

···

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hi everyone!

First thing: I’m sending this to both geoserver and neo4j mailling lists. I hope someone can help!
Also, that’s my first time in neo4j list!

I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat lastest version)

Deployed the war file to webapps and geoserver run ok! Also fnished configurations (remove users.properties.old and so on).

I’m trying to configure neo4j as a geoserver store following these steps: https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin

I did the following until now:

  1. git clone https://github.com/neo4j/spatial.git

This created a spatial dir.

  1. cd spatial

  2. mvn clean install (using a normal user. Build success =] )

  3. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )

Now, When I start geoserver I see the errors right bellow this message.

I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is a very old version, once its in 2.3.2 now. A lot of bug fixes and improvements along the way.

I’m really interested to make neo4j-spatial to work with geoserver 2.3.2. But I’m stuck at these errors. Can someone help?! Maybe some clue!

Neo4j-spatial worked with neo4j:

$ curl http://localhost:7474/db/data/

{
“extensions” : {
“CypherPlugin” : {
“execute_query” : “http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query
},
“SpatialPlugin” : {
“addEditableLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer”,
“addCQLDynamicLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer”,
“findGeometriesWithinDistance” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance”,
“updateGeometryFromWKT” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT”,
“addGeometryWKTToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer”,
“getLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer”,
“addSimplePointLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer”,
“findGeometriesInBBox” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox”,
“addNodeToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
},
“GremlinPlugin” : {
“execute_script” : “http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
}
},
“node” : “http://localhost:7474/db/data/node”,
“reference_node” : “http://localhost:7474/db/data/node/0”,
“node_index” : “http://localhost:7474/db/data/index/node”,
“relationship_index” : “http://localhost:7474/db/data/index/relationship”,
“extensions_info” : “http://localhost:7474/db/data/ext”,
“relationship_types” : “http://localhost:7474/db/data/relationship/types”,
“batch” : “http://localhost:7474/db/data/batch”,
“cypher” : “http://localhost:7474/db/data/cypher”,
“neo4j_version” : “1.9”
}

The errors in geoserver.log (and catalina.out):

18 Jun 11:55:35 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘gwcTLDispatcher’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
… 32 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
… 41 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
at org.geowebcache.config.XMLConfiguration.validate(XMLConfiguration.java:811)
at org.geowebcache.config.XMLConfiguration.checkAndTransform(XMLConfiguration.java:785)
at org.geowebcache.config.XMLConfiguration.loadDocument(XMLConfiguration.java:689)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:392)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:380)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:371)
at org.geowebcache.config.XMLConfiguration.initialize(XMLConfiguration.java:870)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:189)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:164)
at org.geowebcache.layer.TileLayerDispatcher.reInit(TileLayerDispatcher.java:118)
at org.geowebcache.layer.TileLayerDispatcher.(TileLayerDispatcher.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
… 43 more

Regards!

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

Rodrigo,
you having a working GeoServer installation is terrific! Could you somehow document your setup, make an example project or enhance the existing docs so others can do this? Maybe a blog or screencast would be good?

/peter

···

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Kids in Malmö this summer? - http://www.kidscraft.se
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

On Tue, Jun 18, 2013 at 7:14 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hello again!!

I just figured it out!!! Googling about the last error *"Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/*XMLInputSource;)" I’ve found this post and looked again in geoserver/WEB-INF/lib… there were 2 xerces jar files. One in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).

I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now I can see Neo4j as a Vector Data Source.

Well, I should have searched this before, but now, there’s a hint in both lists.

I didn’t make a test yet… hope it works fine!


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hi everyone!

First thing: I’m sending this to both geoserver and neo4j mailling lists. I hope someone can help!
Also, that’s my first time in neo4j list!

I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat lastest version)

Deployed the war file to webapps and geoserver run ok! Also fnished configurations (remove users.properties.old and so on).

I’m trying to configure neo4j as a geoserver store following these steps: https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin

I did the following until now:

  1. git clone https://github.com/neo4j/spatial.git

This created a spatial dir.

  1. cd spatial

  2. mvn clean install (using a normal user. Build success =] )

  3. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )

Now, When I start geoserver I see the errors right bellow this message.

I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is a very old version, once its in 2.3.2 now. A lot of bug fixes and improvements along the way.

I’m really interested to make neo4j-spatial to work with geoserver 2.3.2. But I’m stuck at these errors. Can someone help?! Maybe some clue!

Neo4j-spatial worked with neo4j:

$ curl http://localhost:7474/db/data/

{
“extensions” : {
“CypherPlugin” : {
“execute_query” : “http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query
},
“SpatialPlugin” : {
“addEditableLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer”,
“addCQLDynamicLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer”,
“findGeometriesWithinDistance” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance”,
“updateGeometryFromWKT” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT”,
“addGeometryWKTToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer”,
“getLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer”,
“addSimplePointLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer”,
“findGeometriesInBBox” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox”,
“addNodeToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
},
“GremlinPlugin” : {
“execute_script” : “http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
}
},
“node” : “http://localhost:7474/db/data/node”,
“reference_node” : “http://localhost:7474/db/data/node/0”,
“node_index” : “http://localhost:7474/db/data/index/node”,
“relationship_index” : “http://localhost:7474/db/data/index/relationship”,
“extensions_info” : “http://localhost:7474/db/data/ext”,
“relationship_types” : “http://localhost:7474/db/data/relationship/types”,
“batch” : “http://localhost:7474/db/data/batch”,
“cypher” : “http://localhost:7474/db/data/cypher”,
“neo4j_version” : “1.9”
}

The errors in geoserver.log (and catalina.out):

18 Jun 11:55:35 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘gwcTLDispatcher’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
… 32 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
… 41 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
at org.geowebcache.config.XMLConfiguration.validate(XMLConfiguration.java:811)
at org.geowebcache.config.XMLConfiguration.checkAndTransform(XMLConfiguration.java:785)
at org.geowebcache.config.XMLConfiguration.loadDocument(XMLConfiguration.java:689)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:392)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:380)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:371)
at org.geowebcache.config.XMLConfiguration.initialize(XMLConfiguration.java:870)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:189)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:164)
at org.geowebcache.layer.TileLayerDispatcher.reInit(TileLayerDispatcher.java:118)
at org.geowebcache.layer.TileLayerDispatcher.(TileLayerDispatcher.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
… 43 more

Regards!

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

Hi Peter,

Sure, my intent is to do an example project. I can document it (but it will take some time). This afternoon I loaded a shapefile into neo4j. Although the loader had printed some errors, the nodes were loaded. Tomorrow morning I need to check if this worked and if the layer will load into geoserver.

Some notes:

I did nothing different than what is in neo4j-spatial readme at github, except remove the older xerces jar file (the one created by neo4j-spatial).

One thing I noticed was that I’ve built the 2.0.0 SNAPSHOT version of neo4j-spatial and I was using neo4j 1.9.
I’ve fixed it in the neo4j side (downloading the pre-compiled zip from github), but not yet at geoserver side (tomorrow morning I will!).

Finally, I did the shp import as in the example. Like that, I couldn’t use neo4j from java while the server was running. Is this the default behavior? Also, is there some way to load shapefiles into the running server? (It would be nice to load them and still have access through rest api).

As soon as I finish these tests, I’ll report the conclusion and documentation.

Cheers,

···

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 4:56 PM, Peter Neubauer <peter.neubauer@anonymised.com> wrote:

Rodrigo,
you having a working GeoServer installation is terrific! Could you somehow document your setup, make an example project or enhance the existing docs so others can do this? Maybe a blog or screencast would be good?

/peter


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Kids in Malmö this summer? - http://www.kidscraft.se
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

On Tue, Jun 18, 2013 at 7:14 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hello again!!

I just figured it out!!! Googling about the last error *"Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/*XMLInputSource;)" I’ve found this post and looked again in geoserver/WEB-INF/lib… there were 2 xerces jar files. One in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).

I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now I can see Neo4j as a Vector Data Source.

Well, I should have searched this before, but now, there’s a hint in both lists.

I didn’t make a test yet… hope it works fine!


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hi everyone!

First thing: I’m sending this to both geoserver and neo4j mailling lists. I hope someone can help!
Also, that’s my first time in neo4j list!

I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat lastest version)

Deployed the war file to webapps and geoserver run ok! Also fnished configurations (remove users.properties.old and so on).

I’m trying to configure neo4j as a geoserver store following these steps: https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin

I did the following until now:

  1. git clone https://github.com/neo4j/spatial.git

This created a spatial dir.

  1. cd spatial

  2. mvn clean install (using a normal user. Build success =] )

  3. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )

Now, When I start geoserver I see the errors right bellow this message.

I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is a very old version, once its in 2.3.2 now. A lot of bug fixes and improvements along the way.

I’m really interested to make neo4j-spatial to work with geoserver 2.3.2. But I’m stuck at these errors. Can someone help?! Maybe some clue!

Neo4j-spatial worked with neo4j:

$ curl http://localhost:7474/db/data/

{
“extensions” : {
“CypherPlugin” : {
“execute_query” : “http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query
},
“SpatialPlugin” : {
“addEditableLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer”,
“addCQLDynamicLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer”,
“findGeometriesWithinDistance” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance”,
“updateGeometryFromWKT” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT”,
“addGeometryWKTToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer”,
“getLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer”,
“addSimplePointLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer”,
“findGeometriesInBBox” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox”,
“addNodeToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
},
“GremlinPlugin” : {
“execute_script” : “http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
}
},
“node” : “http://localhost:7474/db/data/node”,
“reference_node” : “http://localhost:7474/db/data/node/0”,
“node_index” : “http://localhost:7474/db/data/index/node”,
“relationship_index” : “http://localhost:7474/db/data/index/relationship”,
“extensions_info” : “http://localhost:7474/db/data/ext”,
“relationship_types” : “http://localhost:7474/db/data/relationship/types”,
“batch” : “http://localhost:7474/db/data/batch”,
“cypher” : “http://localhost:7474/db/data/cypher”,
“neo4j_version” : “1.9”
}

The errors in geoserver.log (and catalina.out):

18 Jun 11:55:35 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘gwcTLDispatcher’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
… 32 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
… 41 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
at org.geowebcache.config.XMLConfiguration.validate(XMLConfiguration.java:811)
at org.geowebcache.config.XMLConfiguration.checkAndTransform(XMLConfiguration.java:785)
at org.geowebcache.config.XMLConfiguration.loadDocument(XMLConfiguration.java:689)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:392)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:380)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:371)
at org.geowebcache.config.XMLConfiguration.initialize(XMLConfiguration.java:870)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:189)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:164)
at org.geowebcache.layer.TileLayerDispatcher.reInit(TileLayerDispatcher.java:118)
at org.geowebcache.layer.TileLayerDispatcher.(TileLayerDispatcher.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
… 43 more

Regards!

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

+1

Great news and very timely!

Duane

···

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Kids in Malmö this summer? - http://www.kidscraft.se
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

On Tue, Jun 18, 2013 at 7:14 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hello again!!

I just figured it out!!! Googling about the last error *"Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/*XMLInputSource;)" I’ve found this post and looked again in geoserver/WEB-INF/lib… there were 2 xerces jar files. One in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).

I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now I can see Neo4j as a Vector Data Source.

Well, I should have searched this before, but now, there’s a hint in both lists.

I didn’t make a test yet… hope it works fine!


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hi everyone!

First thing: I’m sending this to both geoserver and neo4j mailling lists. I hope someone can help!
Also, that’s my first time in neo4j list!

I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat lastest version)

Deployed the war file to webapps and geoserver run ok! Also fnished configurations (remove users.properties.old and so on).

I’m trying to configure neo4j as a geoserver store following these steps: https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin

I did the following until now:

  1. git clone https://github.com/neo4j/spatial.git

This created a spatial dir.

  1. cd spatial

  2. mvn clean install (using a normal user. Build success =] )

  3. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )

Now, When I start geoserver I see the errors right bellow this message.

I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is a very old version, once its in 2.3.2 now. A lot of bug fixes and improvements along the way.

I’m really interested to make neo4j-spatial to work with geoserver 2.3.2. But I’m stuck at these errors. Can someone help?! Maybe some clue!

Neo4j-spatial worked with neo4j:

$ curl http://localhost:7474/db/data/

{
“extensions” : {
“CypherPlugin” : {
“execute_query” : “http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query
},
“SpatialPlugin” : {
“addEditableLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer”,
“addCQLDynamicLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer”,
“findGeometriesWithinDistance” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance”,
“updateGeometryFromWKT” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT”,
“addGeometryWKTToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer”,
“getLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer”,
“addSimplePointLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer”,
“findGeometriesInBBox” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox”,
“addNodeToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
},
“GremlinPlugin” : {
“execute_script” : “http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
}
},
“node” : “http://localhost:7474/db/data/node”,
“reference_node” : “http://localhost:7474/db/data/node/0”,
“node_index” : “http://localhost:7474/db/data/index/node”,
“relationship_index” : “http://localhost:7474/db/data/index/relationship”,
“extensions_info” : “http://localhost:7474/db/data/ext”,
“relationship_types” : “http://localhost:7474/db/data/relationship/types”,
“batch” : “http://localhost:7474/db/data/batch”,
“cypher” : “http://localhost:7474/db/data/cypher”,
“neo4j_version” : “1.9”
}

The errors in geoserver.log (and catalina.out):

18 Jun 11:55:35 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘gwcTLDispatcher’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
… 32 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
… 41 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
at org.geowebcache.config.XMLConfiguration.validate(XMLConfiguration.java:811)
at org.geowebcache.config.XMLConfiguration.checkAndTransform(XMLConfiguration.java:785)
at org.geowebcache.config.XMLConfiguration.loadDocument(XMLConfiguration.java:689)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:392)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:380)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:371)
at org.geowebcache.config.XMLConfiguration.initialize(XMLConfiguration.java:870)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:189)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:164)
at org.geowebcache.layer.TileLayerDispatcher.reInit(TileLayerDispatcher.java:118)
at org.geowebcache.layer.TileLayerDispatcher.(TileLayerDispatcher.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
… 43 more

Regards!

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

It works!!

The attached images show the map! There’s a map and the result of GetFeatureInfo!

Although I had some errors while importing the shapefile, the layer was loaded into Neo4j, and it was loaded also in Geoserver.

To make it works, I had to compare some lib versions between geoserver and neo4j-spatial. Most libs used by Geoserver are newer than neo4j-spatial, including geotools.

Some notes:

  • The shapefile was generated and exported here by the team with I work. I need to make some tests with other shapefiles (like the ones that ships with geoserver) to check the error during import.

  • From the neo4j-spatial zip file for version 1.9, I’ve copied only some jars to geoserver lib (basically, the different ones). I have a list showing the different libraries and which one I copied. It will be included in my docs.

  • One problem I noticed was that while showing the map (geoserver up), I wasn’t able to start neo4j server. It can’t create the lock file. I need to run some tests like starting neo4j server first, and also access neo4j from Java (including WPS processes).

As soon as I run new tests and have a clue about neo4j-server start, I’ll send some news.

Regards!

Geoserver-Neo4j-Map.png

neo4j_limiteBrasil_Layer.png

neo4j_store.png

···

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 9:31 PM, Duane Nickull <duane@anonymised.com> wrote:

+1

Great news and very timely!

Duane


Technoracle Advanced Systems Inc.
Consulting and Contracting; Proven Results!
i. Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
b. http://technoracle.blogspot.com
t. @anonymised.com

NOTICE: This e-mail and any attachments may contain confidential information. If you are the intended recipient, please consider this a privileged communication, not to be forwarded without explicit approval from the sender. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. The originator reserves the right to monitor all e-mail communications through its networks for quality control purposes.

From: Peter Neubauer <peter.neubauer@anonymised.com723…>
Reply-To: <neo4j@anonymised.com>
Date: Tuesday, 18 June, 2013 12:56 PM
To: Neo4j User <neo4j@anonymised.com>
Cc: Geoserver <geoserver-users@lists.sourceforge.net>
Subject: Re: [Neo4j] Re: Geoserver 2.3.2 and Neo4j [SOLVED]

Rodrigo,
you having a working GeoServer installation is terrific! Could you somehow document your setup, make an example project or enhance the existing docs so others can do this? Maybe a blog or screencast would be good?

/peter


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Kids in Malmö this summer? - http://www.kidscraft.se
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

On Tue, Jun 18, 2013 at 7:14 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hello again!!

I just figured it out!!! Googling about the last error *"Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/*XMLInputSource;)" I’ve found this post and looked again in geoserver/WEB-INF/lib… there were 2 xerces jar files. One in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).

I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now I can see Neo4j as a Vector Data Source.

Well, I should have searched this before, but now, there’s a hint in both lists.

I didn’t make a test yet… hope it works fine!


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hi everyone!

First thing: I’m sending this to both geoserver and neo4j mailling lists. I hope someone can help!
Also, that’s my first time in neo4j list!

I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat lastest version)

Deployed the war file to webapps and geoserver run ok! Also fnished configurations (remove users.properties.old and so on).

I’m trying to configure neo4j as a geoserver store following these steps: https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin

I did the following until now:

  1. git clone https://github.com/neo4j/spatial.git

This created a spatial dir.

  1. cd spatial

  2. mvn clean install (using a normal user. Build success =] )

  3. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )

Now, When I start geoserver I see the errors right bellow this message.

I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is a very old version, once its in 2.3.2 now. A lot of bug fixes and improvements along the way.

I’m really interested to make neo4j-spatial to work with geoserver 2.3.2. But I’m stuck at these errors. Can someone help?! Maybe some clue!

Neo4j-spatial worked with neo4j:

$ curl http://localhost:7474/db/data/

{
“extensions” : {
“CypherPlugin” : {
“execute_query” : “http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query
},
“SpatialPlugin” : {
“addEditableLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer”,
“addCQLDynamicLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer”,
“findGeometriesWithinDistance” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance”,
“updateGeometryFromWKT” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT”,
“addGeometryWKTToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer”,
“getLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer”,
“addSimplePointLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer”,
“findGeometriesInBBox” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox”,
“addNodeToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
},
“GremlinPlugin” : {
“execute_script” : “http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
}
},
“node” : “http://localhost:7474/db/data/node”,
“reference_node” : “http://localhost:7474/db/data/node/0”,
“node_index” : “http://localhost:7474/db/data/index/node”,
“relationship_index” : “http://localhost:7474/db/data/index/relationship”,
“extensions_info” : “http://localhost:7474/db/data/ext”,
“relationship_types” : “http://localhost:7474/db/data/relationship/types”,
“batch” : “http://localhost:7474/db/data/batch”,
“cypher” : “http://localhost:7474/db/data/cypher”,
“neo4j_version” : “1.9”
}

The errors in geoserver.log (and catalina.out):

18 Jun 11:55:35 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘gwcTLDispatcher’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
… 32 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
… 41 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
at org.geowebcache.config.XMLConfiguration.validate(XMLConfiguration.java:811)
at org.geowebcache.config.XMLConfiguration.checkAndTransform(XMLConfiguration.java:785)
at org.geowebcache.config.XMLConfiguration.loadDocument(XMLConfiguration.java:689)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:392)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:380)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:371)
at org.geowebcache.config.XMLConfiguration.initialize(XMLConfiguration.java:870)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:189)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:164)
at org.geowebcache.layer.TileLayerDispatcher.reInit(TileLayerDispatcher.java:118)
at org.geowebcache.layer.TileLayerDispatcher.(TileLayerDispatcher.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
… 43 more

Regards!

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

Pretty cool Rodrigo!

Do you know what the affected versions where? We might be able to update them in neo4j-spatial (I think there were some problems but I don’t remember exactly, maybe you can try it out). Also, do you know how to start GeoServer as part of a unit test in order to make an automatic integration test running with neo4j? That would be a huge contribution to the project and one that I have been trying before without success.

/peter

···

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Kids in Malmö this summer? - http://www.kidscraft.se
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

On Wed, Jun 19, 2013 at 4:11 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

It works!!

The attached images show the map! There’s a map and the result of GetFeatureInfo!

Although I had some errors while importing the shapefile, the layer was loaded into Neo4j, and it was loaded also in Geoserver.

To make it works, I had to compare some lib versions between geoserver and neo4j-spatial. Most libs used by Geoserver are newer than neo4j-spatial, including geotools.

Some notes:

  • The shapefile was generated and exported here by the team with I work. I need to make some tests with other shapefiles (like the ones that ships with geoserver) to check the error during import.

  • From the neo4j-spatial zip file for version 1.9, I’ve copied only some jars to geoserver lib (basically, the different ones). I have a list showing the different libraries and which one I copied. It will be included in my docs.

  • One problem I noticed was that while showing the map (geoserver up), I wasn’t able to start neo4j server. It can’t create the lock file. I need to run some tests like starting neo4j server first, and also access neo4j from Java (including WPS processes).

As soon as I run new tests and have a clue about neo4j-server start, I’ll send some news.

Regards!


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 9:31 PM, Duane Nickull <duane@anonymised.com> wrote:

+1

Great news and very timely!

Duane


Technoracle Advanced Systems Inc.
Consulting and Contracting; Proven Results!
i. Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
b. http://technoracle.blogspot.com
t. @anonymised.com

NOTICE: This e-mail and any attachments may contain confidential information. If you are the intended recipient, please consider this a privileged communication, not to be forwarded without explicit approval from the sender. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. The originator reserves the right to monitor all e-mail communications through its networks for quality control purposes.

From: Peter Neubauer <peter.neubauer@anonymised.com723…>
Reply-To: <neo4j@anonymised.com>
Date: Tuesday, 18 June, 2013 12:56 PM
To: Neo4j User <neo4j@anonymised.com>
Cc: Geoserver <geoserver-users@lists.sourceforge.net>
Subject: Re: [Neo4j] Re: Geoserver 2.3.2 and Neo4j [SOLVED]

Rodrigo,
you having a working GeoServer installation is terrific! Could you somehow document your setup, make an example project or enhance the existing docs so others can do this? Maybe a blog or screencast would be good?

/peter


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Kids in Malmö this summer? - http://www.kidscraft.se
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

On Tue, Jun 18, 2013 at 7:14 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hello again!!

I just figured it out!!! Googling about the last error *"Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/*XMLInputSource;)" I’ve found this post and looked again in geoserver/WEB-INF/lib… there were 2 xerces jar files. One in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).

I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now I can see Neo4j as a Vector Data Source.

Well, I should have searched this before, but now, there’s a hint in both lists.

I didn’t make a test yet… hope it works fine!


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

Hi everyone!

First thing: I’m sending this to both geoserver and neo4j mailling lists. I hope someone can help!
Also, that’s my first time in neo4j list!

I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat lastest version)

Deployed the war file to webapps and geoserver run ok! Also fnished configurations (remove users.properties.old and so on).

I’m trying to configure neo4j as a geoserver store following these steps: https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin

I did the following until now:

  1. git clone https://github.com/neo4j/spatial.git

This created a spatial dir.

  1. cd spatial

  2. mvn clean install (using a normal user. Build success =] )

  3. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )

Now, When I start geoserver I see the errors right bellow this message.

I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is a very old version, once its in 2.3.2 now. A lot of bug fixes and improvements along the way.

I’m really interested to make neo4j-spatial to work with geoserver 2.3.2. But I’m stuck at these errors. Can someone help?! Maybe some clue!

Neo4j-spatial worked with neo4j:

$ curl http://localhost:7474/db/data/

{
“extensions” : {
“CypherPlugin” : {
“execute_query” : “http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query
},
“SpatialPlugin” : {
“addEditableLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer”,
“addCQLDynamicLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer”,
“findGeometriesWithinDistance” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance”,
“updateGeometryFromWKT” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT”,
“addGeometryWKTToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer”,
“getLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer”,
“addSimplePointLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer”,
“findGeometriesInBBox” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox”,
“addNodeToLayer” : “http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
},
“GremlinPlugin” : {
“execute_script” : “http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
}
},
“node” : “http://localhost:7474/db/data/node”,
“reference_node” : “http://localhost:7474/db/data/node/0”,
“node_index” : “http://localhost:7474/db/data/index/node”,
“relationship_index” : “http://localhost:7474/db/data/index/relationship”,
“extensions_info” : “http://localhost:7474/db/data/ext”,
“relationship_types” : “http://localhost:7474/db/data/relationship/types”,
“batch” : “http://localhost:7474/db/data/batch”,
“cypher” : “http://localhost:7474/db/data/cypher”,
“neo4j_version” : “1.9”
}

The errors in geoserver.log (and catalina.out):

18 Jun 11:55:35 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘gwcTLDispatcher’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcTLDispatcher’ defined in URL [jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
… 32 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
… 41 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
at org.geowebcache.config.XMLConfiguration.validate(XMLConfiguration.java:811)
at org.geowebcache.config.XMLConfiguration.checkAndTransform(XMLConfiguration.java:785)
at org.geowebcache.config.XMLConfiguration.loadDocument(XMLConfiguration.java:689)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:392)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:380)
at org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfiguration.java:371)
at org.geowebcache.config.XMLConfiguration.initialize(XMLConfiguration.java:870)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:189)
at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:164)
at org.geowebcache.layer.TileLayerDispatcher.reInit(TileLayerDispatcher.java:118)
at org.geowebcache.layer.TileLayerDispatcher.(TileLayerDispatcher.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
… 43 more

Regards!

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Wed, Jun 19, 2013 at 5:21 PM, Peter Neubauer <
peter.neubauer@anonymised.com> wrote:

Pretty cool Rodrigo!

Do you know what the affected versions where? We might be able to update
them in neo4j-spatial (I think there were some problems but I don't
remember exactly, maybe you can try it out). Also, do you know how to start
GeoServer as part of a unit test in order to make an automatic integration
test running with neo4j? That would be a huge contribution to the project
and one that I have been trying before without success.

If I may provide a suggestion, trying to keep a GeoServer plugin out of the
code base is a uphill battle, you never know when it's going to break.
If instead you make it into a community module first, add tests and provide
some little docs, then you can push it to extension status, which
makes it go into the normal Hudson build, if anything breaks the person
that broke is often going to have a look and fix right away.

GeoServer also provides you with extensive support for in-build integration
tests, without the need to actually start a GeoServer, but staring
the application context and giving you an enviroment where you can run
actual requests, see for example this module, an extension
that makes WFS test to ensure the integration between the querylayer module
and wfs works as expected:

https://github.com/geoserver/geoserver/blob/master/src/extension/querylayer/src/test/java/org/geoserver/filter/function/WFSFilteringTest.java

Getting a community module is easy, just ask, graduating is a little
harder, you need to add some docs, enough unit tests,
plead to maintain the module, and show there is some usage. And oh, sign a
contributor agreement, too.
More info here:
http://docs.geoserver.org/stable/en/developer/policies/community-modules.html

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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

Hi Andrea,

[This is an answer to your suggestion about the community module. (I don’t know if this message will follow the thread…)]

Please, take a look at our comments below. The discussion continued outside geoserver list.

I believe there are some definitions to do with neo4j first, but the idea to do a community module is nice too. It also depends on what neo4j-spatial developers think about it. I’m just a new user… using it.

As an user, I believe that the combination of geoserver and neo4j is great. Graph databases are excellent to model spatial (and complex non-spatial) data. Geoserver is awesome to publish them in OGC standards.

I always wanted to contribute to geoserver somehow, but never got time. The same may happen now with neo4j, but I’m insisting.

Also, I don’t know if I will be capable to help. But I hope so!

Cheers!

Rodrigo C. Antonialli

···

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Thu, Jun 20, 2013 at 10:59 AM, Peter Neubauer <peter.neubauer@anonymised.com> wrote:

Rodrigo,
I updated the GeoTools libs to 9.2, can you check if things are smoother now? Also, any automated way of deploying Neo4j Spatial into a fresh geoserver instance would be elegible for a personal T-Shirt! Just sayin’ :slight_smile:

/peter


You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Kids in Malmö this summer? - http://www.kidscraft.se
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

On Thu, Jun 20, 2013 at 12:29 AM, Rodrigo Antonialli <rcantonialli@anonymised.com> wrote:

You received this message because you are subscribed to the Google Groups “Neo4j” group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@anonymised.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi!

Peter, the diffs are listed in the attached file. (if you can’t see it, let me know).

Geoserver_Neo4j_Libs

On Wed, Jun 19, 2013 at 12:21 PM, Peter Neubauer <peter.neubauer@anonymised.com…> wrote:

Also, do you know how to start GeoServer as part of a unit test in order to make an automatic integration test running with neo4j?

Actually, no… But, according to Michael’s comments about neo4j access , I’ll need to investigate this a little further. I don’t know yet if I will have the time do so, but if I have, I can try this tests.

My needs are to store spatial and non-spatial data and interact with them through geoserver wms, wfs, and mainly wps.

My next test will be the access to neo4j from WPS. If I could get the neo4j database instance from WPS, I could handle it normally, including shapefile import and so on.

It would be nice if we could interact with neo4j rest api from front-end too while publishing maps.

Michael, any starting point to implement the solutions you proposed? Thats my first contact with neo4j and I’m still learning how it works…

Regards!

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli