Oracle Weblogic Server (MOSC)

MOSC Banner

CDI and JAX-WS @Resource

edited Sep 27, 2012 11:14PM in Oracle Weblogic Server (MOSC) 10 commentsAnswered ✓
 Hi all !
In a JAX-WS SE class i have a field in wich i inject a @Resource to finally get the client's ip address. All is ok until I make this SE a CDI managed bean:

public class AImpl implements A {

private WebServiceContext wsContext;

        @Inject
private ADelegated delegated;

        ...
}

I deploy this app in a WebLogic 12c and I get this error:

java.lang.IllegalArgumentException: Can not set javax.xml.ws.WebServiceContext field AImpl.wsContext to weblogic.jndi.internal.WLEventContextImpl

What is incorrect in my code?

Thanks in advance for your help


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