You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Chris Dolan (Created) (JIRA)" <ji...@apache.org> on 2011/10/06 14:34:31 UTC

[jira] [Created] (KARAF-917) warn instead of info when failing to install a feature

warn instead of info when failing to install a feature
------------------------------------------------------

                 Key: KARAF-917
                 URL: https://issues.apache.org/jira/browse/KARAF-917
             Project: Karaf
          Issue Type: Bug
          Components: karaf-features
    Affects Versions: 2.2.2
            Reporter: Chris Dolan
            Priority: Minor


I have a custom feature that looks roughly like this:

    <feature name="..." version="${project.version}" resolver="(obr)">
        <feature version="[2,3)">war</feature>
        ...
        <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
    </feature>

This feature fails to load with the following error message:

   Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war

The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.

I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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] (KARAF-917) warn instead of info when failing to install a feature

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121969#comment-13121969 ] 

Jean-Baptiste Onofré commented on KARAF-917:
--------------------------------------------

Fixed on trunk: revision 1179641.
                
> warn instead of info when failing to install a feature
> ------------------------------------------------------
>
>                 Key: KARAF-917
>                 URL: https://issues.apache.org/jira/browse/KARAF-917
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2
>            Reporter: Chris Dolan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.4, 3.0.0
>
>         Attachments: KARAF-917.patch
>
>
> I have a custom feature that looks roughly like this:
>     <feature name="..." version="${project.version}" resolver="(obr)">
>         <feature version="[2,3)">war</feature>
>         ...
>         <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
>     </feature>
> This feature fails to load with the following error message:
>    Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war
> The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.
> I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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] (KARAF-917) warn instead of info when failing to install a feature

Posted by "Chris Dolan (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Dolan updated KARAF-917:
------------------------------

    Attachment: KARAF-917.patch

This patch trivially changes the log level of a failed feature load to warn() instead of info()
                
> warn instead of info when failing to install a feature
> ------------------------------------------------------
>
>                 Key: KARAF-917
>                 URL: https://issues.apache.org/jira/browse/KARAF-917
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2
>            Reporter: Chris Dolan
>            Priority: Minor
>         Attachments: KARAF-917.patch
>
>
> I have a custom feature that looks roughly like this:
>     <feature name="..." version="${project.version}" resolver="(obr)">
>         <feature version="[2,3)">war</feature>
>         ...
>         <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
>     </feature>
> This feature fails to load with the following error message:
>    Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war
> The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.
> I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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] [Closed] (KARAF-917) warn instead of info when failing to install a feature

Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear closed KARAF-917.
--------------------------------

    
> warn instead of info when failing to install a feature
> ------------------------------------------------------
>
>                 Key: KARAF-917
>                 URL: https://issues.apache.org/jira/browse/KARAF-917
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2
>            Reporter: Chris Dolan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.4, 3.0.0
>
>         Attachments: KARAF-917.patch
>
>
> I have a custom feature that looks roughly like this:
>     <feature name="..." version="${project.version}" resolver="(obr)">
>         <feature version="[2,3)">war</feature>
>         ...
>         <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
>     </feature>
> This feature fails to load with the following error message:
>    Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war
> The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.
> I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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] (KARAF-917) warn instead of info when failing to install a feature

Posted by "Jean-Baptiste Onofré (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-917.
----------------------------------------

    Resolution: Fixed
    
> warn instead of info when failing to install a feature
> ------------------------------------------------------
>
>                 Key: KARAF-917
>                 URL: https://issues.apache.org/jira/browse/KARAF-917
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2
>            Reporter: Chris Dolan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.4, 3.0.0
>
>         Attachments: KARAF-917.patch
>
>
> I have a custom feature that looks roughly like this:
>     <feature name="..." version="${project.version}" resolver="(obr)">
>         <feature version="[2,3)">war</feature>
>         ...
>         <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
>     </feature>
> This feature fails to load with the following error message:
>    Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war
> The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.
> I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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] [Assigned] (KARAF-917) warn instead of info when failing to install a feature

Posted by "Jean-Baptiste Onofré (Assigned JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-917:
------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> warn instead of info when failing to install a feature
> ------------------------------------------------------
>
>                 Key: KARAF-917
>                 URL: https://issues.apache.org/jira/browse/KARAF-917
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2
>            Reporter: Chris Dolan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>         Attachments: KARAF-917.patch
>
>
> I have a custom feature that looks roughly like this:
>     <feature name="..." version="${project.version}" resolver="(obr)">
>         <feature version="[2,3)">war</feature>
>         ...
>         <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
>     </feature>
> This feature fails to load with the following error message:
>    Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war
> The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.
> I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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] (KARAF-917) warn instead of info when failing to install a feature

Posted by "Jean-Baptiste Onofré (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-917:
---------------------------------------

    Fix Version/s: 3.0.0
                   2.2.4
    
> warn instead of info when failing to install a feature
> ------------------------------------------------------
>
>                 Key: KARAF-917
>                 URL: https://issues.apache.org/jira/browse/KARAF-917
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2
>            Reporter: Chris Dolan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.4, 3.0.0
>
>         Attachments: KARAF-917.patch
>
>
> I have a custom feature that looks roughly like this:
>     <feature name="..." version="${project.version}" resolver="(obr)">
>         <feature version="[2,3)">war</feature>
>         ...
>         <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
>     </feature>
> This feature fails to load with the following error message:
>    Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war
> The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.
> I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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] (KARAF-917) warn instead of info when failing to install a feature

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121970#comment-13121970 ] 

Jean-Baptiste Onofré commented on KARAF-917:
--------------------------------------------

Fixed on karaf-2.2.x: revision 1179642.
                
> warn instead of info when failing to install a feature
> ------------------------------------------------------
>
>                 Key: KARAF-917
>                 URL: https://issues.apache.org/jira/browse/KARAF-917
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2
>            Reporter: Chris Dolan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.4, 3.0.0
>
>         Attachments: KARAF-917.patch
>
>
> I have a custom feature that looks roughly like this:
>     <feature name="..." version="${project.version}" resolver="(obr)">
>         <feature version="[2,3)">war</feature>
>         ...
>         <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
>     </feature>
> This feature fails to load with the following error message:
>    Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war
> The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.
> I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

--
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