GWT in eclipse javax.jws.WebMethod not supported by Google App Engine Java app runtime

I have created a GWT application in eclipse using the GWT eclipse plugin. By default, GreetingServiceAsync.java and GreetingService.java were created in the client package. GreetingServiceImpl.java in the server package.

Now I want to call a CXF web service from GreetingServiceImpl.java. I used wsdl2java to generate Java classes for my wsdl. I imported this generated class into my GWT project in eclipse and the package is "service". But it complains, "javax.jws.WebMethod is not supported by the Google App Engine Java Application Runtime", many more errors.

How can I get rid of this?

The error is only if the application is working fine.

0


a source to share


1 answer


Is javax.jws.WebMethod

GAE a whitelist ? If you are sure that this class is actually supported in App Engine, then in Eclipse try:

  • Right click on the project in the Project Explorer.
  • Google -> App Engine Settings

  • Make sure Use Google App Engine is checked .
  • Try changing the App Engine SDK to the latest rev if the dialog shows multiple files


I had this problem after doing Software Update; a new GAE SDK was installed and for some reason it confused the plugin. I was told java.lang.String

not supported. :-)

+1


a source







All Articles