Oracle Weblogic Server (MOSC)

MOSC Banner

Exception while injecting EJBContext

edited Aug 9, 2012 10:56PM in Oracle Weblogic Server (MOSC) 4 commentsAnswered
Hi.

I'm using weblogic server 12.1.1 and I have this normal interceptor which has a field annotaded by

@Resource

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)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center