Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/384.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java GWT-RemoteEventServiceServlet-编译错误_Java_Gwt - Fatal编程技术网

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