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
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply 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
Greenhorn

Joined: Mar 19, 2009
Posts: 29

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: 3673

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: 154
    
    2

Are you sure you want this:

and not this:


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

Joined: Mar 19, 2009
Posts: 29

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation
 
Similar Threads
Compiler Error: cannot find symbol
how to switch on wsdl 2.0?
Basic of a web service client
java.lang.reflect.UndeclaredThrowableException in JBOSS with EJB 3 as a web service
Cannot find dispatch method for