ClassNotFoundException when deploying GWT-RPC-Applicaton to OpenShift
Question
I deployed my webapp (written with GWT and using Remote Procedure Calls (RPC)) to OpenShift
.
If I access my application a RPC is called. I checked the log-files and the following exception is the result:
java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService
Does anyone know, how to fix that? I used Maven to build my application (mvn clean install
)
Solution
Please add the dependency in your pom.xml
. Replace ${gwtVersion}
in below dependency.
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
<scope>runtime</scope>
</dependency>
Again do the same step mvn clean install
Please have a look at ClassNotFoundException when deploying GWT-RPC-Applicaton
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow