Hi: Would you consider refactoring as follows? > TransportInDescription transportInDescription = > this.axisConfiguration.getTransportIn( req.isSecure() ? >Constants.TRANSPORT_HTTPS : Constants.TRANSPORT_HTTP);
Thanks. --- On Mon, 10/5/09, Andreas Veithen (JIRA) <j...@apache.org> wrote: From: Andreas Veithen (JIRA) <j...@apache.org> Subject: [jira] Resolved: (AXIS2-4516) AxisServlet error - <TRANSPORT> (e.g., http) is forbidden To: axis-dev@ws.apache.org Date: Monday, October 5, 2009, 11:30 AM [ https://issues.apache.org/jira/browse/AXIS2-4516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Veithen resolved AXIS2-4516. ------------------------------------ Resolution: Fixed Fix Version/s: 1.6 This has been fixed by Amila a couple of hours ago (see r821686). > AxisServlet error - <TRANSPORT> (e.g., http) is forbidden > --------------------------------------------------------- > > Key: AXIS2-4516 > URL: https://issues.apache.org/jira/browse/AXIS2-4516 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: transports > Affects Versions: nightly > Reporter: Denis > Fix For: 1.6 > > > 2009-10-05 20:16:32,828 [http-80-Processor23] ERROR > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2-test].[AxisServlet] > - Servlet.service() for servlet AxisServlet threw exception > javax.servlet.ServletException: http is forbidden > at > org.apache.axis2.transport.http.AxisServlet.preprocessRequest(AxisServlet.java:628) > at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:246) > ... > The code: > TransportInDescription transportInDescription = > req.isSecure()? >this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTP) : > >this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTPS); > in method "AxisServlet#private void preprocessRequest(HttpServletRequest req) > throws ServletException {...}" should be replaced by code: > TransportInDescription transportInDescription = > req.isSecure() ? >this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTPS) : > >this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTP); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com