Skip to main content

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

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

Inactive hide details for "Srijith Kochunni" ---06/09/2010 06:51:14 AM---Hi,        I have a webApp which I am deploying with E"Srijith Kochunni" ---06/09/2010 06:51:14 AM---Hi, I have a webApp which I am deploying with Equinox Jetty Server. It works fine, however at


From:

"Srijith Kochunni" <ksrijith@xxxxxxxxxx>

To:

<equinox-dev@xxxxxxxxxxx>

Date:

06/09/2010 06:51 AM

Subject:

[equinox-dev] Jetty Servlet Unavailable Exception

Sent by:

equinox-dev-bounces@xxxxxxxxxxx




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@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


GIF image

GIF image


Back to the top