我将我的webapp(使用GWT编写并使用远程过程调用(RPC))部署到OpenShift
。
如果我访问我的应用程序,则调用RPC。我检查了日志文件,结果是以下异常:
java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService
有谁知道,如何解决这个问题?我使用Maven构建我的应用程序(mvn clean install
)
答案 0 :(得分:1)
请在pom.xml
中添加相关性。替换以下依赖项中的${gwtVersion}
。
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
<scope>runtime</scope>
</dependency>
再次执行相同步骤mvn clean install