This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Web Services and the fly likes JaxWs Support in Spring? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JaxWs Support in Spring?" Watch "JaxWs Support in Spring?" New topic

JaxWs Support in Spring?

Tom Fielding

Joined: Aug 07, 2006
Posts: 2

I've made a small webapp in Tomcat with Spring and Hibernate. Now I wanted to test JaxWs, so I tried to expose some of my service methods as webservices. Everything went fine until my client program tries to execute my service methods. It uses an instance of the service that is not the one used by spring. Because of this my DAO's aren't injected in the service instance, so I get a NullPointerException.
Around a month ago I had the same problem with Axis(JaxRpc), but I solved this by creating a proxy that extended ServletEndPointSupport(a Spring support class for JaxRpc). Then I could reference the instances of my services that were managed by Spring.

Is their some kind of support for JaxWs in Spring? Or does someone know a workaround?

Thanks in advance!
Kind regards,
Tom Fielding

Joined: Aug 07, 2006
Posts: 2

I did some search on the web and especially on the forums of JAXWS and spring and it seems that there isn't support for JAXWS yet. So I'll just have to wait.

Unless somebody else knows a solution??

I agree. Here's the link:
subject: JaxWs Support in Spring?
jQuery in Action, 3rd edition