It seems to works fine. I reproduce the problem, insert the jar in my
Eclipse libraries and run with success my app (using multiple servlet
classes).
I have not noticed other problems in my application but it not a
proof ;-)
Thank you
Gilles.

On 24 mar, 04:45, Scott Blum <[email protected]> wrote:
> Hey, can you guys do me a favor and try out a fix?
>
> Just take the attached jar and put it on your classpath ahead of
> gwt-dev-<platform>.jar.  See if it fixes the "not and instance of Servlet"
> problem (and doesn't cause other problems).
>
> Lemme know if that works, thanks,
> Scott
>
> On Sun, Mar 22, 2009 at 10:14 AM, Gilles B <[email protected]>wrote:
>
>
>
>
>
> > I have the same problem with Hibernate. When I check the error line in
> > jetty classes sources using Jade I see that my Servlet class is not an
> > instance of "javax.servlet.Servlet", but this seems to be false
> > looking to my servlet class inheritance.
>
> > In fact this problem is due to a duplication of Servlet class in my
> > libraries. Inside Eclise I check it using Ctl-Shift-T to find class
> > Servlet locations, This class appears in "servlet-api.jar" but also
> > inside GWT libraries. Il solve it removing "servlet-api.jar", I
> > presume the Servlet class version doesn't match between jetty and the
> > class version my compiler generate. May be you have something close to
> > this with your servlet. May be an upgraded jar version, a change in
> > libraries order or removeing duplicate (if it's not necessary) help to
> > solve.
>
> > On 19 mar, 14:03, magbyr <[email protected]> wrote:
> > > I'm having the same problem. Same project worked well on 1.5.3, but
> > > not on 1.6RC.
>
> > > Fails on jsp and default servlet from
> > Jetty:javax.servlet.UnavailableException: Servlet class
> > > org.apache.jasper.servlet.JspServlet is not a
> > javax.servlet.Servletjavax.servlet.UnavailableException: Servlet class
> > > org.mortbay.jetty.servlet.DefaultServlet is not a
> > > javax.servlet.Servlet
>
> > > Have you found a solution yet?
>
> > > wiltonj skrev:
>
> > > > Hi,
> > > > I have a problem (exception) when add "spring.jar" in my project gwt
> > > > 1.6 (WEB-INF/lib).
>
> > > >  javax.servlet.UnavailableException: Servlet class
> > > > org.apache.jasper.servlet.JspServlet is not a javax.servlet.Servlet
> > > >    at org.mortbay.jetty.servlet.ServletHolder.checkServletType
> > > > (ServletHolder.java:377)
> > > >    at
> > org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
> > > > 234)
> > > >    at org.mortbay.component.AbstractLifeCycle.start
> > > > (AbstractLifeCycle.java:39)
> > > >    at org.mortbay.jetty.servlet.ServletHandler.initialize
> > > > (ServletHandler.java:616)
> > > >    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> > > >    at org.mortbay.jetty.webapp.WebAppContext.startContext
> > > > (WebAppContext.java:1220)
> > > >    at org.mortbay.jetty.handler.ContextHandler.doStart
> > > > (ContextHandler.java:513)
> > > >    at
> > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
> > > > 448)
> > > >    at br.gov.senado.lib.util.jetty.CustomJettyLauncher
> > > > $WebAppContextWithReload.doStart(CustomJettyLauncher.java:387)
> > > >    at org.mortbay.component.AbstractLifeCycle.start
> > > > (AbstractLifeCycle.java:39)
> > > >    at org.mortbay.jetty.handler.HandlerWrapper.doStart
> > > > (HandlerWrapper.java:130)
> > > >    at org.mortbay.jetty.handler.RequestLogHandler.doStart
> > > > (RequestLogHandler.java:115)
> > > >    at org.mortbay.component.AbstractLifeCycle.start
> > > > (AbstractLifeCycle.java:39)
> > > >    at org.mortbay.jetty.handler.HandlerWrapper.doStart
> > > > (HandlerWrapper.java:130)
> > > >    at org.mortbay.jetty.Server.doStart(Server.java:222)
> > > >    at org.mortbay.component.AbstractLifeCycle.start
> > > > (AbstractLifeCycle.java:39)
> > > >    at br.gov.senado.lib.util.jetty.CustomJettyLauncher.start
> > > > (CustomJettyLauncher.java:437)
> > > >    at
> > com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:367)
> > > >    at
> > com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
> > > >    at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
> > > >    at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
>
> > --------------------------------------------------------------------------
> > > > [WARN] Failed startup of context
> > > > br.gov.senado.lib.util.jetty.CustomJettyLauncher
> > > > $webappcontextwithrel...@1f5b5fd{/,D:\Prodasen\ADMU\admu\war}
> > > > org.mortbay.util.MultiException: Multiple exceptions
> > > >    at org.mortbay.jetty.servlet.ServletHandler.initialize
> > > > (ServletHandler.java:587)
> > > >    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> > > >    at org.mortbay.jetty.webapp.WebAppContext.startContext
> > > > (WebAppContext.java:1220)
> > > >    at org.mortbay.jetty.handler.ContextHandler.doStart
> > > > (ContextHandler.java:513)
> > > >    at
> > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
> > > > 448)
> > > >    at br.gov.senado.lib.util.jetty.CustomJettyLauncher
> > > > $WebAppContextWithReload.doStart(CustomJettyLauncher.java:387)
> > > >    at org.mortbay.component.AbstractLifeCycle.start
> > > > (AbstractLifeCycle.java:39)
>
> > ---------------------------------------------------------------------------
> > > > Spring WebApplictation initialization completed... But, the
> > > > application not start...
>
> > > > INFO: Using context class
> > > > [org.springframework.web.context.support.XmlWebApplicationContext] for
> > > > root WebApplicationContext
> > > > Root WebApplicationContext: initialization completed in 157 ms
>
> > > > Thanks in advance for your help!
> > > > Wilton- Masquer le texte des messages précédents -
>
> > > - Afficher le texte des messages précédents -
>
>
>
>  gwt-dev-patch.jar
> 25KAfficherTélécharger- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to