You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2014/07/10 10:18:05 UTC

[jira] [Reopened] (KARAF-1545) Jar files in lib directory require "karaf-" prefix in order to be loaded

     [ https://issues.apache.org/jira/browse/KARAF-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet reopened KARAF-1545:
------------------------------------


The libraries in {{lib/ext/}} don't need to be prefixed by {{karaf-}}, only those in {{lib/}}.

> 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, karaf-documentation
>    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: "unix"
>            Reporter: James Carman
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.0, 4.0.0, 3.0.2, 2.3.6
>
>         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 was sent by Atlassian JIRA
(v6.2#6252)