Re: Neo4j Grails plugin 1.0.0.M1, Grails 2.1.1: application will not start

230 views
Skip to first unread message

aldrinm

unread,
Nov 29, 2012, 1:46:59 AM11/29/12
to ne...@googlegroups.com
you may need to add the db config on DataSource.groovy,
grails {
    neo4j {
        type = "embedded"
        location = "/var/neo4j"
        params = []
    }
}


On Wednesday, 28 November 2012 19:03:03 UTC+5:30, Luke Orland wrote:

This is my sequence of commands for setting up the Grails app and the error that happens when running the app is shown at the bottom:

$ grails create-app GrailsNeo4jPerson
| Created Grails Application at /Users/orluke/workspace/actionpath/GrailsNeo4jPerson
$ cd GrailsNeo4jPerson
$ grails install-plugin neo4j
| Plugin installed.
$ grails create-app GrailsNeo4jPerson
| Resolving plugin JAR dependencies...
> You currently already have a version of the plugin installed [tomcat-2.1.1]. Do you want to update to [tomcat-2.1.0]? [y,n] n
| Compiling 115 source files
Note: /Users/orluke/.grails/2.1.1/projects/GrailsNeo4jPerson/plugins/cache-1.0.0/src/java/grails/plugin/cache/web/GenericResponseWrapper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
| Created file grails-app/domain/grailsneo4jperson/Person.groovy
| Created file test/unit/grailsneo4jperson/PersonSpec.groovy
$ grails run-app
| Packaging Grails application
> You currently already have a version of the plugin installed [tomcat-2.1.1]. Do you want to update to [tomcat-2.1.0]? [y,n] n
| Running Grails application
| Error 2012-11-28 08:15:31,959 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: Unable to find 'grails.neo4j' in application config.
Message: Unable to find 'grails.neo4j' in application config.
   Line | Method
->>  43 | doCall                    in org.grails.datastore.gorm.neo4j.plugin.support.Neo4jSpringConfigurer$_getSpringCustomizer_closure1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   129 | doCall                    in org.grails.datastore.gorm.plugin.support.SpringConfigurer$_configureSpring_closure1
|   736 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
|   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

Is there possibly a step I've overlooked?

Luke Orland

unread,
Nov 29, 2012, 9:03:22 PM11/29/12
to ne...@googlegroups.com
That fixed the problem. Thank you. The only thing I changed was the location to be "data/neo4j". /var does not give my login user write permissions.
Reply all
Reply to author
Forward
0 new messages