Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 609DF10A44 for ; Tue, 8 Dec 2015 12:35:11 +0000 (UTC) Received: (qmail 51093 invoked by uid 500); 8 Dec 2015 12:35:11 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 51066 invoked by uid 500); 8 Dec 2015 12:35:11 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 51040 invoked by uid 99); 8 Dec 2015 12:35:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2015 12:35:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E8E782C14F7 for ; Tue, 8 Dec 2015 12:35:10 +0000 (UTC) Date: Tue, 8 Dec 2015 12:35:10 +0000 (UTC) From: "Viktor Kozlov (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4172) Karaf must be restarted for pax-jdbc see driver adapters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15046812#comment-15046812 ] Viktor Kozlov commented on KARAF-4172: -------------------------------------- Thanks for work-around. Closed. > Karaf must be restarted for pax-jdbc see driver adapters > -------------------------------------------------------- > > Key: KARAF-4172 > URL: https://issues.apache.org/jira/browse/KARAF-4172 > Project: Karaf > Issue Type: Bug > Components: karaf-jdbc > Affects Versions: 4.0.3 > Environment: Windows 7 version 6.1 x64 > Java 1.7.0_80 x64 > Reporter: Viktor Kozlov > Assignee: Guillaume Nodet > Priority: Blocker > > I made some tests with DataSourceFactory being visible by pax-jdbc. Here is the results: > Karaf must be restarted for pax-jdbc see my adapters. It doesn't matter i install my adapters after Karaf restart or before. It doesn't matter how I register my services via blueprint or by activator. I install my adapters via bundle:install mvn: wrap command. > When I install build-in pax-jdbc adapter features everything works fine. > How to reproduce: > 1. build simple driver adapter: http://www.lorien.biz/karaf/test2.zip > 2. run clear Karaf 4.0.3 > 3. run script (please, do not modify, run as is): > feature:install -v eventadmin; > feature:install -v http-whiteboard; > feature:install -v jdbc; > feature:install -v pax-jdbc-pool-dbcp2/0.7.0; > feature:install -v eclipselink/2.6.0; > feature:install -v jpa/2.2.0; > bundle:install -s mvn:org.postgresql/postgresql/9.4-1200-jdbc41; > bundle:install -s mvn:postgres/test2; > 4. type ds-factories > you will see empty list > 5. type service:list DataSourceFactory > you will see some factories registered > 6. restart karaf and type ds-factories > you will see factories appeared > It is strange but 0.7.0 marked as unreleased version here in Jira. -- This message was sent by Atlassian JIRA (v6.3.4#6332)