0 Replies Latest reply on Jul 20, 2011 6:06 AM by asindic

    Problems deploying osgi bundle from the cxf-webinal

    asindic Newbie

      Hi,

      I'm trying to deploy the osgi bundle to fuse esb 4.3.1 as shown in the webinar demo:How to Deploy a Web Service into ServiceMix using CXF

      but getting NoClassDefFoundError: org/eclipse/jetty/server/Connector when starting the bundle.

      I've already install the cxf feature, do I need to install additional features/bundles?

       

      Here is the log entry:

      11:43:01,352 | ERROR | ExtenderThread-8 | ContextLoaderListener            | 73 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.fusesource.customer-ws-osgi-bundle, config=osgibundle:/META-INF/spring/*.xml))

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerService': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[62:org.springframework.context:3.0.5.RELEASE]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[72:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[72:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[72:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[72:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[73:org.springframework.osgi.extender:1.2.0]

           at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

      Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

           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.(ServerImpl.java:71)

           at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:149)

           at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)

           at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:415)

           at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:315)

           at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)

           at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:489)

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

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

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

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

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)[60:org.springframework.beans:3.0.5.RELEASE]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[60:org.springframework.beans:3.0.5.RELEASE]

           ... 14 more

      Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector

           at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[osgi-3.6.0.v20100517.jar:]

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

           ... 35 more