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 05B79115FD for ; Mon, 13 May 2013 06:51:45 +0000 (UTC) Received: (qmail 35651 invoked by uid 500); 13 May 2013 06:35:44 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 35264 invoked by uid 500); 13 May 2013 06:35:32 -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 34975 invoked by uid 99); 13 May 2013 06:35:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 May 2013 06:35:28 +0000 Date: Mon, 13 May 2013 06:35:27 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-1545) Jar files in lib directory require "karaf-" prefix in order to be loaded 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/KARAF-1545?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1365= 5796#comment-13655796 ]=20 Freeman Fang commented on KARAF-1545: ------------------------------------- Hi, I'm also a little bit concerned about this change. IMO the jars in KARAF_HOME/lib which could get loaded by default should be= only those that do very fundamental karaf bootstrap work, any other libs = should be installed and managed as OSGi bundle(including the JDBC driver) Or for example in KARAF_HOME/lib folder we also have org.apache.servicemix.= specs.activator.jar since Karaf 2.3.x(used for endorsed specs), this isn't = added in the current Karaf launch script CLASSPATH, we build a URLClassLoad= er to load it in org.apache.karaf.main.Main. Freeman =20 > Jar files in lib directory require "karaf-" prefix in order to be loaded > ------------------------------------------------------------------------ > > Key: KARAF-1545 > URL: https://issues.apache.org/jira/browse/KARAF-1545 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Affects Versions: 2.2.2 > Environment: Java version: 1.6.0_32, vendor: Sun Microsystems Inc= . > Java home: /home/jcarman/Programs/jdk1.6.0_32/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "3.2.0-24-generic", arch: "amd64", family: "un= ix" > Reporter: James Carman > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 2.2.12, 2.3.2, 2.4.0, 3.0.0 > > Attachments: karaf-3.0_1545.diff > > > I was trying to configure JDBC fail-over, so I put my mysql driver jar in= the KARAF_HOME/lib directory. I kept getting ClassNotFoundExceptions. On= the advice of someone on IRC, I changed the name to "karaf-mysql-connector= -java.jar" and it started working. Why the karaf- prefix requirement? If = that's the intended behavior, then please update the README file in the lib= directory. It says: > "Any jar in this folder will be part of the main classloader used to load= Karaf." -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira