title: How To Use Grails With GrapheneDB
body: <p>Has anyone used Graphenedb for a Grails project? I'm trying to create a Neo4J app to be hosted in Appfog which I'll connect to a Neo4J DB in GrapheneDB, but I can't seem to even figure out how to start Neo4J in Grails. I've done the following:</p>
  
  <ol>
  <li><p>Created new Grails 2.3.5 project in Grails Tool Suite</p></li>
  <li><p>In BuildConfig, removed hibernate reference then added:</p>
  
  <p>repositories { mavenRepo '<a href="http://m2.neo4j.org/releases" rel="nofollow noreferrer">http://m2.neo4j.org/releases</a>'</p>
  
  <p>plugins {compile ":neo4j:1.1.1" //followed the Grails Neo4J GORM instructions</p>
  
  <p>compile("org.neo4j:neo4j-rest-graphdb:1.6") //also tried 2.0.0</p></li>
  <li><p>In DataSource added:</p>
  
  <p>grails { neo4j {
              type = "rest"
              location = "xxx.sb01.stations.graphenedb.com:xxxx/db/data"</p></li>
  <li><p>Created domain class with static mapWith = "neo4j" and generated controller and view</p></li>
  </ol>
  
  <p>Whatever I do, I get errors:</p>
  
  <p>Resolve error obtaining dependencies: Could not find artifact org.neo4j:neo4j-rest-graphdb:jar:xxx in grailsCentral</p>
  
  <p>or</p>
  
  <p>Compilation error: startup failed: Compile error during compilation with javac..</p>
  
  <p>Other people had problems with Neo4J with Grails:</p>
  
  <p><a href="https://stackoverflow.com/questions/13201322/error-loading-neo4j-from-grails-app">Error loading Neo4j from grails app</a></p>
  
  <p><a href="https://stackoverflow.com/questions/15658727/grails-unable-to-connect-to-neo4j-datastore">grails unable to connect to neo4j datastore</a></p>
  
  <p>Questions:</p>
  
  <ol>
  <li><p>Is there a tutorial on how to set up Neo4j rest on Grails ?</p></li>
  <li><p>Is it better to use Play framework than Grails for Neo4J to begin with ? There seems to be more examples for building Neo4J apps in Scala than Grails. <a href="http://www.neo4j.org/develop/scala" rel="nofollow noreferrer">http://www.neo4j.org/develop/scala</a></p></li>
  </ol>