You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bala Rajamani <ba...@gmail.com> on 2011/08/30 23:15:05 UTC

Axis2 403 forbidden error over SSL in WebSphere

I'm trying to configure Axis2 (1.6.0) Web Services frame work in WebSphere
6.1 but encountering a 403 forbidden error especially when I try configure
the Web Service over SSL.
I saw there is a known issue in 1.6.0 and has been fixed in 1.5.5 but
encountering the error in 1.5.5 as well.

Wondering is't a known issue of using Axis2 (over SSL) in WebSphere? Any
help is greatly appreciated.

ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service
methods of the servlet: AxisServlet. Exception thrown :
javax.servlet.ServletException: https is forbidden
 at java.lang.Throwable.<init>(Throwable.java:195)
 at java.lang.Exception.<init>(Exception.java:41)
 at javax.servlet.ServletException.<init>(ServletException.java:107)
 at
org.apache.axis2.transport.http.AxisServlet.preprocessRequest(AxisServlet.java:637)
 at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:247)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1219)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
 at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
 at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574)
 at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
 at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
 at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
 at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
 at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
 at
com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
 at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)
 at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)
 at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)
 at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)

Thanks in advance,

Re: Axis2 403 forbidden error over SSL in WebSphere

Posted by Bala Rajamani <ba...@gmail.com>.
I've added the transport receivers entries in axis2.xml under /conf folder
and seem to be working fine.

Thanks for the help.

Re: Axis2 403 forbidden error over SSL in WebSphere

Posted by Bala Rajamani <ba...@gmail.com>.
The web service requests on HTTP are working fine but unable to configure on
HTTPS and also not seeing calls pointing to the HTTPS transport but
still eencountering the error "https is forbidden" but http is fine.

Also I understand axis2.xml entries are working on the Tomcat environment on
HTTP and HTTPs, wondering are there known issues with WebSphere environment?

Thanks in advance,

On Tue, Aug 30, 2011 at 5:58 PM, Andreas Veithen
<an...@gmail.com>wrote:

> 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 <ba...@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/%3CC9FC78520BEFCB438CCF2E0101A7A8050263ACD155@Exchange07.scdc.local%3E
> >
> > On Tue, Aug 30, 2011 at 5:21 PM, Andreas Veithen <
> andreas.veithen@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-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: Axis2 403 forbidden error over SSL in WebSphere

Posted by Andreas Veithen <an...@gmail.com>.
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 <ba...@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/%3CC9FC78520BEFCB438CCF2E0101A7A8050263ACD155@Exchange07.scdc.local%3E
>
> On Tue, Aug 30, 2011 at 5:21 PM, Andreas Veithen <an...@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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: Axis2 403 forbidden error over SSL in WebSphere

Posted by Bala Rajamani <ba...@gmail.com>.
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/%3CC9FC78520BEFCB438CCF2E0101A7A8050263ACD155@Exchange07.scdc.local%3E

On Tue, Aug 30, 2011 at 5:21 PM, Andreas Veithen
<an...@gmail.com>wrote:

> Please refer to the relevant documentation:
>
> http://axis.apache.org/axis2/java/core/docs/servlet-transport.html
>
> Andreas
>
>

Re: Axis2 403 forbidden error over SSL in WebSphere

Posted by Andreas Veithen <an...@gmail.com>.
Please refer to the relevant documentation:

http://axis.apache.org/axis2/java/core/docs/servlet-transport.html

Andreas

On Tue, Aug 30, 2011 at 23:15, Bala Rajamani <ba...@gmail.com> wrote:
> I'm trying to configure Axis2 (1.6.0) Web Services frame work in WebSphere
> 6.1 but encountering a 403 forbidden error especially when I try configure
> the Web Service over SSL.
> I saw there is a known issue in 1.6.0 and has been fixed in 1.5.5 but
> encountering the error in 1.5.5 as well.
>
> Wondering is't a known issue of using Axis2 (over SSL) in WebSphere? Any
> help is greatly appreciated.
>
> ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service
> methods of the servlet: AxisServlet. Exception thrown :
> javax.servlet.ServletException: https is forbidden
>  at java.lang.Throwable.<init>(Throwable.java:195)
>  at java.lang.Exception.<init>(Exception.java:41)
>  at javax.servlet.ServletException.<init>(ServletException.java:107)
>  at
> org.apache.axis2.transport.http.AxisServlet.preprocessRequest(AxisServlet.java:637)
>  at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:247)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1219)
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
>  at
> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
>  at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574)
>  at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
>  at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
>  at
> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
>  at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
>  at
> com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
>  at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)
>  at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)
>  at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)
>  at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)
>  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
>
> Thanks in advance,

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