felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Philippe CLEMENT (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2350) Bundle inner jar cannot load libraries
Date Thu, 20 May 2010 17:21:16 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869684#action_12869684
] 

Jean-Philippe CLEMENT commented on FELIX-2350:
----------------------------------------------

I'm using blueprint... don't think it is possible yet with equinox.

The worst thing is event if the dll is already loaded within the direct java bundle code,
the library loading fails in the jar (J) call.

> Bundle inner jar cannot load libraries
> --------------------------------------
>
>                 Key: FELIX-2350
>                 URL: https://issues.apache.org/jira/browse/FELIX-2350
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Windows XP
>            Reporter: Jean-Philippe CLEMENT
>
> I added a bundle which wraps a utility jar J provided by an external provider. This jar
makes use of a dll X which uses another dll Y.
> The bundle archive contains (first level):
>  com
>  META-INF
>  OSGI-INF
>  X
>  Y
>  J
> The bundle manifest file contains (not complete):
>  Bundle-ClassPath: .,J
>  Bundle-NativeCode: X ; Y ; osname=Win32 ; processor=x86
> In order to activate the dll X, J contains a java code which does a System.loadLibrary("X").
This code fails when starting the bundle with the message (*):
> Caused by: java.lang.UnsatisfiedLinkError: no X in java.library.path
> 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
> 	...
> However, moving the System.loadLibrary to the direct bundle java code succeeds. Then
everything is fine.
> Looks like it is a bug.
> (*) Failing code appears in the java class loading part, i.e. static { System.loadLibrary(...)
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message