【问题标题】:How to configure axis2 POJOs for HTTPS transport?如何为 HTTPS 传输配置axis2 POJO?
【发布时间】:2017-11-27 23:27:06
【问题描述】:

在使用 SHA-2 证书设置服务器后,我收到以下关于 axis2 POJO 的错误:

javax.servlet.ServletException: https is forbidden
  at org.apache.axis2.transport.http.AxisServlet.preprocessRequest(AxisServlet.java:637)
  at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:247)

我的服务是 POJO,所以没有 axis2.xml 来配置 HTTPS 传输。有没有其他方法可以配置axis2以允许HTTPS?

该服务在 HTTP 上运行良好。

【问题讨论】:

    标签: https axis2 pojo


    【解决方案1】:

    您可能遗漏了我在下面粘贴在您的axis2.xml 上的内容

     <transportReceiver name="https" class="org.apache.axis2.transport.http.AxisServletListener">
       <parameter name="port">8443</parameter>
    </transportReceiver>
    

    【讨论】:

      猜你喜欢
      • 2020-07-22
      • 1970-01-01
      • 2021-10-31
      • 2016-05-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-09
      • 2017-10-04
      • 2016-07-28
      相关资源
      最近更新 更多