zoukankan      html  css  js  c++  java
  • Liferay 6.2 改造系列之二十一:修改WebSphare下JSONWS服务不生效的BUG

    问题原因是WebSphare下,servletContext.getContextPath()获取到的值为“/”而非空字符串。

    在/portal-master/portal-impl/src/com/liferay/portal/spring/context/PortalContextLoaderListener.java文件中有如下代码:

    if (ServerDetector.isWebSphere() &&_portalServletContextPath.isEmpty()) {
        _portalServlerContextName = StringPool.BLANK;
    }
    

    修改为:

    if (ServerDetector.isWebSphere() &&(_portalServletContextPath.isEmpty() ||
        _portalServletContextPath.equals(StringPool.SLASH))) {
        _portalServletContextPath = StringPool.BLANK;
        _portalServlerContextName = StringPool.BLANK;
    }
    

      

  • 相关阅读:
    Vue
    Vue
    Vue
    Vue
    Vue
    kubernetes
    kubernetes
    kubernetes
    django源码bug解决方案
    UNI-APP 桌面LOGO角标设置(ios)
  • 原文地址:https://www.cnblogs.com/luoruiyuan/p/5788625.html
Copyright © 2011-2022 走看看