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

Piyush Paramane
Greenhorn

Joined: Jul 17, 2012
Posts: 5
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

Joined: Jul 05, 2012
Posts: 30

Hi Piyush,

Welcome to java ranch....Provide some more information.Post the class code which is giving you this error....
Piyush Paramane
Greenhorn

Joined: Jul 17, 2012
Posts: 5
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation
 
Similar Threads
Endpoint.Publish clarification
class $Proxy(...) has neither @WebSerivce nor @WebServiceProvider annotation exception
java.lang.IllegalArgumentException: class has neither @WebSerivce nor @WebServiceProvider annotation
Error: class has no annotation
Axis2 Webserivce