I assumed this would happen, based on Bill's email.  you'll probably
need to extend the CdiInjectorFactory to use your own BeanManager.

On Tue, Nov 26, 2013 at 1:58 PM, Christian Helmbold
<christian.helmb...@yahoo.de> wrote:
> Thank you. After adding one more dependency (javax.servlet-api), I get the 
> following error, when I try to start my RESTEasy/Weld configuration:
>
> Exception in thread "main" java.lang.RuntimeException: Unable to instantiate 
> InjectorFactory implementation.
>     at 
> org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:156)
>     at 
> org.jboss.resteasy.plugins.server.netty.NettyJaxrsServer.start(NettyJaxrsServer.java:130)
>     at com.example.jaxrscdi.App.run(App.java:25)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at 
> org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)
>     at 
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:266)
>     at 
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)
>     at 
> org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:232)
>     at 
> org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:169)
>     at 
> org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:165)
>     at 
> org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:119)
>     at 
> org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:112)
>     at org.jboss.weld.event.EventImpl.fire(EventImpl.java:83)
>     at org.jboss.weld.environment.se.Weld.initialize(Weld.java:153)
>     at org.jboss.weld.environment.se.StartMain.go(StartMain.java:41)
>     at org.jboss.weld.environment.se.StartMain.main(StartMain.java:52)
> Caused by: java.lang.NullPointerException
>     at 
> org.jboss.resteasy.cdi.CdiInjectorFactory.lookupBeanManager(CdiInjectorFactory.java:155)
>     at 
> org.jboss.resteasy.cdi.CdiInjectorFactory.<init>(CdiInjectorFactory.java:45)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>     at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>     at java.lang.Class.newInstance(Class.java:374)
>     at 
> org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:148)
>     ... 18 more
>
>
> Any idea?
>
> Regards,
> Christian
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to