felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3468) Restarting the framework from the web console does not work
Date Wed, 18 Apr 2012 08:01:05 GMT

    [ 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

        

Mime
View raw message