zoukankan      html  css  js  c++  java
  • Axis2从http到https

    axis2 如果需要进行 https 访问,需要加入全局配置文件 axis2.xml (Axis2 下提供了三种配置文件,第一种是整个系统的全局配置 axis2.xml,第二种是服务配置 services.xml,第三种是模块配置 module.xml),默认该文件是存储在 /WEB-INF/conf/axis2.xml (或 /WEB-INF/axis2.xml)。axis2.xml 文件可以在 axis2 的开发包下获取。

    修改发布的axis2.xml, 搜索transportReceiver标签

        <transportReceiver name="http"
                           class="org.apache.axis2.transport.http.SimpleHTTPServer">
            <parameter name="port">8080</parameter>
        </transportReceiver>

    将其修改为:

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

    遇到的错误

    1、javax.servlet.ServletException: org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing

    解决方法:到 axis2.xml 中查找

    <!-- Comment this to disable Addressing -->
    <module ref="addressing"/>

    将 addressing 的引用注释掉。

    2、https is forbidden

    解决方法:核实 axis2.xml 文件位置是否正确,默认是在 WEB-INF/conf/axis2.xml,以及 axis2.xml 中是否配置了 https。

    解决问题中参考的文章有

    https://axis.apache.org/axis2/java/core/docs/servlet-transport.html#Configuring_axis2.xml

    https://www.cnblogs.com/alfredinchange/p/5389657.html

    https://blog.csdn.net/shiwenqing/article/details/7768939

    https://blog.csdn.net/suamt/article/details/9376607

  • 相关阅读:
    在source insight中阅读Python代码
    修改linux命令行提示符
    gcc链接程序时出现undefined reference to""错误
    [转]init.d解析
    [转]Linux中find常见用法示例
    Linux的网卡由eth0变成了eth1,如何修复?
    测试使用Windows Live Writer
    黑盒测试
    白盒测试技术(二)
    白盒测试技术(一)
  • 原文地址:https://www.cnblogs.com/breeze-zZ/p/14873663.html
Copyright © 2011-2022 走看看