2 Replies Latest reply on Nov 25, 2011 5:36 AM by Joatham Pérez Expósito

    Fuse-cxf-se Problem org.apache.cxf.transport.jbi.JBIDestination

    Joatham Pérez Expósito Newbie

      Good morning,

       

      Currently I am using the cxf-se and cxf-su of ServiceMix. When you unfold my SA, I do not get any error. However, when I try to get the wsdl, I get the following error.

       

      In log,  I can see:

       

      2011-11-24 17:29:38,935 DEBUG org.apache.cxf.transport.http_jetty.JettyHTTPDestination:45 registering incoming observer: org.apache.servicemix.cxfbc.CxfBcConsumer$JbiChainInitiationObserver@6c07d57f

      2011-11-24 17:29:38,935 DEBUG org.apache.cxf.transport.http_jetty.JettyHTTPDestination:142 Activating receipt of incoming messages

      2011-11-24 17:29:38,936 DEBUG org.mortbay.jetty:70 Container ContextHandlerCollection@28b03831 + org.mortbay.jetty.handler.ContextHandler@7651bc41{,null} as handler

      2011-11-24 17:29:38,936 DEBUG org.mortbay.jetty:70 Container org.mortbay.jetty.handler.ContextHandler@7651bc41{,null} + JettyHTTPHandler@701e8c16 as handler

      2011-11-24 17:29:38,937 DEBUG org.mortbay.jetty:70 Container org.mortbay.jetty.handler.ContextHandler@7651bc41{,null} + ErrorHandler@23de3dfa as errorHandler

       

       

      and:

       

      2011-11-24 17:31:34,731 WARN  org.mortbay.jetty:96 EXCEPTION

      java.lang.ClassCastException: org.apache.cxf.transport.jbi.JBIDestination

              at org.apache.servicemix.cxfbc.ListServiceHandler.handle(ListServiceHandler.java:80)

              at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

              at org.mortbay.jetty.Server.handle(Server.java:320)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:561)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:891)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:430)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

              at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

        • 1. Re: Fuse-cxf-se Problem org.apache.cxf.transport.jbi.JBIDestination
          Freeman(Yue) Fang Master

          Hi,

           

          Looked at

          2011-11-24 17:31:34,731 WARN org.mortbay.jetty:96 EXCEPTION

          java.lang.ClassCastException: org.apache.cxf.transport.jbi.JBIDestination

           

          it's most likely your cxf bc consumer configuration is incorrect which pick up the wrong destination(it should be http destination but you try to load jbi destination)

          We have cxf-wsdl-first(JBI packaging) and cxf-wsdl-first-osgi-package(OSGi packaging) shipped with kit which is exactly same as your scenario, I think you need take a look and tell the difference with your own project.

           

          Freeman

          • 2. Re: Fuse-cxf-se Problem org.apache.cxf.transport.jbi.JBIDestination
            Joatham Pérez Expósito Newbie

            My scenario is as follows:

            I have ServiceMix deployed in Jboss. Libraries are shared between JBoss and ServiceMix, and I had to remove the component libraries cxf-se. When you deploy service-assemby I get the following message:

             

            Container org.mortbay.jetty.handler.ContextHandler@6407f651{,null} + ErrorHandler@1c38ba8f as errorHandler

             

            It happens exactly the same for service-assembly found in the original distribution of ServiceMix.

             

            The libraries containing the component are:

             

            <path-element> lib/servicemix-cxf-se-3.2.3.jar </ path-element>

            <path-element> lib/cxf-rt-frontend-simple-2.0.9.jar </ path-element>

            <path-element> lib/cxf-rt-frontend-jaxws-2.0.9.jar </ path-element>

            <path-element> lib/cxf-rt-bindings-xml-2.0.9.jar </ path-element

             

            The rest are contained in the cxf-bc, and share-libray jboss.