Web service authentication using https giving erro

2019-05-11 06:51发布

I have written a simple web service and used digest and HTTPS authentication to secure it. I have generated my certificate using keytool present in Java. When I deploy the web-service in Tomcat by creating a .war file, the welcome page of axis is properly being displayed, but when I click on services its giving the following error,

javax.servlet.ServletException: https is forbidden
org.apache.axis2.transport.http.AxisServlet.preprocessRequest(AxisServlet.java:612)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

The error is not being displayed when I deploy a website with a servlet. The problem is appearing only when I deploy the axis web services.

1条回答
2楼-- · 2019-05-11 07:31

If you want to use https, then you need to set up axis2.xml as described in the following document:

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

查看更多
登录 后发表回答