grails无法连接到neo4j数据存储区

时间:2013-03-27 12:24:54

标签: grails neo4j connect

运行连接到Neo4j的Grails应用程序时出错

Error initializing the application: Error creating bean with name 'neo4jDatastore': FactoryBean threw exception on object creation; nested exception is com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused
Message: Error creating bean with name 'neo4jDatastore': FactoryBean threw exception on object creation; nested exception is com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused

运行嵌入式模式时一切正常。但是我想在休息模式下运行 所以我在Config.groovy中添加了以下内容:

dependencies {
    compile "org.neo4j:neo4j-rest-graphdb:1.6"
}

和存储库:

mavenRepo 'http://m2.neo4j.org/releases'

DataSource.groovy我已添加:

grails {
   neo4j {
      type = "rest"
      location = "http://localhost:7474/db/data/"
      params = []
   }
}

知道连接被拒绝的原因吗?

0 个答案:

没有答案