You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Nicolas Roduit (Created) (JIRA)" <ji...@apache.org> on 2012/02/26 08:54:46 UTC

[jira] [Created] (FELIX-3363) Native bundles cannot be installed on Windows Server 2008 r2 with the tag win32

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

        

[jira] [Updated] (FELIX-3363) Native bundles cannot be installed on Windows Server 2008 r2 with the tag win32

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-3363:
-----------------------------------

    Fix Version/s:     (was: framework-4.2.0)
                   framework-4.0.3
         Assignee: Richard S. Hall
    
> 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
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-4.0.3
>
>
>   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

        

[jira] [Resolved] (FELIX-3363) Native bundles cannot be installed on Windows Server 2008 r2 with the tag win32

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall resolved FELIX-3363.
------------------------------------

    Resolution: Fixed

Fix applied to 4.0.3 release candidate and framework trunk. Please close if satisfied, thanks.
                
> 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
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-4.0.3
>
>
>   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

        

[jira] [Commented] (FELIX-3363) Native bundles cannot be installed on Windows Server 2008 r2 with the tag win32

Posted by "Nicolas Roduit (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (FELIX-3363) Native bundles cannot be installed on Windows Server 2008 r2 with the tag win32

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13393375#comment-13393375 ] 

Richard S. Hall commented on FELIX-3363:
----------------------------------------

Would such a patch suffice:

--- src/main/java/org/apache/felix/framework/util/manifestparser/R4LibraryClause.java	(revision 1350978)
+++ src/main/java/org/apache/felix/framework/util/manifestparser/R4LibraryClause.java	(working copy)
@@ -378,6 +378,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

        

[jira] [Commented] (FELIX-3363) Native bundles cannot be installed on Windows Server 2008 r2 with the tag win32

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401592#comment-13401592 ] 

Richard S. Hall commented on FELIX-3363:
----------------------------------------

Right. I missed the first part. Thanks. I'll put this in the framework 4.0.3 release.
                
> 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