| 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
|
|
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
|
 |
 |
|
|
subject: java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation
|
|
|