0 Replies Latest reply on Apr 25, 2002 12:33 AM by Chad Brandon

    Error with Jetty when uploading

    Chad Brandon Newbie

      I have a struts application that uploads a file to a server. The upload worked correctly in JBoss3.0.0alpha , but now using JBoss3.0RC (with Jetty) I'm getting the following error when trying to forward to another page in my Action class after the upload completes:

      22:22:53,293 WARN [Jetty] WARNING: Servlet Exception for /doms/filesystem/fileU
      pload.doms
      java.lang.IllegalArgumentException: Does not wrap ServletHttpRequest
      at org.mortbay.jetty.servlet.ServletHttpRequest.unwrap(ServletHttpReques
      t.java:859)
      at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:182)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:156)
      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
      java:972)
      at org.apache.struts.action.RequestProcessor.processActionForward(Reques
      tProcessor.java:408)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
      va:269)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:110
      9)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326
      )
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
      95)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1357)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1309)
      at org.mortbay.http.HttpServer.service(HttpServer.java:744)
      at org.jboss.jetty.Jetty.service(Jetty.java:527)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:743)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:916)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:758)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      145)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      at java.lang.Thread.run(Thread.java:536)

      Has anyone else seen this or know what's causing this?

      Thanks!

      Chad