javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/ektorp/CouchDbInstance

150 views
Skip to first unread message

ricardo...@gmail.com

unread,
Apr 27, 2017, 1:51:45 PM4/27/17
to ektorp-discuss
Hey Guys, please Help!


String userData = "{ \"name\":\"john\"} " ;

HttpClient httpClient = new StdHttpClient.Builder()
               
.url("https://extbasicph10.podc.sl.dst.ibm.com:6984")
               
.build();

       
CouchDbInstance dbInstance = new StdCouchDbInstance(httpClient);
       
CouchDbConnector db = new StdCouchDbConnector("wwffalogs", dbInstance);

        db
.createDatabaseIfNotExists();
       
        db
.update(userData);



LOG ERROR
[ERROR   ] The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container
org/ektorp/CouchDbInstance
[ERROR   ] SRVE0777E: Exception thrown by application class 'com.sun.jersey.spi.container.servlet.WebComponent.service:420'
javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/ektorp/CouchDbInstance
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:420)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at [internal classes]
Caused by: java.lang.NoClassDefFoundError: org/ektorp/CouchDbInstance
    at com.ibm.service.cross.relay.CrossSessionHandler.send(CrossSessionHandler.java:214)
    at com.ibm.service.ffa.relay.MessageResource.send(MessageResource.java:943)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Yann ROBERT

unread,
Apr 28, 2017, 12:57:33 PM4/28/17
to ektorp-...@googlegroups.com
It's a classpath issue, you either have multiple ektorp jars in your classpath, or a corrupted jar (redownload it)


--
You received this message because you are subscribed to the Google Groups "ektorp-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ektorp-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages