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.

Reply via email to