Java GWT-RemoteEventServiceServlet-编译错误
我刚刚试着做了这个,但是我得到了编译错误 我的Java GWT-RemoteEventServiceServlet-编译错误,java,gwt,Java,Gwt,我刚刚试着做了这个,但是我得到了编译错误 我的gwt.xml非常标准: <inherits name="com.google.gwt.user.User"/> <inherits name="com.google.gwt.user.theme.standard.Standard"/> <inherits name='de.novanic.eventservice.GWTEventService' /> <entry-point
gwt.xml
非常标准:
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.google.gwt.user.theme.standard.Standard"/>
<inherits name='de.novanic.eventservice.GWTEventService' />
<entry-point class="com.mycompany.project.client.ImageViewer"/>
代码的其余部分与示例完全相同。我真的不知道是什么导致了错误。我需要查看ImageViewer的源代码。看起来您正试图在客户端上使用服务器库。@Travis感谢您的注释;我想你是对的,因为我已经将上面提到的对象替换到了客户机文件夹中,这很好;但由于某种原因,我无法运行代码;我收到这个错误[error]客户端错误:注册域的客户端时出错!com.google.gwt.user.client.rpc.StatusCodeException:404是代码问题还是某些配置?
[ERROR] Errors in 'file:/.../src/com/mycompany/project/client/
ImageViewer.java'
[ERROR] Line 82: No source code is available for type
com.mycompany.project.server.listener.MyListener; did you forget to
inherit a required module?
[ERROR] Line 83: No source code is available for type
com.mycompany.project.server.listener.MyEvent; did you forget to
inherit a required module? Finding entry point classes
[ERROR] Unable to find type 'com.mycompany.project.client.ImageViewer'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be
inheriting a required module or a module may not be
adding its source path entries properly