Restful Web service - java.lang.NoSuchMethodError concat(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable -
i trying 1 restful web service example when going hit url time getting below exception
java.lang.nosuchmethoderror: jersey.repackaged.com.google.common.collect.iterables.concat(ljava/lang/iterable;ljava/lang/iterable;)ljava/lang/iterable; org.glassfish.jersey.server.internal.confighelper.getcontainerlifecyclelistener(confighelper.java:92) org.glassfish.jersey.servlet.servletcontainer.init(servletcontainer.java:172) org.glassfish.jersey.servlet.servletcontainer.init(servletcontainer.java:363) javax.servlet.genericservlet.init(genericservlet.java:158) org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:505) org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103) org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:956) org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:423) org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1079) org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:625) org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:316) java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) java.lang.thread.run(thread.java:724)
below jars using
this sort of error caused having older version of guava (or google-collections) on classpath in addition newer version you're trying use.
this answer should find , eliminate it.
Comments
Post a Comment