Wednesday, 15 July 2015

rest - Exception While instantiating Jetty and Jersey -



rest - Exception While instantiating Jetty and Jersey -

i getting below error while instantiating jetty , jersey. can suggest me cause of issue?

info: pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@32e6e9c3: defining beans [org.springframework.context.annotation.internalconfigurationannotationprocessor,org.springframework.context.annotation.internalautowiredannotationprocessor,org.springframework.context.annotation.internalrequiredannotationprocessor,org.springframework.context.annotation.internalcommonannotationprocessor,processingenginesvc,secfilters,application,org.springframework.context.annotation.configurationclasspostprocessor.importawareprocessor]; root of mill hierarchy slf4j: failed load class "org.slf4j.impl.staticloggerbinder". slf4j: defaulting no-operation (nop) logger implementation slf4j: see http://www.slf4j.org/codes.html#staticloggerbinder farther details. nov 02, 2014 8:49:23 pm com.sun.jersey.server.impl.application.webapplicationimpl _initiate info: initiating bailiwick of jersey application, version 'jersey: 1.9 09/02/2011 11:17 am' exception in thread "main" java.lang.nosuchmethoderror: com.sun.jersey.core.reflection.reflectionhelper.classforname(ljava/lang/string;)ljava/lang/class; @ com.sun.jersey.server.impl.modelapi.annotation.introspectionmodeller.workoutpostconstructpredestroy(introspectionmodeller.java:223) @ com.sun.jersey.server.impl.modelapi.annotation.introspectionmodeller.createresource(introspectionmodeller.java:130) @ com.sun.jersey.server.impl.application.webapplicationimpl.getabstractresource(webapplicationimpl.java:745) @ com.sun.jersey.server.impl.application.webapplicationimpl.getabstractresource(webapplicationimpl.java:739) @ com.sun.jersey.server.impl.application.webapplicationimpl.createabstractresourcemodelstructures(webapplicationimpl.java:1517) @ com.sun.jersey.server.impl.application.webapplicationimpl._initiate(webapplicationimpl.java:1295) @ com.sun.jersey.server.impl.application.webapplicationimpl.access$700(webapplicationimpl.java:169) @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:775) @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:771) @ com.sun.jersey.spi.inject.errors.processwitherrors(errors.java:193) @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:771) @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:766) @ com.sun.jersey.spi.container.servlet.servletcontainer.initiate(servletcontainer.java:488) @ com.sun.jersey.spi.container.servlet.servletcontainer$internalwebcomponent.initiate(servletcontainer.java:318) @ com.sun.jersey.spi.container.servlet.webcomponent.load(webcomponent.java:609) @ com.sun.jersey.spi.container.servlet.webcomponent.init(webcomponent.java:210) @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:373) @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:556) @ javax.servlet.genericservlet.init(genericservlet.java:244) @ org.eclipse.jetty.servlet.servletholder.initservlet(servletholder.java:613) @ org.eclipse.jetty.servlet.servletholder.initialize(servletholder.java:396) @ org.eclipse.jetty.servlet.servlethandler.initialize(servlethandler.java:869) @ org.eclipse.jetty.servlet.servletcontexthandler.startcontext(servletcontexthandler.java:298) @ org.eclipse.jetty.server.handler.contexthandler.dostart(contexthandler.java:742) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.server.server.start(server.java:388) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.server.server.dostart(server.java:355) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68)

most of issue of kind:

"java.lang.nosuchmethoderror:"

occurs when there library compatibility issue. might have jersey-core , jersey-server library version mismatch. need check , create sure have both libraries compatible each other.

rest jersey jetty jetty-9

No comments:

Post a Comment