wood burning stoves 2.0*
The moose likes Web Services and the fly likes Generate a WS from Spring Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Generate a WS from Spring Service" Watch "Generate a WS from Spring Service" New topic
Author

Generate a WS from Spring Service

Frank Hamilton
Greenhorn

Joined: Jan 19, 2011
Posts: 21
Hello,
I have developed one web app make with Spring and JPA. I want to create a Web Service from one Spring Service of the app, but I not sure if this is possible .

Here is the basic code:

The persistence context:

The Spring Service Interface:

The implementation:

The persistence entity:


I try to make the *.aar file with eclipse axis2 plugin but when I try to request any service I get a NullPointerException maybe because getEntityManager return null.
The *.aar file contains all necessary lib.

This is the error in catalina.out:


Can someone help me with this. What is the error? Can I generate the Web Service from this code with eclipse axis2 plugin?
Or maybe need I used Spring "ServletEndpointSupport" ?

Any idea or any web reference.
TIA.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generate a WS from Spring Service
 
Similar Threads
javax.xml.bind.JAXBException in Axis2 Web Service
Override AbstractFacade ?!
persist() null pointer exception
Mapping qname not fond for the package: org.hibernate.collection
Help with JPA