The code that throws this exception looks as follows in 1.6.0:

TransportInDescription transportInDescription =
    req.isSecure()?
this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTPS) :
        this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTP);

if (transportInDescription == null){
    throw new ServletException(req.getScheme() + " is forbidden");
} else {
    ...
}

If transport receivers for both http and https are declared correctly
in axis2.xml, then transportInDescription can't be null and the
exception is never thrown.

Andreas

On Tue, Aug 30, 2011 at 23:33, Bala Rajamani <bala.rajam...@gmail.com> wrote:
> I tried creating "axis2.xml" with the following entries (for both http and
> https and placed under ../WEB-INF) but no luck.
>
> <transportReceiver name="http"
> class="org.apache.axis2.transport.http.AxisServletListener">
>     <parameter name="port">80</parameter>
> </transportReceiver>
>
> <transportReceiver name="https"
> class="org.apache.axis2.transport.http.AxisServletListener">
>     <parameter name="port">443</parameter>
> </transportReceiver>
>
> Also based on this thread, I tried the same steps on both axis 1.6.0 and
> 1.5.5 no luck either:
>
> http://mail-archives.apache.org/mod_mbox/axis-java-user/201101.mbox/%3cc9fc78520befcb438ccf2e0101a7a8050263acd...@exchange07.scdc.local%3E
>
> On Tue, Aug 30, 2011 at 5:21 PM, Andreas Veithen <andreas.veit...@gmail.com>
> wrote:
>>
>> Please refer to the relevant documentation:
>>
>> http://axis.apache.org/axis2/java/core/docs/servlet-transport.html
>>
>> Andreas
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to