Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
apa-webcontent-1.2
-
Maven Jetty project with a ReverseProxyServlet
Description
Currently developing against a REST service with a reverse proxy layer running on a local jetty server within maven (mvn jetty:run).
The project is currently depending on this ReverseProxyServlet. We need this fixed badly!
When performing a PUT to the REST server the following error occurs:
java.lang.ClassCastException: org.apache.http.client.methods.HttpPut cannot be cast to org.apache.http.client.methods.HttpPost
at org.apache.portals.applications.webcontent.proxy.impl.RewritableHttpReverseProxyServiceImpl.invoke(RewritableHttpReverseProxyServiceImpl.java:353)
at org.apache.portals.applications.webcontent.proxy.impl.DefaultHttpReverseProxyServlet.service(DefaultHttpReverseProxyServlet.java:463)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)