gwt javax.servlet.ServletContext log: Exception while dispatching incoming RPC call creating mapdb db

783 Views Asked by At

Hi i take the MyWEbApp of GWT and tryed ok it worked, i needed to make a mapdb database, I imported mapDB and only added in server:

File utilizzo = new File("tipregotipregotiprego");
DB db;
db = DBMaker.newFileDB(utilizzo).closeOnJvmShutdown().make();

but it give me that error:

GRAVE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.mycompany.mywebapp.client.GreetingService.greetServer(java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: org/mapdb/DBMaker at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)

1

There are 1 best solutions below

5
On

Looks like that a jar is missing

Service method 'public abstract java.lang.String com.mycompany.mywebapp.client.GreetingService.greetServer(java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception:

java.lang.NoClassDefFoundError: org/mapdb/DBMaker