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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Explained
    • Affects Version/s: jboss-fuse-6.3
    • Fix Version/s: None
    • Component/s: Camel, Karaf
    • Labels:
      None
    • Workaround Description:
      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'
    • Estimated Difficulty:
      Medium

      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
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ldemasi Luigi De Masi
                Reporter:
                rhn-support-kkakarla kodandaRamu-Red Hat
                Tester:
                Tomas Turek
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: