Here are the docs written by Andriy Redko (CC-ed)

http://cxf.apache.org/docs/using-cxf-and-cdi-11-jsr-346.html

Sergey

On 03/07/16 22:02, Sergey Beryozkin wrote:
Hi

Here are the system CDI tests :

https://github.com/apache/cxf/tree/master/systests/cdi

They run OK.

Here is some info about CXF and the shade plugin:

http://cxf.apache.org/docs/bundling-cxf-into-single-jar-with-maven-shade-plugin.html


Let us know if that helps

Cheers, Sergey

On 03/07/16 00:43, John D. Ament wrote:
I'm using CXF 3.1.6, Weld 2.3.5 and Jetty latest.

When starting my app, I get the following stacktrace.  The only
dependency
I added was for the CDI module in CXF, everything else looked transitive.
I create a shaded JAR, and everything is getting packed in there
properly.

John

org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:215)

at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)

at
org.apache.cxf.cdi.JAXRSCdiResourceExtension.load(JAXRSCdiResourceExtension.java:98)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)
at
org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)

at
org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)

at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:309)

at
org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)

at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:287)

at
org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:265)

at
org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:302)

at
org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:291)
at
org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:160)

at
org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)

at
org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)

at
org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)

at
org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)

at
org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:449)
at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)

at org.jboss.weld.environment.se.Weld.initialize(Weld.java:585)
at org.jboss.weld.environment.se.StartMain.go(StartMain.java:44)
at org.jboss.weld.environment.se.StartMain.main(StartMain.java:53)
Caused by: org.apache.cxf.BusException: No DestinationFactory was
found for
the namespace http://cxf.apache.org/transports/http.
at
org.apache.cxf.bus.managers.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:122)

at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:79)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:63)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:170)

... 24 more

at
org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:37)

at
org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)

at
org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:449)
at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)

at org.jboss.weld.environment.se.Weld.initialize(Weld.java:585)
at org.jboss.weld.environment.se.StartMain.go(StartMain.java:44)
at org.jboss.weld.environment.se.StartMain.main(StartMain.java:53)




--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to