You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Tim Moloney (JIRA)" <ji...@apache.org> on 2009/07/16 16:18:14 UTC

[jira] Created: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
---------------------------------------------------------------------------------------------------

                 Key: FELIX-1370
                 URL: https://issues.apache.org/jira/browse/FELIX-1370
             Project: Felix
          Issue Type: Bug
          Components: Karaf
            Reporter: Tim Moloney


About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).

This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".


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


Re: [jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by Felix Meschberger <fm...@gmail.com>.
Thanks alot ...

Regards
Felix

Guillaume Nodet schrieb:
> I've reproduced and track down this issue.
> It comes from a synchronization problem in OsgiManager.  What happens
> is that when you restart the framework, you may run into
> sychronization problems if the config admin calls the updated() method
> and the http service are registered at the same time.
> I've just committed a fix at rev 826687, but jira is down for now, so
> i'll close the issue when it comes up again.
> 
> On Mon, Oct 5, 2009 at 16:39, richard stone (JIRA) <ji...@apache.org> wrote:
>>    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762193#action_12762193 ]
>>
>> richard stone commented on FELIX-1370:
>> --------------------------------------
>>
>> I met this problem right now. My env was:
>>
>> Configuration Admin 1.2.4
>> File Install 2.0.0
>> Web Management Console 1.2.10
>> Pax Web container 0.6.0
>>
>>> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
>>> ---------------------------------------------------------------------------------------------------
>>>
>>>                 Key: FELIX-1370
>>>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>>>             Project: Felix
>>>          Issue Type: Bug
>>>          Components: Karaf
>>>            Reporter: Tim Moloney
>>>
>>> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
>>> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
> 
> 
> 

Re: [jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by Guillaume Nodet <gn...@gmail.com>.
I've reproduced and track down this issue.
It comes from a synchronization problem in OsgiManager.  What happens
is that when you restart the framework, you may run into
sychronization problems if the config admin calls the updated() method
and the http service are registered at the same time.
I've just committed a fix at rev 826687, but jira is down for now, so
i'll close the issue when it comes up again.

On Mon, Oct 5, 2009 at 16:39, richard stone (JIRA) <ji...@apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762193#action_12762193 ]
>
> richard stone commented on FELIX-1370:
> --------------------------------------
>
> I met this problem right now. My env was:
>
> Configuration Admin 1.2.4
> File Install 2.0.0
> Web Management Console 1.2.10
> Pax Web container 0.6.0
>
>> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
>> ---------------------------------------------------------------------------------------------------
>>
>>                 Key: FELIX-1370
>>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>>             Project: Felix
>>          Issue Type: Bug
>>          Components: Karaf
>>            Reporter: Tim Moloney
>>
>> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
>> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Tim Moloney (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733383#action_12733383 ] 

Tim Moloney commented on FELIX-1370:
------------------------------------

I spoke too soon.

I am still seeing the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager being ignored.

It appears to be ignored less frequently with org.apache.felix.configadmin 1.0.10 than with org.apache.felix.configadmin 1.0.4, but it is still happening.


> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732208#action_12732208 ] 

Felix Meschberger commented on FELIX-1370:
------------------------------------------

Cool. Thanks for the feedback. So I step out of this issue again and leaf it to the more Karaf-knowledgeable to fix the setup.

> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Updated: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

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

Guillaume Nodet updated FELIX-1370:
-----------------------------------

    Component/s:     (was: Karaf)
                 Web Console

> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>            Reporter: Tim Moloney
>            Assignee: Guillaume Nodet
>             Fix For: webconsole-2.0.2
>
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732074#action_12732074 ] 

Felix Meschberger commented on FELIX-1370:
------------------------------------------

Can you check whether the org.apache.felix.webconsole.internal.servlet.OsgiManager configuration object is still locked to the old web console bundle by looking at the bundle.location property ?

What Configuation Admin service implementation (and version) are you using ?

> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Tim Moloney (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732194#action_12732194 ] 

Tim Moloney commented on FELIX-1370:
------------------------------------

I started using org.apache.felix.configadmin 1.0.10 and haven't seen the problem.

Perhaps the problem has already been fixed and Karaf just needs to update its configuration file to use the latest release.


> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Resolved: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

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

Guillaume Nodet resolved FELIX-1370.
------------------------------------

       Resolution: Fixed
    Fix Version/s: webconsole-2.0.2
         Assignee: Guillaume Nodet

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	M	webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
Committed r826687


> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>            Reporter: Tim Moloney
>            Assignee: Guillaume Nodet
>             Fix For: webconsole-2.0.2
>
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Tim Moloney (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732105#action_12732105 ] 

Tim Moloney commented on FELIX-1370:
------------------------------------

When it is working correctly (karaf/karaf), "config:list" shows

Pid:            org.apache.felix.webconsole.internal.servlet.OsgiManager
BundleLocation: mvn:org.apache.felix/org.apache.felix.webconsole/1.2.11-SNAPSHOT
Properties:
   service.pid = org.apache.felix.webconsole.internal.servlet.OsgiManager
   password = karaf
   username = karaf

When it isn't working correctly (admin/admin), "config:list" shows the same.

Pid:            org.apache.felix.webconsole.internal.servlet.OsgiManager
BundleLocation: mvn:org.apache.felix/org.apache.felix.webconsole/1.2.11-SNAPSHOT
Properties:
   service.pid = org.apache.felix.webconsole.internal.servlet.OsgiManager
   password = karaf
   username = karaf


I'm using what is specified in the karaf startup.properties file, which is

  org/apache/felix/org.apache.felix.configadmin/1.0.4/org.apache.felix.configadmin-1.0.4.jar=10


> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Issue Comment Edited: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732208#action_12732208 ] 

Felix Meschberger edited comment on FELIX-1370 at 7/16/09 3:30 PM:
-------------------------------------------------------------------

Cool. Thanks for the feedback. So I step out of this issue again and leave it to the more Karaf-knowledgeable to fix the setup.

      was (Author: fmeschbe):
    Cool. Thanks for the feedback. So I step out of this issue again and leaf it to the more Karaf-knowledgeable to fix the setup.
  
> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752194#action_12752194 ] 

Guillaume Nodet commented on FELIX-1370:
----------------------------------------

Hopefully this will work much better with configadmin 1.2.0.  I've updated karaf to use this latest version.

> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "richard stone (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762193#action_12762193 ] 

richard stone commented on FELIX-1370:
--------------------------------------

I met this problem right now. My env was:

Configuration Admin 1.2.4
File Install 2.0.0
Web Management Console 1.2.10
Pax Web container 0.6.0

> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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


[jira] Commented: (FELIX-1370) Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored

Posted by "Tim Moloney (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752865#action_12752865 ] 

Tim Moloney commented on FELIX-1370:
------------------------------------

Would it be a good idea to update configadmin to 1.2.4 that was just released?  I can start testing with that.  I don't think I saw any problems with 1.2.3-SNAPSHOT.

> Sometimes the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored
> ---------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1370
>                 URL: https://issues.apache.org/jira/browse/FELIX-1370
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Tim Moloney
>
> About half of the time, I can access the webconsole as expected using the username/password karaf/karaf.  The other times it appears that the configuration for org.apache.felix.webconsole.internal.servlet.OsgiManager is ignored and I have to log in as admin/admin (the default webconsole username/password).
> This can happen after a fresh start of karaf and loading the webconsole using "features:install webconsole".  It also happens when reloading the webconsole using "features:uninstall webconsole" and "features:install webconsole".

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