Quantcast

Restart Framework from Web Console's System Information tab results in Karaf dying

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Restart Framework from Web Console's System Information tab results in Karaf dying

rodgersh
I am running Karaf v2.2.5 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Restart Framework from Web Console's System Information tab results in Karaf dying

Reuben Garrett
rodgersh,

is there a JIRA [1] filed for the issue you're experiencing? or if not, would you consider opening one? 

[1]: https://issues.apache.org/jira/browse/KARAF

~ Reuben

On Wed, Apr 11, 2012 at 15:49, rodgersh <[hidden email]> wrote:
I am running Karaf v2.2.5 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.

--
View this message in context: http://karaf.922171.n3.nabble.com/Restart-Framework-from-Web-Console-s-System-Information-tab-results-in-Karaf-dying-tp3903826p3903826.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Loading...