This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes class [...] has neither @WebService nor @WebServiceProvider annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "class [...] has neither @WebService nor @WebServiceProvider annotation" Watch "class [...] has neither @WebService nor @WebServiceProvider annotation" New topic
Author

class [...] has neither @WebService nor @WebServiceProvider annotation

Brian Mulholland
Ranch Hand

Joined: Mar 12, 2009
Posts: 61
I am learning web services with wsdl. I have a helloworld working which is fine. But as soon as I try to make the service spring managed and inject my hibernate classes, I get:



But my TransService DOES have @WebService. Here's what it looks like right now (I've changed a few things as I've experimented trying to solve the problem).



My app-config says:



Am I doing this wrong?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: class [...] has neither @WebService nor @WebServiceProvider annotation