This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes JAX WS: WebServiceContext not getting populated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX WS: WebServiceContext not getting populated" Watch "JAX WS: WebServiceContext not getting populated" New topic
Author

JAX WS: WebServiceContext not getting populated

Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279
In my JAX WS webservice "WebServiceContext" variable is not getting populated. This is what I have done



When I call this service method, the context is displayed as null in the server logs.
Can someone please let me know how to resolve this?

Thank you
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Are those all annotations you have on service endpoint implementation class?
If your service is not running on the JavaEE platform, then this annotation is required, in order for resource injection to be performed.
If you are running on the JavaEE platform, then the rules in JSR-244 apply. See http://jcp.org/en/jsr/detail?id=244
Additional reference: JAX-WS 2.1 Specification, section 5.3
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX WS: WebServiceContext not getting populated
 
Similar Threads
how to read config file when web service starts up
NullPointerException Trying to Get RemoteIP (why?)
JAX-WS @Resrouce injection still not working
WebServiceContext or handle to session in CXF JAX-RS implementation
How to get Session context in RESTFul services