4 Replies Latest reply on Mar 7, 2012 5:02 AM by Joatham Pérez Expósito

    Error in CXF-BC

    Joatham Pérez Expósito Newbie

      When deploy my CXB-bc I get the following error. I'm working on SMX4.3:

       

       

      ERROR | rint Extender: 3 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception

      java.lang.reflect.InvocationTargetException

           at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]

           at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]

           at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.ReferenceListRecipe.retrack(ReferenceListRecipe.java:89)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.updateListeners(AbstractServiceReferenceRecipe.java:407)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.ReferenceListRecipe.internalCreate(ReferenceListRecipe.java:75)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:624)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:315)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:213)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_29]

           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_29]

           at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_29]

           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_29]

           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_29]

           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_29]

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_29]

           at java.lang.Thread.run(Thread.java:680)[:1.6.0_29]

      Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool

           at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:234)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.retrieveEngine(JettyHTTPDestination.java:113)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:148)

           at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDestination(JettyHTTPTransportFactory.java:106)

           at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDestination(JettyHTTPTransportFactory.java:86)

           at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:132)

           at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:92)

           at org.apache.cxf.endpoint.ServerImpl.(EndpointTracker.java:81)

           at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:59)

           ... 25 more

      Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.thread.ThreadPool not found by org.apache.cxf.bundle

           at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)

           at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)

           at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_29]

           ... 36 more

        • 1. Re: Error in CXF-BC
          Freeman(Yue) Fang Master

          Hi,

           

          Please tell us how you package your SA, OSGi packaging or JBI packaging?

          We hava both examples shipped with kit, cxf-wsdl-fisrt for JBI packaging, cxf-wsdl-fist-osgi-packaging for OSGi packaging, you can take a look and tell us which kind of packaging you're using.

           

          Freeman

          • 2. Re: Error in CXF-BC
            Joatham Pérez Expósito Newbie

            I created a test service using the following components: cxf-bc and cxf-se (OSGI)( , and it works correctly, except that I see in the logs the following error:

             

            | Wrigin XML Schema for com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator@5797c0[http://test/servicios/pruebas=com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator$Namespace@d6c5da]

            com.sun.xml.bind.v2.util.StackRecorder

             

            When I create an interceptor that uses the library cxf-bundle version 2.3.2, does not show any error when deployed alone. But when deployed with the service you get the following error:

             

            08:44:53,446 | ERROR | rint Extender: 1 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception

            java.lang.reflect.InvocationTargetException

                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_20]

                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_20]

                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_20]

                 at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_20]

                 at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]

                 at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]

                 at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]

                 at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating

                 at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]

            Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool

            • 3. Re: Error in CXF-BC
              Freeman(Yue) Fang Master

              Hi,

               

              Sorry I can't understand what you mean by "deployed alone and deployed with services", could you please elaborate it?

              Anyway since you're using OSGi packaging, try simply import org.eclipse.jetty.util.thread to your customer bundle to see if it helps.

               

              Freeman

              • 4. Re: Error in CXF-BC
                Joatham Pérez Expósito Newbie

                I just wanted to say that my interceptor added to the folder / deploy. This did not show any error. The reported errors are displayed when I add the interceptor and my service.