From oak-issues-return-65996-archive-asf-public=cust-asf.ponee.io@jackrabbit.apache.org Thu Nov 1 11:46:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3BFAA180652 for ; Thu, 1 Nov 2018 11:46:04 +0100 (CET) Received: (qmail 93836 invoked by uid 500); 1 Nov 2018 10:46:03 -0000 Mailing-List: contact oak-issues-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-issues@jackrabbit.apache.org Received: (qmail 93559 invoked by uid 99); 1 Nov 2018 10:46:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2018 10:46:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CF417C0312 for ; Thu, 1 Nov 2018 10:46:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id i5RrgXVU0uIA for ; Thu, 1 Nov 2018 10:46:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 620AB5F530 for ; Thu, 1 Nov 2018 10:46:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9A22FE0E3E for ; Thu, 1 Nov 2018 10:46:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4D6C327764 for ; Thu, 1 Nov 2018 10:46:00 +0000 (UTC) Date: Thu, 1 Nov 2018 10:46:00 +0000 (UTC) From: "Marcel Reutegger (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (OAK-7486) mongo-srv schema doesn't work in OSGi MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OAK-7486?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger resolved OAK-7486. ----------------------------------- Resolution: Fixed Fix Version/s: 1.9.10 Fixed by updating the driver to 3.8.2. See OAK-7645. > 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=C4=99kawek > Assignee: Marcel Reutegger > Priority: Major > Fix For: 1.10, 1.9.10 > > > The mongo-java-driver 3.6.x introduces a new URI schema support, which al= lows 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.o= ak-store-document bundle org.apache.jackrabbit.oak-store-document:1.9.0 (10= 8)[org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService(224)= ] : The activate method has thrown an exception (java.lang.NoClassDefFoundE= rror: javax/naming/NamingException) > java.lang.NoClassDefFoundError: javax/naming/NamingException > at com.mongodb.ConnectionString.(ConnectionString.java:321)= [org.mongodb.mongo-java-driver:3.6.3] > at com.mongodb.MongoClientURI.(MongoClientURI.java:234) [or= g.mongodb.mongo-java-driver:3.6.3] > at com.mongodb.MongoClientURI.(MongoClientURI.java:216) [or= g.mongodb.mongo-java-driver:3.6.3] > at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreSe= rvice.registerNodeStore(DocumentNodeStoreService.java:279) [org.apache.jack= rabbit.oak-store-document:1.9.0] > at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreSe= rvice.registerNodeStoreIfPossible(DocumentNodeStoreService.java:252) [org.a= pache.jackrabbit.oak-store-document:1.9.0] > at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreSe= rvice.activate(DocumentNodeStoreService.java:236) [org.apache.jackrabbit.oa= k-store-document:1.9.0] > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)