This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hmm, after referring to Ivan's notes I realized that I need to inject WebServiceContext instead of MessageContext, which I retried again but still receiving the injection failure exception as mentioned before. The surprise part is, when I tried the example given by Ivan in his material, it worked great. But in my version, I started accessing the WebServiceContext instead of mere declaration using @Resource.
Start from the example in my study notes that work and modify it step-by-step until your problem appears.
Test after each step. This way you can determine what caused injection of the context to fail.