{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/issues/65","repository_url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc","labels_url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/issues/65/comments","events_url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/issues/65/events","html_url":"https://github.com/neo4j-contrib/neo4j-jdbc/issues/65","id":166369196,"number":65,"title":"play.api.PlayException: Cannot load Driver[Driver [org.neo4j.jdbc.BaseDriver] cannot be instantiated.]","user":{"login":"jasperdenkers","id":2210857,"avatar_url":"https://avatars.githubusercontent.com/u/2210857?v=3","gravatar_id":"","url":"https://api.github.com/users/jasperdenkers","html_url":"https://github.com/jasperdenkers","followers_url":"https://api.github.com/users/jasperdenkers/followers","following_url":"https://api.github.com/users/jasperdenkers/following{/other_user}","gists_url":"https://api.github.com/users/jasperdenkers/gists{/gist_id}","starred_url":"https://api.github.com/users/jasperdenkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasperdenkers/subscriptions","organizations_url":"https://api.github.com/users/jasperdenkers/orgs","repos_url":"https://api.github.com/users/jasperdenkers/repos","events_url":"https://api.github.com/users/jasperdenkers/events{/privacy}","received_events_url":"https://api.github.com/users/jasperdenkers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/labels/BOLT%20Module","name":"BOLT Module","color":"0052cc"},{"url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-07-19T16:00:44Z","updated_at":"2016-08-23T16:38:26Z","closed_at":null,"body":"I'm trying to use the neo4j-jdbc driver with Play 2.5.\r\n\r\nIn `build.sbt` I have the following dependencies:\r\n\r\n - `javaJdbc`\r\n - `\"org.neo4j\" % \"neo4j-jdbc\" % \"3.0\"`\r\n\r\nI've configured a database named neo4j in `application.conf`:\r\n\r\n```\r\n# Neo4j database configuration\r\ndb.neo4j.driver=org.neo4j.jdbc.BaseDriver\r\ndb.neo4j.url=\"jdbc:neo4j:bolt://localhost\"\r\n```\r\n\r\nAnd just started trying out the setup using the following controller:\r\n\r\n```\r\npackage controllers\r\n\r\nimport javax.inject.Inject\r\nimport play.api.db.{ Database, NamedDatabase }\r\nimport play.api.mvc._\r\n\r\nclass Neo4j @Inject()(@NamedDatabase(\"neo4j\") neo4j: Database) extends Controller {\r\n\r\n  def index = Action {\r\n    Ok(neo4j.name)\r\n  }\r\n\r\n}\r\n```\r\n\r\nAt first I had `db.neo4j.driver=org.neo4j.jdbc.Driver` as in [this example](https://github.com/neo4j-contrib/neo4j-jdbc/blob/master/docs/play.adoc) but this seemed to be renamed in the 3.0 release. However, the driver can not be instantiated:\r\n\r\n```\r\nplay.api.Configuration$$anon$1: Configuration error[Cannot connect to database [neo4j]]\r\n        at play.api.Configuration$.configError(Configuration.scala:154)\r\n        at play.api.Configuration.reportError(Configuration.scala:806)\r\n        at play.api.db.DefaultDBApi$$anonfun$connect$1.apply(DefaultDBApi.scala:48)\r\n        at play.api.db.DefaultDBApi$$anonfun$connect$1.apply(DefaultDBApi.scala:42)\r\n        at scala.collection.immutable.List.foreach(List.scala:381)\r\n        at play.api.db.DefaultDBApi.connect(DefaultDBApi.scala:42)\r\n        at play.api.db.DBApiProvider.get$lzycompute(DBModule.scala:72)\r\n        at play.api.db.DBApiProvider.get(DBModule.scala:62)\r\n        at play.api.db.DBApiProvider.get(DBModule.scala:58)\r\n        at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)\r\nCaused by: play.api.Configuration$$anon$1: Configuration error[Driver not found: [org.neo4j.jdbc.BaseDriver}]]\r\n        at play.api.Configuration$.configError(Configuration.scala:154)\r\n        at play.api.PlayConfig.reportError(Configuration.scala:996)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:115)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:109)\r\n        at scala.Option.map(Option.scala:146)\r\n        at play.api.db.DefaultDatabase.driver$lzycompute(Databases.scala:109)\r\n        at play.api.db.DefaultDatabase.driver(Databases.scala:108)\r\n        at play.api.db.DefaultDatabase.dataSource$lzycompute(Databases.scala:123)\r\n        at play.api.db.DefaultDatabase.dataSource(Databases.scala:122)\r\n        at play.api.db.DefaultDatabase.getConnection(Databases.scala:143)\r\nCaused by: play.api.PlayException: Cannot load Driver[Driver [org.neo4j.jdbc.BaseDriver] cannot be instantiated.]\r\n        at play.utils.Reflect$.createInstance(Reflect.scala:142)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:111)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:109)\r\n        at scala.Option.map(Option.scala:146)\r\n        at play.api.db.DefaultDatabase.driver$lzycompute(Databases.scala:109)\r\n        at play.api.db.DefaultDatabase.driver(Databases.scala:108)\r\n        at play.api.db.DefaultDatabase.dataSource$lzycompute(Databases.scala:123)\r\n        at play.api.db.DefaultDatabase.dataSource(Databases.scala:122)\r\n        at play.api.db.DefaultDatabase.getConnection(Databases.scala:143)\r\n        at play.api.db.DefaultDatabase.getConnection(Databases.scala:139)\r\nCaused by: java.lang.InstantiationException: org.neo4j.jdbc.BaseDriver\r\n        at java.lang.Class.newInstance(Class.java:427)\r\n        at play.utils.Reflect$.createInstance(Reflect.scala:154)\r\n        at play.utils.Reflect$.createInstance(Reflect.scala:136)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:111)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:109)\r\n        at scala.Option.map(Option.scala:146)\r\n        at play.api.db.DefaultDatabase.driver$lzycompute(Databases.scala:109)\r\n        at play.api.db.DefaultDatabase.driver(Databases.scala:108)\r\n        at play.api.db.DefaultDatabase.dataSource$lzycompute(Databases.scala:123)\r\n        at play.api.db.DefaultDatabase.dataSource(Databases.scala:122)\r\nCaused by: java.lang.NoSuchMethodException: org.neo4j.jdbc.BaseDriver.<init>()\r\n        at java.lang.Class.getConstructor0(Class.java:3082)\r\n        at java.lang.Class.newInstance(Class.java:412)\r\n        at play.utils.Reflect$.createInstance(Reflect.scala:154)\r\n        at play.utils.Reflect$.createInstance(Reflect.scala:136)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:111)\r\n        at play.api.db.DefaultDatabase$$anonfun$driver$1.apply(Databases.scala:109)\r\n        at scala.Option.map(Option.scala:146)\r\n        at play.api.db.DefaultDatabase.driver$lzycompute(Databases.scala:109)\r\n        at play.api.db.DefaultDatabase.driver(Databases.scala:108)\r\n        at play.api.db.DefaultDatabase.dataSource$lzycompute(Databases.scala:123)\r\n```"},"comment":{"url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/issues/comments/241794804","html_url":"https://github.com/neo4j-contrib/neo4j-jdbc/issues/65#issuecomment-241794804","issue_url":"https://api.github.com/repos/neo4j-contrib/neo4j-jdbc/issues/65","id":241794804,"user":{"login":"sim51","id":231657,"avatar_url":"https://avatars.githubusercontent.com/u/231657?v=3","gravatar_id":"","url":"https://api.github.com/users/sim51","html_url":"https://github.com/sim51","followers_url":"https://api.github.com/users/sim51/followers","following_url":"https://api.github.com/users/sim51/following{/other_user}","gists_url":"https://api.github.com/users/sim51/gists{/gist_id}","starred_url":"https://api.github.com/users/sim51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sim51/subscriptions","organizations_url":"https://api.github.com/users/sim51/orgs","repos_url":"https://api.github.com/users/sim51/repos","events_url":"https://api.github.com/users/sim51/events{/privacy}","received_events_url":"https://api.github.com/users/sim51/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T16:38:26Z","updated_at":"2016-08-23T16:38:26Z","body":"Hi @rubby33 \r\n\r\nSo have you be able to test your code with the lastest build ?\r\nDoes it resolve your problem ?\r\n\r\nCheers."}}
{"actor":{"display_login":"sim51"}}