Mongodb support instead of mysql

user5 years ago

Hi Anton,
Your work is awesome, am currently working mysql as db in this project and also I was trying to integrate mongodb, i found the github link for this purpose in github link. As according to this i have changed these values for entries with my values

<entry key='database.driver'>mongodb.jdbc.MongoDriver</entry>
    <entry key='database.dataSource'>mongodb.jdbc.MongoDataSource</entry>
    <entry key='database.driverFile'>/opt/traccar/lib/mongodb_unityjdbc_full.jar</entry>
    <entry key='database.url'>jdbc:mongo://127.0.0.1:27017/traccar</entry>
    <entry key='database.user'>traccar</entry>
    <entry key='database.password'>traccar</entry>

but when i run the application am getting error as

java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver
    at org.traccar.Main.run(Main.java:152)
    at org.traccar.Main.main(Main.java:104)
Caused by: java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver

can you please help me with this?

Anton Tananaev5 years ago

Why are you asking me? You should ask the project author.

Why would you want to use a 2014 version of Traccar just to have MongoDB support?

trackinguser4455 years ago

i heard mongo was thinking their licensing not sure what that means

trackinguser4455 years ago

"re-thinking" they already did make a change