java.lang.NoClassDefFoundError: com/google/common/base/Function

Stack Overflow | DT7 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    com/google/common/base/Function

    at org.glassfish.jersey.server.ResourceConfig.<init>()
  2. jersey-core-server
    ResourceConfig.<init>
    1. org.glassfish.jersey.server.ResourceConfig.<init>(ResourceConfig.java:350)
    1 frame
  3. jersey-container-servlet-core
    ServletContainer.init
    1. org.glassfish.jersey.servlet.WebComponent.createResourceConfig(WebComponent.java:425)
    2. org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:290)
    3. org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:167)
    4. org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:349)
    4 frames
  4. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:244)
    1 frame
  5. Jetty
    AbstractLifeCycle.start
    1. org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:532)
    2. org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:344)
    3. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    4. org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)
    5. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
    6. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
    7. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    8. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    9. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    10. org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
    11. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    12. org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    13. org.eclipse.jetty.server.Server.doStart(Server.java:282)
    14. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    14 frames
  6. Preview Server Support
    PreviewStarter.main
    1. org.eclipse.wst.server.preview.internal.PreviewStarter.run(PreviewStarter.java:72)
    2. org.eclipse.wst.server.preview.internal.PreviewStarter.main(PreviewStarter.java:29)
    2 frames