Example Spring style Unmanaged Extension

167 views
Skip to first unread message

Theo Briscoe

unread,
Jan 16, 2014, 1:26:58 PM1/16/14
to ne...@googlegroups.com
I am trying to write a Neo4j unmanaged extension that loads spring context and uses Neo4jTemplate and Repositories. 
Does anyone have a complete example of a spring based Neo4j Server Extension.

My code is failing with the exception
----------
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
SEVERE: The following errors and warnings have been detected with resource and/or provider classes:
SEVERE: Missing dependency for field: private org.springframework.data.neo4j.support.Neo4jTemplate   
WARNING: com.sun.jersey.spi.inject.Errors$ErrorMessagesException
--------

The Neo4jTemplate is included in the maven POM file and the class appears in the created jar file 

Here is the Full Code sample

https://github.com/theobriscoe/neo4j-extensions


Versions
- Neo4j: 1.9.5
- spring-data-neo4j: 2.3.3.RELEASE



Michael Hunger

unread,
Jan 16, 2014, 6:40:47 PM1/16/14
to ne...@googlegroups.com
I think in your config you have to do a comma separated list.

org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.extensions.java.rest=/extensions-java,org.neo4j.extensions.spring.rest=/extensions-spring


It is self-testing but you get the idea :)

Michael

--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

PM

unread,
Mar 27, 2014, 7:45:46 AM3/27/14
to ne...@googlegroups.com
Hi Michael Hunger,

I m also facing same issue . i made changes into neo4j server.property file but still getting same issue.




Thanks in advance

Michael Hunger

unread,
Mar 27, 2014, 8:09:11 AM3/27/14
to ne...@googlegroups.com, ne...@googlegroups.com
Did you add all the dependend jars to server/plugins?

Sent from mobile device
--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pallavi Mukherjee

unread,
Mar 28, 2014, 2:24:20 AM3/28/14
to ne...@googlegroups.com
Thanks for reply Michael,

Yes i have added all dependencies into server plugin with all config into neo4j-server.properties filr. Could plz share link from where i can have full example of unmanaged extension for spring with all config and testcases.


Thanks,
Pallavi


--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/AZUVcFxvI_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Michael Hunger

unread,
Mar 28, 2014, 3:30:59 AM3/28/14
to ne...@googlegroups.com
I think I don't have something like that. But would be good to have, true. Perhaps you can issue a JIRA issue about that, so that we don't forget.

Otherwise if you really need it quickly, you can give it a try, get it started and share the github project. Then I can help you fix issues and you can publish a blog post about it.

Thanks so much.

Pallavi Mukherjee

unread,
Mar 28, 2014, 3:35:29 AM3/28/14
to ne...@googlegroups.com
Sure Michael i will create JIRA issue for this.


Thank you
Reply all
Reply to author
Forward
0 new messages