Wednesday, December 19, 2012

Tomcat gives an Internal Server error when trying to access Axis2 web services using HTTPS. What's missing?

It is assumed that HTTPS is enabled for Tomcat by defining a Connector with a key store in the server configuration (server.xml) file. What is not working is Axis2 in that server. When we try to access a service wsdl using the web browser the Internal Server Error message is displayed.

This happens due to axis2 configuration missing the HTTPS transport receiver. Following should be added to Axis2.xml in the Tomcat Axis2 web app.
<transportReceiver name="https"
                       class="org.apache.axis2.transport.http.AxisServletListener">
        <parameter name="port">8443</parameter>
    </transportReceiver>
Ref:
[1] http://theitside.blogspot.com/2012/03/how-to-enable-https-with-axis2.html

1 comment:

Anonymous said...

Thank's that's the solution

Java8 Tomcat8 no https!
Adaptation was still necessary!?

Have a look at:
http://axis.apache.org/axis2/java/core/docs/servlet-transport.html