Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Cannot get grails dependency to Spring Data.

  1. #11
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    Thanks Stefan.

    I saw somewhere there were annotations for a plugin, now it could have been from the Roo plugin, but I vaguely remember it in Grails with @Neo4jIndexed and @Neo4jEntity along those lines.

    Right now, I am trying to find the first combination that will actually work. Whether that is Roo or Grails. I have spent a good three weeks on the tools, tooling etc and none on my actual code to build the application. Mostly because I am choosing to use the latest stuff Either Grails 2.0, Roo 1.2, Neo4j 1.5, maybe Spring Data 2.0.

    But, if you think the Neo4j GORM integration is the best approach with Grails, I will try it out. But that isn't your plugin that you created is it?

    Again, thanks I am going to try out the grails-data-mapping project and use it.

    Mark

  2. #12
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    OK, reading more, though I am still guessing. I guess it is the same plugin as yours. There is just a disconnect there that I couldn't see.

    If you want a beta tester on the documentation you are writing, I think I am a good candidate for you.

    For me, seeing the correlation between plugin version number and version number for the grails-data-mapping. I downloaded the grails-data-mapping 1.0RC would I use the same version in my Grails app for the Neo4J Grails plugin.

    Then how do you setup Neo4j in your Grails app? When Grails first creates an app it adds a datasource for Hsqldb, do we have to change that to the Neo4j file? How do you do that?

    After that, is that all you need to change. Let Grails do all the rest. Our domain objects won't require any type of annotations on them, it can automatically determine which domain objects should be a Node and what should be a Relationship?

    Those are the type of things that I have been looking for in some documentation. But yes, even a real simple AddressBook sample app with the Neo4j plugin and Neo4j being used goes a long way.

    I tried looking at the tests in the grails-data-mapping neo4j project, but it doesn't help me much.

    Thanks

    Mark

  3. #13
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    In trying to use the plugin for NEO4j with GORM, I remove any Spring Data stuff in my code, I also removed any Neo4j Annotations I had in my domain object. Now I just have the plugin.

    Now I get the following error

    Code:
    | Error 2011-11-26 14:21:34,364 [Thread-13] ERROR context.GrailsContextLoader  - Error executing bootstraps: Cannot cast object '<graphDatabaseService>' with class 'grails.spring.BeanBuilder$ConfigurableRuntimeBeanReference' to class 'org.neo4j.graphdb.GraphDatabaseService'
    Message: Cannot cast object '<graphDatabaseService>' with class 'grails.spring.BeanBuilder$ConfigurableRuntimeBeanReference' to class 'org.neo4j.graphdb.GraphDatabaseService'
       Line | Method
    ->> 693 | invokeBeanDefiningMethod  in grails.spring.BeanBuilder
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    |   546 | invokeMethod              in     ''
    |   736 | invokeBeanDefiningClosure in     ''
    |   569 | beans                     in     ''
    |   511 | invokeMethod . . . . . .  in     ''
    |   303 | innerRun                  in java.util.concurrent.FutureTask$Sync
    |   138 | run . . . . . . . . . . . in java.util.concurrent.FutureTask
    |   886 | runTask                   in java.util.concurrent.ThreadPoolExecutor$Worker
    |   908 | run . . . . . . . . . . . in     ''
    ^   680 | run                       in java.lang.Thread
    
    Process finished with exit code 1
    Not sure how to fix this one.

    Thanks

    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •