开发者

Web service authentication using https giving error

开发者 https://www.devze.com 2023-03-30 23:17 出处:网络
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 cre

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.开发者_StackOverflow中文版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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号