This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Piyush Paramane
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using JDK 1.6 and eclipse indigo along with Oracle Weblogic server 11gR1(10.3.5).
My REST Impl class has annotation @WebServiceProvider, but still while publishing the server i am getting this exception.

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

Any help regarding this?
Let me know if need any further info.

Thanks,
Piyush
 
Shivom Shukla
Ranch Hand
Posts: 77
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Piyush,

Welcome to java ranch....Provide some more information.Post the class code which is giving you this error....
 
Piyush Paramane
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shivom,

the class which is giving me this error has annotation, it is like below,



But it seems that Weblogic is not able to read the annotation?
Is this much information is sufficient?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic