• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generate a WS from Spring Service

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic