flyway / flyway-community-db-support

Offical Flyway Community Supported Database Plugins
https://flywaydb.org/
Apache License 2.0
5 stars 30 forks source link

Mongo - SRV Record not working #51

Closed yaminidhamija closed 3 months ago

yaminidhamija commented 3 months ago

Getting this issue while tring to connect to Atlas Mongo using SRV Record:

[ERROR] Message : com.mongodb.MongoConfigurationException: Failed looking up TXT record for host [ERROR] : class javax.naming.spi.NamingManager (in module java.naming) cannot access class com.sun.jndi.dns.DnsContextFactory (in module jdk.naming.dns) because module jdk.naming.dns does not export com.sun.jndi.dns to module java.naming

URL specified as: flyway.url = jdbc:mongodb+srv://clustername.wff5g.mongodb.net/dbname

Barry-RG commented 3 months ago

I am going to close this issue as MongoDB is not a Community DB and the issue has already been raised in the appropriate repository.