Forum Discussion
- IvanB8 years agoOccasional Contributor
This didn't help. I mentioned in my initial message that I've put driver .jar file in /bin/ext folder.
- nmrao8 years ago
Champion Level 1
Looks "java/" made me confused.
See if the below link helps:
http://www.unityjdbc.com/mongojdbc/mongo_jdbc.php
By the way, if you see the log (2nd snippet), there is mongodb class name in the registered dirvers, hence the error.- IvanB8 years agoOccasional Contributor
nmrao This link is somewhat helpful. I already used all info from that lil to setup driver, but it still doesn't work as JDBC test step.
In logs snippet last record is saying registering 5 JBDC drivers from extension library and then a list of drivers, but there is no Mongo driver in this list. That's why I assumed that this is driver issue.
Here is how I setup my DB connection and test step:
Server is up and running because I can connect to it with standalone app with the same settings.
Also I've created a script test step where I import this library and create a DB connection and can fetch the data, but for the convenience I need to setup it as JDBC test step. (Script stopped working since my last run, just nothing happens SoapUI freezes only force quite and restart helps - but this is separate issue.)
First of all should I use mongo-java-driver:
<groupId>org.mongodb</groupId> <artifactId>mongo-java-driver</artifactId> <version>3.5.0</version>?
or
mongoldb-driver:
<groupId>org.mongodb</groupId> <artifactId>mongodb-driver</artifactId> <version>3.5.0</version>?
or both?
Script was working with Java Driver.
Here is the script contents:
And thanks for helping me out with this nmrao appreciate it.