title: RuntimeCamelException due to org.apache.cxf.feature.Feature not present
body: <p>I am trying example given at <a href="http://camel.apache.org/cxf-example.html" rel="nofollow">http://camel.apache.org/cxf-example.html</a>  My configuration is like </p>
  
  <p>'</p>
  
  <pre><code>&lt;cxf:cxfEndpoint id="cxfTutorialWebService"
                     address="/CXFTutorialWebService"
                     serviceClass="com.example.tutorial.ws.TutorialWebServiceImpl"
                     wsdlURL="wsdl/TutorialService.wsdl"
                     serviceName="c:TutorialWebService"
             endpointName="c:TutorialWebService"                 xmlns:c="http://example.com/tutotial/TutorialWebService/"&gt;
            &lt;cxf:properties&gt;
              &lt;entry key="ws-security.callback-handler" value-ref="keystorePasswordCallback"/&gt;
              &lt;entry key="ws-security.encryption.properties" value-ref="keystoreProperties"/&gt;
              &lt;entry key="ws-security.signature.properties" value-ref="keystoreProperties"/&gt;
              &lt;entry key="ws-security.encryption.username" value="useReqSigCert"/&gt;
              &lt;entry key="schema-validation-enabled" value="true" /&gt;
            &lt;/cxf:properties&gt;
            &lt;cxf:inInterceptors&gt;
              &lt;bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/&gt;
            &lt;/cxf:inInterceptors&gt;
  
        &lt;cxf:outInterceptors&gt;
          &lt;bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/&gt;
        &lt;/cxf:outInterceptors&gt;
   &lt;/cxf:cxfEndpoint&gt;
  
   &lt;bean id="tutorialService" class="com.example.tutorial.ws.TutorialService"/&gt;
  
   &lt;camelContext id="test_context" xmlns="http://camel.apache.org/schema/spring"&gt;
        &lt;route&gt;
          &lt;from uri="cxf:bean:cxfTutorialWebService"/&gt;
          &lt;to uri="bean:tutorialService?method=processSoap"/&gt;
        &lt;/route&gt;
  &lt;/camelContext&gt;`
  </code></pre>
  
  <p>where <code>com.example.tutorial.ws.TutorialWebServiceImpl</code> is working fine with <code>jaxws:endpoint id="tutorialWebService"</code> But I want this web service request to invoke Camel route. So I am trying to create a <code>&lt;cxf:cxfEndpoint&gt;</code> as shown above. But I on starting the webapp in Tomcat I am getting exception as </p>
  
  <pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxfTutorialWebService': Initialization of bean failed; nested exception is java.lang.TypeNotPresentException: Type org.apache.cxf.feature.Feature not present
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079) ~[spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.apache.camel.spring.spi.ApplicationContextRegistry.lookupByNameAndType(ApplicationContextRegistry.java:47) ~[camel-spring-2.13.0.jar:2.13.0]
  at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByNameAndType(PropertyPlaceholderDelegateRegistry.java:63) ~[camel-core-2.13.0.jar:2.13.0]
  ... 43 common frames omitted
  Caused by: java.lang.TypeNotPresentException: Type org.apache.cxf.feature.Feature not present
  at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) ~[na:1.7.0_15]
  at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) ~[na:1.7.0_15]
  at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) ~[na:1.7.0_15]
  at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) ~[na:1.7.0_15]
  at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) ~[na:1.7.0_15]
  at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) ~[na:1.7.0_15]
  at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94) ~[na:1.7.0_15]
  at java.lang.reflect.Method.getGenericParameterTypes(Method.java:291) ~[na:1.7.0_15]
  at java.beans.FeatureDescriptor.getParameterTypes(FeatureDescriptor.java:387) ~[na:1.7.0_15]
  at java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:114) ~[na:1.7.0_15]
  at java.beans.MethodDescriptor.&lt;init&gt;(MethodDescriptor.java:72) ~[na:1.7.0_15]
  at java.beans.MethodDescriptor.&lt;init&gt;(MethodDescriptor.java:56) ~[na:1.7.0_15]
  at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1130) ~[na:1.7.0_15]
  at java.beans.Introspector.getBeanInfo(Introspector.java:414) ~[na:1.7.0_15]
  at java.beans.Introspector.getBeanInfo(Introspector.java:161) ~[na:1.7.0_15]
  at java.beans.Introspector.getBeanInfo(Introspector.java:248) ~[na:1.7.0_15]
  at java.beans.Introspector.&lt;init&gt;(Introspector.java:395) ~[na:1.7.0_15]
  at java.beans.Introspector.getBeanInfo(Introspector.java:161) ~[na:1.7.0_15]
  at org.springframework.beans.CachedIntrospectionResults.&lt;init&gt;(CachedIntrospectionResults.java:224) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:305) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:312) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1208) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1069) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
  ... 49 common frames omitted
  Caused by: java.lang.ClassNotFoundException: org.apache.cxf.feature.Feature
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) ~[catalina.jar:7.0.41]
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) ~[catalina.jar:7.0.41]
  at java.lang.Class.forName0(Native Method) ~[na:1.7.0_15]
  at java.lang.Class.forName(Class.java:266) ~[na:1.7.0_15]
  at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) ~[na:1.7.0_15]
  ... 73 common frames omitted
  </code></pre>
  
  <p>I could not find which jar to get <code>org.apache.cxf.feature.Feature</code> Please provide some suggestions</p>
  
  <p>Thanks</p>