aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring 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.










 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Object Null Pointer Exception Inside JAX-WS Web Service