This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes EJB Object Null Pointer Exception Inside JAX-WS Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "EJB Object Null Pointer Exception Inside JAX-WS Web Service " Watch "EJB Object Null Pointer Exception Inside JAX-WS Web Service " New topic
Author

EJB Object Null Pointer Exception Inside JAX-WS Web Service

peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
Hello to all, I'm tried to develop a web service application that utilize EJB function inside web service class but the EJB object is null during run time.

I'm configure the web service using Spring Application Context. Is there any problem with it?

Code:


Web.xml


Beans.xml


What is the reason the ejb ojbect is null? Is it relate to Spring DI of CreditCardService class but does not instantiate the ejb object?

What is the purpose of CXF servlet? Is it use to handle web service request?

Please help.

Thanks.










 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB Object Null Pointer Exception Inside JAX-WS Web Service
 
Similar Threads
Error with web.xml
WebServiceContext or handle to session in CXF JAX-RS implementation
Missing CXF plugins??
How to change jetty binding port number in maven.
Webservice deploy problem