[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Jetty Servlet Unavailable Exception

Hi,


      I have a webApp which I am deploying with Equinox Jetty Server. It works fine, however at times, when I stop and start the application, I get the following exception and my Application is then not accessible.

       

2010-06-09 15:18:35.014:/MyWebApp:WARN:  unavailable

javax.servlet.UnavailableException: Servlet class com.test.MyServlet is not a javax.servlet.Servlet

        at org.mortbay.jetty.servlet.ServletHolder.checkServletType(ServletHolder.java:353)

        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:243)

        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)

        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)

        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)

        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)

        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)

        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)


     MyServlet class extends from HttpServlet and implements javax.servlet.Servlet interface. Not sure why this exception happens. My application is running in an equinox osgi runtime. Any help in this regard would be greatly appreciated.


Thanks,

Srijith.