You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Karl Pauls <ka...@gmail.com> on 2008/07/10 21:03:40 UTC

Re: Bundle-NativeCode: Unable to select a native library clause

>  I'm having trouble using a native library from an OSGi bundle with
> Bundle-NativeCode. When I try to install the bundle I receive:
>  org.osgi.framework.BundleException: Unable to select a native
> library clause.
>     at
> org.apache.felix.framework.util.manifestparser.ManifestParser.getSelectedLibraryClause(ManifestParser.java:370)
>     at
> org.apache.felix.framework.util.manifestparser.ManifestParser.getLibraries(ManifestParser.java:293)
>     at
> org.apache.felix.framework.Felix.createModule(Felix.java:3423)
>  ...
>  The Bundle-NativeCode header is generated by the Felix Maven plugin
> with the following line:
>                         libjspLux86.so;processor=Linux;osname=amd64

Shouldn't that be:

                  libjspLux86.so;processor=amd64;osname=Linux

I think you have it the wrong way around ....

regards,

Karl

>  I'm running Ubuntu Linux  on an AMD 64 machine. Java
> System.properties reports the os and architecture as "Linux" and
> "amd64".
>  Does Felix get the processor and os from the system properties, or
> does it need to be set somewhere? Is there a way to see what Felix
> thinks os and processor are?



-- 
Karl Pauls
karlpauls@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Bundle-NativeCode: Unable to select a native library clause

Posted by pa...@theokorigroup.com.
Yep, that was it. Originally I had only the osname in there, and I guess I was a bit careless when I added the processor.

Thanks!


On Thu, 10 Jul 2008 21:03:40 +0200, "Karl Pauls" <ka...@gmail.com> wrote:
>>  I'm having trouble using a native library from an OSGi bundle with
>> Bundle-NativeCode. When I try to install the bundle I receive:
>>  org.osgi.framework.BundleException: Unable to select a native
>> library clause.
>>     at
>>
> org.apache.felix.framework.util.manifestparser.ManifestParser.getSelectedLibraryClause(ManifestParser.java:370)
>>     at
>>
> org.apache.felix.framework.util.manifestparser.ManifestParser.getLibraries(ManifestParser.java:293)
>>     at
>> org.apache.felix.framework.Felix.createModule(Felix.java:3423)
>>  ...
>>  The Bundle-NativeCode header is generated by the Felix Maven plugin
>> with the following line:
>>                         libjspLux86.so;processor=Linux;osname=amd64
> 
> Shouldn't that be:
> 
>                   libjspLux86.so;processor=amd64;osname=Linux
> 
> I think you have it the wrong way around ....
> 
> regards,
> 
> Karl
> 
>>  I'm running Ubuntu Linux  on an AMD 64 machine. Java
>> System.properties reports the os and architecture as "Linux" and
>> "amd64".
>>  Does Felix get the processor and os from the system properties, or
>> does it need to be set somewhere? Is there a way to see what Felix
>> thinks os and processor are?
> 
> 
> 
> --
> Karl Pauls
> karlpauls@gmail.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org