4 Replies Latest reply on Aug 30, 2010 3:08 AM by muellerc

    ode and webconsole issues with apache-servicemix-4.3.0-fuse-00-00

    chikkala

      Hi

       

      I have downloaded apache-servicemix-4.3.0-fuse-00-00 on winxp and tried to start the Apache ODE that is included in that bits.  It looks like the version included is 1.3.4, but not mentioned in the release notes.

       

      Is this version (1.3.4) of the Apache ODE fully supported? 

       

      When I installed the ode feature (features:install ode), it did not install the ode karaf commands. Is this missing or omitted intentionally?

       

      Is OSGi based deployment for the Apache ODE is supported in this version of fuse ESB?

       

      Another issues is enabling the webconsole feature (features:install webconsole). When I install this feature I got the following output on the karaf console

       

      karaf@root> features:install webconsole

      2010-08-24 11:14:54.275:INFO::jetty-6.1.x

      2010-08-24 11:14:54.290:INFO::Started NIOSocketConnectorWrapper@0.0.0.0:8181

      2010-08-24 11:14:54.369:INFO::jetty-6.1.x

      2010-08-24 11:14:54.400:INFO::Started NIOSocketConnectorWrapper@0.0.0.0:8181

      2010-08-24 11:14:54.494:WARN:/:org.ops4j.pax.web.service.spi.model.ServletModel-2: unbindHttpService: Failed unregisteri

      ng Resources

      java.lang.IllegalStateException: ResourceModel{id=org.ops4j.pax.web.service.spi.model.ResourceModel-3,name=/res,urlPatte

      rns=[/system/console/res/*],alias=/system/console/res,servlet=ResourceServlet{context=/,alias=/system/console/res,name=/

      res},initParams={},context=ContextModel{id=org.ops4j.pax.web.service.spi.model.ContextModel-1,name=,httpContext=org.apac

      he.felix.webconsole.internal.servlet.OsgiManagerHttpContext@48669e,contextParams={}}} was not found

              at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.removeServlet(JettyServerImpl.java:236)

              at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.removeServlet(ServerControllerImpl.java

      :253)

              at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.removeServlet(ServerControllerImpl.java:104)

              at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:233)

              at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:70)

              at org.apache.felix.webconsole.internal.servlet.OsgiManager.unbindHttpService(OsgiManager.java:686)

              at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:768)

              at org.apache.felix.webconsole.internal.servlet.ConfigurationListener.updated(ConfigurationListener.java:66)

              at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1112)

              at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)

      RE: org.apache.felix.framework.resolver.ResolveException: Constraint violation for package 'jline' when resolving module

      189.0 between existing import 161.0.jline BLAMED ON [[189.0] package; (&(package=jline)(version>=0.9.0))] and uses cons

      traint 9.0.jline BLAMED ON [[189.0] package; (&(package=org.apache.karaf.shell.console.jline)(version>=2.0.0))]

      karaf@root>

       

      A minor issue is that when use "list" karaf command first time, it printed the following info message on the console

       

      karaf@root> 2010-08-24 11:12:40.093:INFO::Logging to STDERR via org.mortbay.log.StdErrLog

       

      Regards,

      Srinivasan Chikkala

        • 1. Re: ode and webconsole issues with apache-servicemix-4.3.0-fuse-00-00
          muellerc

          I have the same issue by installing the webconsole feature on Mac OS 10.6.4 and Java 1.6.0_20 (Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065), Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)).

           

          karaf@root> features:install webconsole
          2010-08-28 10:35:45.213:INFO::jetty-6.1.x
          RE: org.apache.felix.framework.resolver.ResolveException: Constraint violation for package 'jline' when resolving module 179.0 between existing import 161.0.jline BLAMED ON [[179.0] package; (&(package=jline)(version>=0.9.0))] and uses constraint 9.0.jline BLAMED ON [[179.0] package; (&(package=org.apache.karaf.shell.console.jline)(version>=2.0.0))]
          2010-08-28 10:35:45.238:INFO::Started NIOSocketConnectorWrapper@0.0.0.0:8181
          karaf@root> 2010-08-28 10:35:45.306:INFO::jetty-6.1.x
          2010-08-28 10:35:45.325:INFO::Started NIOSocketConnectorWrapper@0.0.0.0:8181
          2010-08-28 10:35:45.387:WARN:/:org.ops4j.pax.web.service.spi.model.ServletModel-2: unbindHttpService: Failed unregistering Resources
          java.lang.IllegalStateException: ResourceModel{id=org.ops4j.pax.web.service.spi.model.ResourceModel-3,name=/res,urlPatterns=[/system/console/res/*],alias=/system/console/res,servlet=ResourceServlet{context=/,alias=/system/console/res,name=/res},initParams={},context=ContextModel{id=org.ops4j.pax.web.service.spi.model.ContextModel-1,name=,httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@215bfaa5,contextParams={}}} was not found
                  at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.removeServlet(JettyServerImpl.java:236)
                  at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.removeServlet(ServerControllerImpl.java:253)
                  at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.removeServlet(ServerControllerImpl.java:104)
                  at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:233)
                  at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:70)
                  at org.apache.felix.webconsole.internal.servlet.OsgiManager.unbindHttpService(OsgiManager.java:686)
                  at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:768)
                  at org.apache.felix.webconsole.internal.servlet.ConfigurationListener.updated(ConfigurationListener.java:66)
                  at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1112)
                  at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
          

           

          Is there already a JIRA issue for this or should we open a JIRA?

           

          Regards,

          Christian

          • 2. Re: ode and webconsole issues with apache-servicemix-4.3.0-fuse-00-00
            muellerc

            Ok, I found the ticket: KARAF-162.

             

            Is there a workaround for Karaf 2.0.0 and FUSE ESB 4.3?

             

            Regards,

            Christian

            • 3. Re: ode and webconsole issues with apache-servicemix-4.3.0-fuse-00-00
              ffang

              Hi,

               

              The potential resolve conflict actually from jruby bundle, which is only used for servicemix-scripting feature.

              So if your application doesn't use servicemix-scripting JBI component at all, the workaround here I can come up with is just edit SMX_HOME/etc/org.apache.karaf.features.cfg,

              remove servicemix-scripting from featuresBoot property.

               

              Freeman

              • 4. Re: ode and webconsole issues with apache-servicemix-4.3.0-fuse-00-00
                muellerc

                Hello Freeman,

                 

                I can confirm this workaround. It's a practicable workaround for us, because we mainly use camel inside SMX.

                 

                Thanks,

                Christian