Im trying to create data source for neo4j in websphere application server but its failing to connect. Any pointers on this would be helpful.
JDBC Driver Created with the following parameters:
- Name : neo4j Driver
- Class path : path of the neo4j jdbc jar/neo4j-jdbc-driver-3.3.1.jar
- Implementation class name : org.neo4j.jdbc.Driver
Data source created with the following :
- jndi Name: jdbc/neo4j
Custom Properties:
-
- auth : container
-
- type: javax.sql.DataSource
-
- username: neo4j
-
- password: password
-
- url:jdbc:neo4j:bolt://localhost:port
-
- removeAbandonedOnBorrow : true
-
- closeMethod : close
The properties are added based on the pointers provided in GitHub - neo4j-contrib/neo4j-jdbc: JDBC driver for Neo4j
Here is the error from logs:
java.lang.Exception: DSRA8101E: DataSource class cannot be used as one-phase: ClassCastException: org.neo4j.jdbc.bolt.BoltDriver incompatible with javax.sql.ConnectionPoolDataSource [5/27/19 13:12:41:533 UTC] 00000111 SystemErr R at com.ibm.ws.rsadapter.AdapterUtil.createDataStoreAdapterException(AdapterUtil.java:441) [5/27/19 13:12:41:533 UTC] 00000111 SystemErr R at com.ibm.ws.rsadapter.DSConfigHelper.getPooledConnection(DSConfigHelper.java:1340)