aspose file tools*
The moose likes Web Services and the fly likes java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation 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 "java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation" Watch "java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation" New topic
Author

java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation

udaya krishna
Ranch Hand

Joined: Mar 19, 2009
Posts: 46

Hi I have just started on webservices and while running a simple program from Java webservices up and running(O Reilly) book i encountered (java.lang.IllegalArgumentException: class ch01.ts.TimeServerPublisher has neither @WebSerivce nor @WebServiceProvider annotation.Here is teh code that I have written so far:


Any suggestions would be helpful.
Thanks

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

How you compile/generate the artifacts? And how you run the code, your environment etc...?

People may not have the book you are referring to with them so some background may needed here...


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Tina Smith
Ranch Hand

Joined: Jul 21, 2011
Posts: 171
    
    5

Are you sure you want this:

and not this:


Everything is theoretically impossible, until it is done. ~Robert A. Heinlein
udaya krishna
Ranch Hand

Joined: Mar 19, 2009
Posts: 46

Hi thanks for the response..I am using eclipse IDE and jdk 6.0(jdk1.6.0_22) for compiling and running the code on windows XP..And Tina, I changed

to

thats a silly one ..Its working now . I am able to access the wsdl..and am i the only one who noticed @WebService misspelled as @WebSerivce :0
Thanks for the help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation