I think that I found the problem. I have an older servlet-api/jsp-api in the classpath.
On 9/20/2014 9:03 PM, Igal @ getRailo.org wrote: > hi, > > I'm trying to setup a Jetty server with a simple web app that contains > a couple of Servlets, and has no WAR file. the jar I'm using is > jetty-all-9.2.3.v20140905.jar, and the config is loaded /WEB-INF/web.xml > > I created a class with following in main(String[] args): > > String webroot = "./web"; > WebAppContext webapp = new WebAppContext(webroot, "/"); > > Server server = new Server(8888); > server.setHandler(webapp); > server.start(); > server.join(); > > When I call files with a pattern that is mapped to my servlet it works > fine, but when I try to call a static file, for example html, I get an > error. I expect that file to be handled by the default servlet at > org.eclipse.jetty.servlet.DefaultServlet, I get: > > HTTP ERROR: 500 > > Problem accessing /static.html. Reason: > > javax.servlet.http.HttpServletRequest.isAsyncStarted()Z > ------------------------------------------------------------------------ > /Powered by Jetty:/// > > This is the stack trace: > > 2014-09-20 20:58:30.994:WARN:oejs.HttpChannel:qtp673479470-19: > /static.html > java.lang.NoSuchMethodError: > javax.servlet.http.HttpServletRequest.isAsyncStarted()Z > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:682) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) > at org.eclipse.jetty.server.Server.handle(Server.java:497) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248) > at > org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539) > at java.lang.Thread.run(Thread.java:745) > > Any ideas? > > TIA > -- > Igal Sapir > Railo Core Developer > http://getRailo.org/ -- Igal Sapir Railo Core Developer http://getRailo.org/
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
