I have installed the JavaEE edition of Eclipse 4.4 (Luna) and it contains a validator that generates the invalid errors (4144 items that haven't been a problem in 5 years of production use) for web services:
@WebMethod
is only supported on classes annotated with @WebService
@WebService
annotation contains an endpointInterface attribute. No methods annotated with @WebMethod
allowed in implementation classThese errors are prevalent in generated classes so there's little we can do about them (for now).
In order to make my Eclipse installation useful, I'd like to disable the plugin that generates these messages. As we use CXF to generate the web service classes, I have removed the CXF plugins from my Eclipse installation to no avail. I have looked in the settings to see if I can disable the generated warnings for web services but failed to discover these specific errors.
Even disabling all validations in the Preferences→Validation pane still keeps the APT web services validation enabled. Even suspending all validations doesn't do the trick.
The errors don't contain any information as to which plugin is responsible for them. So the question is two fold:
The plugin responsible for generating these errors is: org.eclipse.jst.ws.jaxws.core_1.0.400.v201404292132.jar
according to the code search I did (specifically the WebMethodCheckForWebServiceRule class
is responsible for one of the generated errors)
I found that I can get rid of these validation errors by going to project properties>Java compiler>Annotation processing and then disabling annotation processing for the project. Tested on Eclipse Luna.
I hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With