You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by asookazian2 <as...@gmail.com> on 2015/05/06 00:09:54 UTC

WebServiceContext is null after upgrading to Karaf 3.0.3

Suddenly we are getting NPE for WebServiceContext instance in code that has
not changed before or after the Karaf 3.0.3 upgrade (culprit most likely is
cxf 3.0.4).  This is causing a web service call from web client to fail.

We are using followin code:

javax.xml.ws.WebServiceContext foo;

Considering replacing with following code (as we really only need
MessageContext to get HTTP request headers):

//@Context
@Resource
javax.xml.ws.handler.MessageContext foo;

We are not using @Context anywhere in our codebase however it was
recommended here to use it:

http://t80463.apache-cxf-user.apachetalks.us/webservicecontext-is-null-t80463.html
<http://t80463.apache-cxf-user.apachetalks.us/webservicecontext-is-null-t80463.html>  

It will not resolve when I try to organize imports in my Eclipse
project/workspace.

any help appreciated.  thx.



--
View this message in context: http://karaf.922171.n3.nabble.com/WebServiceContext-is-null-after-upgrading-to-Karaf-3-0-3-tp4040185.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: WebServiceContext is null after upgrading to Karaf 3.0.3

Posted by asookazian2 <as...@gmail.com>.
@Context is specific to JAXRS and this is SOAP WS so that is not applicable
here.



--
View this message in context: http://karaf.922171.n3.nabble.com/WebServiceContext-is-null-after-upgrading-to-Karaf-3-0-3-tp4040185p4040186.html
Sent from the Karaf - User mailing list archive at Nabble.com.