Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Tina Smith
Ranch Hand
Posts: 208
9
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you want this:

and not this:
 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic