Thursday, March 9, 2017

How to avoid warning "Server class xyz could not be found in the web app, but was found on the system classpath"?

Hello,

I am getting this warning in a GWT application project:

[WARN] Server class 'mylib.MyClass' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/path/to/mylib/target/classes/' to the web app classpath for this session

Note that the library "mylib" is included in the application project like this:
  • added mylib.jar to the classpath in the application project
  • added the mylib eclipse project as a dependend project to the allplication project in eclipse
Why am I getting this warning?

I assume that the "system classpath" also includes the classes in mylib. So there could be a lot of classes in the "system classpath" which I actually don't use in this application project. Why does the compiler check if all available classes are actually used?

And finally: How can I eliminate this warning?

Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment