org.eclipse.jetty.servlet.ServletHolder$1: java.lang.ClassCastException: com.sun.jersey.spi.container.servlet.ServletContainer cannot be cast to javax.servlet.Servlet          at org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:408)

cloudbbs.org | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    请教使用Jersey类库时遇到ClassCastException - Java - 云计算开发者社区 - Powered by Discuz!

    cloudbbs.org | 7 months ago
    org.eclipse.jetty.servlet.ServletHolder$1: java.lang.ClassCastException: com.sun.jersey.spi.container.servlet.ServletContainer cannot be cast to javax.servlet.Servlet          at org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:408)

    Root Cause Analysis

    1. org.eclipse.jetty.servlet.ServletHolder$1

      java.lang.ClassCastException: com.sun.jersey.spi.container.servlet.ServletContainer cannot be cast to javax.servlet.Servlet          at org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:408)

      at com.sina.sae.servlet.SaeServletHolder.initServlet()
    2. com.sina.sae
      SaeServletHolder.initServlet
      1. com.sina.sae.servlet.SaeServletHolder.initServlet(SaeServletHolder.java:56)
      1 frame
    3. Jetty
      ServletHolder.doStart
      1. org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:260)
      1 frame