Exception while injecting EJBContext
I'm using weblogic server 12.1.1 and I have this normal interceptor which has a field annotaded by
private EJBContext ctx
this field is injected properly when not using Weld, but when using weld I get the following excption
java.lang.IllegalArgumentException: Can not set javax.ejb.EJBContext field com.acme.InterceptorBean.ctx to weblogic.jndi.internal.WLEventContextImpl
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
at java.lang.reflect.Field.set(Field.java:680)
at org.jboss.weld.introspector.jlr.WeldFieldImpl.set(WeldFieldImpl.java:88)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:136)