web services - JAX-WS is not injecting WebServiceContext -


i created web-service using jax-ws , jboss 5.1.0. @ top of service class put:

@resource private webservicecontext context; 

but when try access context in of webservice methods, nullpointerexception because context null. has idea why jax-ws not setting correctly , how solve problem?

me getting null. if using spring, add this:

<import resource="classpath:meta-inf/cxf/cxf.xml" /> <import resource="classpath:meta-inf/cxf/cxf-servlet.xml" /> 

it worked me.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -