Hi Srijith, This sort of error happens when you have more than one provider of the Servlet API. In this case your application is binding to a different exporter of the Servlet API than what's being used by Jetty. It's usually simplest to just have the one javax.servlet bundle exporting the Servlet API in an application. HTH -Simon
|------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |"Srijith Kochunni" <ksrij...@novell.com> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |<equinox-dev@eclipse.org> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |06/09/2010 06:51 AM | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |[equinox-dev] Jetty Servlet Unavailable Exception | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Sent by: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |equinox-dev-boun...@eclipse.org | >--------------------------------------------------------------------------------------------------------------------------------------------------| 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. _______________________________________________ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev