Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14195

MariaDB can't load org.osgi.service.jdbc.DataSourceFactory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • jboss-fuse-6.3
    • Camel, Karaf
    • None
    • Medium
    • % %
    • Hide

      A possible workaround is to use the wrap protocol to install the bundle and rewrite the import-package metadata segment:

       install -s 'wrap:mvn:org.mariadb.jdbc/mariadb-java-client/2.5.4.redhat-00003$overwrite=merge&Import-Package= org.osgi.service.jdbc,org.osgi.framework,javax.naming,javax.management,javax.sql,javax.net;resolution:=optional,javax.net.ssl;resolution:=optional,javax.transaction.xa;resolution:=optional,waffle.windows.auth;resolution:=optional,waffle.windows.auth.impl;resolution:=optional'
      
      Show
      A possible workaround is to use the wrap protocol to install the bundle and rewrite the import-package metadata segment: install -s 'wrap:mvn:org.mariadb.jdbc/mariadb-java-client/2.5.4.redhat-00003$overwrite=merge&Import-Package= org.osgi.service.jdbc,org.osgi.framework,javax.naming,javax.management,javax.sql,javax.net;resolution:=optional,javax.net.ssl;resolution:=optional,javax.transaction.xa;resolution:=optional,waffle.windows.auth;resolution:=optional,waffle.windows.auth.impl;resolution:=optional'

    Description

      RedHat version :2.5.4.redhat-00003 It fails to find the class

       
      JBossFuse:karaf@root> osgi:install -s mvn:org.mariadb.jdbc/mariadb-java-client/2.5.4.redhat-00003 Bundle ID: 292 Error executing command: Error installing bundles: Unable to start bundle mvn:org.mariadb.jdbc/mariadb-java-client/2.5.4.redhat-00003: Activator start error in bundle org.mariadb.jdbc
      ------------------------------------------------------------------
       
      Caused by: java.lang.NoClassDefFoundError: org/osgi/service/jdbc/DataSourceFactory
                at org.mariadb.jdbc.internal.osgi.MariaDbActivator.start(MariaDbActivator.java:75)
                at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
                at org.apache.felix.framework.Felix.activateBundle(Felix.java:2154)
              ... 10 more
              Caused by: java.lang.ClassNotFoundException: org.osgi.service.jdbc.DataSourceFactory not found by org.mariadb.jdbc
      

      Attachments

        Activity

          People

            ldemasi Luigi De Masi
            rhn-support-kkakarla kodandaRamu kakarla
            Tomas Turek Tomas Turek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: