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

Nicolas Roduit commented on FELIX-3363:
---------------------------------------

The issue is fixed with the following patch:

Index: 
src/main/java/org/apache/felix/framework/util/manifestparser/R4LibraryClause.java
===================================================================
--- 
src/main/java/org/apache/felix/framework/util/manifestparser/R4LibraryClause.java
   (revision 1351067)
+++ 
src/main/java/org/apache/felix/framework/util/manifestparser/R4LibraryClause.java
   (working copy)
@@ -140,6 +140,7 @@
             || currentOSName.equals("windowsnt")
             || currentOSName.equals("windows2000")
             || currentOSName.equals("windows2003")
+            || currentOSName.equals("windows2008")
             || currentOSName.equals("windowsxp")
             || currentOSName.equals("windowsce")
             || currentOSName.equals("windowsvista")
@@ -378,6 +379,10 @@
             {
                 os = "windows2003";
             }
+            else if (value.indexOf("2008") >= 0)
+            {
+                os = "windows2008";
+            } 
             else if (value.indexOf("xp") >= 0)
             {
                 os = "windowsxp";

                
> Native bundles cannot be installed on Windows Server 2008 r2 with the tag 
> win32
> -------------------------------------------------------------------------------
>
>                 Key: FELIX-3363
>                 URL: https://issues.apache.org/jira/browse/FELIX-3363
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.0.2
>         Environment: Windows Server 2008 R2
>            Reporter: Nicolas Roduit
>            Priority: Minor
>             Fix For: framework-4.2.0
>
>
>   The Java property "os.name" is "Windows Server 2008 R2" on R2 system.
> "osname=win32" in the Bundle-NativeCode entry doe not work, this exception is 
> thrown:org.osgi.framework.BundleException: Unresolved constraint in bundle 
> native-lib-windows-x86 [6]: No matching native libraries found.
> This osname alias needs to be added to the felix framework.
> There is a workaround, just add
>    osname="windows server 2008 r2";
> after
>    osname=win32;
> in the Bundle-NativeCode entry. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to