0

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)

8
  • Open the .war file and check if the dependency is there. Commented Apr 13, 2014 at 0:33
  • Where should it be? How would these dependencies look like? Commented Apr 13, 2014 at 0:37
  • 1
    Read java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService Commented Apr 13, 2014 at 0:38
  • Please share pom.xml. Commented Apr 13, 2014 at 0:39
  • Open as if it was a zip file (Open With > 7-Zip or whatever, on Windows). You will be able to see the .war content. Look for RemoteService.class. Edit: @Braj comment is the way to go. Commented Apr 13, 2014 at 0:40

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.