Uploaded image for project: 'JBoss OSGi'
  1. JBoss OSGi
  2. JBOSGI-745

Support OSGi Bundle Native Libraries for Windows 8/2008 Server platforms

    Details

      Description

      I need to refactor the current jdbc driver modules as OSGi bundles. One particular bundle which contains supporting native libraries caused a startup issue in JBoss 7.2.0.Final. However, the only lead I had was the warning message "JBAS011910: Cannot resolve requirements: []", which appeared several times.

      After enabling debug for the framework, I could see that a jdbc driver bundle containing supporting native libraries was the cause.

      2013-08-30 10:15:07,518 DEBUG [org.jboss.osgi.framework](ClassLoader Thread) Cannot resolve bundle: x:1.0.0.SNAPSHOT: org.osgi.service.resolver.ResolutionException: org.osgi.framework.BundleException: JBOSGI011260: No native code clause selected for: [lib/windows/32/sqljdbc_auth.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86]},dirs={}], lib/windows/32/sqljdbc_xa.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86]},dirs={}], lib/windows/64/sqljdbc_auth.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86-64]},dirs={}], lib/windows/64/sqljdbc_xa.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86-64]},dirs={}]]
      	at org.jboss.osgi.framework.internal.ResolverImpl.applyResolverResults(ResolverImpl.java:245)
      	at org.jboss.osgi.framework.internal.ResolverImpl.resolveAndApply(ResolverImpl.java:138)
      	at org.jboss.osgi.framework.spi.BundleLifecyclePlugin$BundleLifecycleImpl.resolve(BundleLifecyclePlugin.java:97)
      	at org.jboss.as.osgi.service.BundleLifecycleIntegration$BundleLifecycleImpl.resolve(BundleLifecycleIntegration.java:180)
      	at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:624)
      	at org.jboss.osgi.framework.internal.FallbackLoader.findInUnresolvedRevisions(FallbackLoader.java:285)
      	at org.jboss.osgi.framework.internal.FallbackLoader.findRevisionDynamically(FallbackLoader.java:192)
      	at org.jboss.osgi.framework.internal.FallbackLoader.loadClassLocal(FallbackLoader.java:112)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:526)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      	at org.jboss.modules.ConcurrentClassLoader.access$400(ConcurrentClassLoader.java:52)
      	at org.jboss.modules.ConcurrentClassLoader$LoaderThread.run(ConcurrentClassLoader.java:627)
      Caused by: org.osgi.framework.BundleException: JBOSGI011260: No native code clause selected for: [lib/windows/32/sqljdbc_auth.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86]},dirs={}], lib/windows/32/sqljdbc_xa.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86]},dirs={}], lib/windows/64/sqljdbc_auth.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86-64]},dirs={}], lib/windows/64/sqljdbc_xa.dll[attr={osname=[[WindowsVista, Windows2003, Windows7, WindowsXP, Windows2000, WindowsNT]], processor=[x86-64]},dirs={}]]
      	at org.jboss.osgi.framework.internal.NativeCodeImpl.resolveNativeCode(NativeCodeImpl.java:165)
      	at org.jboss.osgi.framework.internal.ResolverImpl.resolveNativeCodeLibraries(ResolverImpl.java:296)
      	at org.jboss.osgi.framework.internal.ResolverImpl.applyResolverResults(ResolverImpl.java:243)
      	... 13 more
      

      This is due to the NativeCodeImpl which does not yet include support for the two operating system mentioned above.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                arcivanov Arcadiy Ivanov
                Reporter:
                ejroberts Ed Roberts
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: