You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Hugh Rodgers (Created) (JIRA)" <ji...@apache.org> on 2012/04/17 17:32:20 UTC

[jira] [Created] (FELIX-3468) Restarting the framework from the web console does not work

Restarting the framework from the web console does not work
-----------------------------------------------------------

                 Key: FELIX-3468
                 URL: https://issues.apache.org/jira/browse/FELIX-3468
             Project: Felix
          Issue Type: Bug
          Components: Karaf
    Affects Versions: webconsole-3.1.8
            Reporter: Hugh Rodgers


I am running Karaf v2.2.5 (which uses felix web console v3.1.8) on Windows 7. Once I start karaf (using the karaf.bat script), I go to the web console and click on the System Information tab. I then click the Restart button and Ok in its popup. I see in the Karaf command line console that Karaf shuts down and restarts. When I click in the command line console and press return (to get a prompt), the command line console window disappears and Karaf shuts down.

When I try this with Karaf v2.2.5 and only install the webconsole feature, when I click Restart, the Karaf command line console disappears and Karaf shuts down (never comes back up).

I have reproduced this issue with Karaf v2.2.5 and only loading the following bundles:

<feature name="saxon" version="${saxon.bundle.plugin}">
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/${saxon.bundle.plugin}</bundle>
  </feature>
 
  <feature name="commons-io" version="${commons-io.version}">
    <bundle>mvn:commons-io/commons-io/${commons-io.version}</bundle>
  </feature>
 
  <feature name="slf4j-ext" version="${org.slf4j-ext.version}">
    <bundle>mvn:org.slf4j/slf4j-ext/${org.slf4j-ext.version}</bundle>
  </feature>
 
  <feature name="ops4j-base-lang" version="${org.ops4j-base-lang}">
    <bundle start-level='70'>mvn:org.ops4j.base/ops4j-base-lang/${org.ops4j-base-lang}</bundle>
  </feature>
 
  <feature name="ops4j-swissbox" version="${org.ops4j.pax.swissbox.version}">
  <feature version="${org.ops4j-base-lang}">ops4j-base-lang</feature>
    <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-lifecycle/${org.ops4j.pax.swissbox.version}</bundle>
                <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-optional-jcl/${org.ops4j.pax.swissbox.version}</bundle>
                <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-extender/${org.ops4j.pax.swissbox.version}</bundle>
  </feature>

The dev:restart command works from the Karaf command line console, and it works if I issue it from a second terminal window using the Karaf client.bat script.

At this point, I have yet to see the Restart button in the web console work properly.

Thanks. 

--
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-3468) Restarting the framework from the web console does not work

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

Felix Meschberger commented on FELIX-3468:
------------------------------------------

Yes, the only issue with the Web Console is, that it may not be appropriate to have such functionality. Other than that, this is what's being done:

   Restart: BundleContext.getBundle(0).update();
   Shutdown: BundleContext.getBundle(0).stop();

In the Sling Launcher we overwrite the Felix class to implement our own update method and to restart the framework in a fresh class loader. This works perfectly but has the drawback of not being portable....
                
> Restarting the framework from the web console does not work
> -----------------------------------------------------------
>
>                 Key: FELIX-3468
>                 URL: https://issues.apache.org/jira/browse/FELIX-3468
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: webconsole-3.1.8
>            Reporter: Hugh Rodgers
>
> I am running Karaf v2.2.5 (which uses felix web console v3.1.8) on Windows 7. Once I start karaf (using the karaf.bat script), I go to the web console and click on the System Information tab. I then click the Restart button and Ok in its popup. I see in the Karaf command line console that Karaf shuts down and restarts. When I click in the command line console and press return (to get a prompt), the command line console window disappears and Karaf shuts down.
> When I try this with Karaf v2.2.5 and only install the webconsole feature, when I click Restart, the Karaf command line console disappears and Karaf shuts down (never comes back up).
> I have reproduced this issue with Karaf v2.2.5 and only loading the following bundles:
> <feature name="saxon" version="${saxon.bundle.plugin}">
>     <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/${saxon.bundle.plugin}</bundle>
>   </feature>
>  
>   <feature name="commons-io" version="${commons-io.version}">
>     <bundle>mvn:commons-io/commons-io/${commons-io.version}</bundle>
>   </feature>
>  
>   <feature name="slf4j-ext" version="${org.slf4j-ext.version}">
>     <bundle>mvn:org.slf4j/slf4j-ext/${org.slf4j-ext.version}</bundle>
>   </feature>
>  
>   <feature name="ops4j-base-lang" version="${org.ops4j-base-lang}">
>     <bundle start-level='70'>mvn:org.ops4j.base/ops4j-base-lang/${org.ops4j-base-lang}</bundle>
>   </feature>
>  
>   <feature name="ops4j-swissbox" version="${org.ops4j.pax.swissbox.version}">
>   <feature version="${org.ops4j-base-lang}">ops4j-base-lang</feature>
>     <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-lifecycle/${org.ops4j.pax.swissbox.version}</bundle>
>                 <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-optional-jcl/${org.ops4j.pax.swissbox.version}</bundle>
>                 <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-extender/${org.ops4j.pax.swissbox.version}</bundle>
>   </feature>
> The dev:restart command works from the Karaf command line console, and it works if I issue it from a second terminal window using the Karaf client.bat script.
> At this point, I have yet to see the Restart button in the web console work properly.
> Thanks. 

--
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-3468) Restarting the framework from the web console does not work

Posted by "Valentin Valchev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256242#comment-13256242 ] 

Valentin Valchev commented on FELIX-3468:
-----------------------------------------

I don't think that this is webconsole issue. There is only one vendor-independent way to restart an osgi framework and it is to update the system bundle. If this doesn't work, then don't blame webconsole for that. I've just tested and restart works with ProSyst OSGi runtime.

I guess that dev:restart command does something else that instructs the framework to restart. Typically this operation is closely linked with the framework startup scripts. So please consult the Karaf documentation how restart should work.
                
> Restarting the framework from the web console does not work
> -----------------------------------------------------------
>
>                 Key: FELIX-3468
>                 URL: https://issues.apache.org/jira/browse/FELIX-3468
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: webconsole-3.1.8
>            Reporter: Hugh Rodgers
>
> I am running Karaf v2.2.5 (which uses felix web console v3.1.8) on Windows 7. Once I start karaf (using the karaf.bat script), I go to the web console and click on the System Information tab. I then click the Restart button and Ok in its popup. I see in the Karaf command line console that Karaf shuts down and restarts. When I click in the command line console and press return (to get a prompt), the command line console window disappears and Karaf shuts down.
> When I try this with Karaf v2.2.5 and only install the webconsole feature, when I click Restart, the Karaf command line console disappears and Karaf shuts down (never comes back up).
> I have reproduced this issue with Karaf v2.2.5 and only loading the following bundles:
> <feature name="saxon" version="${saxon.bundle.plugin}">
>     <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/${saxon.bundle.plugin}</bundle>
>   </feature>
>  
>   <feature name="commons-io" version="${commons-io.version}">
>     <bundle>mvn:commons-io/commons-io/${commons-io.version}</bundle>
>   </feature>
>  
>   <feature name="slf4j-ext" version="${org.slf4j-ext.version}">
>     <bundle>mvn:org.slf4j/slf4j-ext/${org.slf4j-ext.version}</bundle>
>   </feature>
>  
>   <feature name="ops4j-base-lang" version="${org.ops4j-base-lang}">
>     <bundle start-level='70'>mvn:org.ops4j.base/ops4j-base-lang/${org.ops4j-base-lang}</bundle>
>   </feature>
>  
>   <feature name="ops4j-swissbox" version="${org.ops4j.pax.swissbox.version}">
>   <feature version="${org.ops4j-base-lang}">ops4j-base-lang</feature>
>     <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-lifecycle/${org.ops4j.pax.swissbox.version}</bundle>
>                 <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-optional-jcl/${org.ops4j.pax.swissbox.version}</bundle>
>                 <bundle start-level='70'>mvn:org.ops4j.pax.swissbox/pax-swissbox-extender/${org.ops4j.pax.swissbox.version}</bundle>
>   </feature>
> The dev:restart command works from the Karaf command line console, and it works if I issue it from a second terminal window using the Karaf client.bat script.
> At this point, I have yet to see the Restart button in the web console work properly.
> Thanks. 

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