File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply 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.










 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Object Null Pointer Exception Inside JAX-WS Web Service
 
Similar Threads
Error with web.xml
How to change jetty binding port number in maven.
WebServiceContext or handle to session in CXF JAX-RS implementation
Missing CXF plugins??
Webservice deploy problem