Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1545

Jar files in lib directory require "karaf-" prefix in order to be loaded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.4.0, 3.0.2, 2.3.6, 4.0.0.M3
    • karaf
    • None
    • 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"

    Description

      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."

      Attachments

        1. karaf-3.0_1545.diff
          1 kB
          Heath Kesler

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              jwcarman James Carman
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: