jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomek Rękawek (JIRA) <j...@apache.org>
Subject [jira] [Created] (OAK-7486) mongo-srv schema doesn't work in OSGi
Date Tue, 08 May 2018 13:21:00 GMT
Tomek Rękawek created OAK-7486:
----------------------------------

             Summary: mongo-srv schema doesn't work in OSGi
                 Key: OAK-7486
                 URL: https://issues.apache.org/jira/browse/OAK-7486
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: documentmk, mongomk
    Affects Versions: 1.9.0
            Reporter: Tomek Rękawek
             Fix For: 1.10


The mongo-java-driver 3.6.x introduces a new URI schema support, which allows to reduce the
length of the MongoDB Atlas connection string: mongo-srv. However, it doesn't work in the
OSGi environment. Following exception is logged when trying to use {{mongo-srv}} URIs:

{noformat}
08.05.2018 13:18:51.063 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-store-document
bundle org.apache.jackrabbit.oak-store-document:1.9.0 (108)[org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService(224)]
: The activate method has thrown an exception (java.lang.NoClassDefFoundError: javax/naming/NamingException)
java.lang.NoClassDefFoundError: javax/naming/NamingException
        at com.mongodb.ConnectionString.<init>(ConnectionString.java:321) [org.mongodb.mongo-java-driver:3.6.3]
        at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:234) [org.mongodb.mongo-java-driver:3.6.3]
        at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:216) [org.mongodb.mongo-java-driver:3.6.3]
                                                                                         
              at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStore(DocumentNodeStoreService.java:279)
[org.apache.jackrabbit.oak-store-document:1.9.0]
        at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStoreIfPossible(DocumentNodeStoreService.java:252)
[org.apache.jackrabbit.oak-store-document:1.9.0]
        at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.activate(DocumentNodeStoreService.java:236)
[org.apache.jackrabbit.oak-store-document:1.9.0]
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message