jboss7与struts2整合出现 vfs路径问题的解决方法

修改xwork-core.jar包的源文件:com.opensymphony.xwork2.util.URLUtil ,增加public static final String JBOSS7_VFS = "vfs",并修改isJBoss5Url方法为:

final String protocol = fileUrl.getProtocol();
        return JBOSS7_VFS.equals(protocol)||JBOSS5_VFSZIP.equals(protocol) || JBOSS5_VFSMEMORY.equals(fileUrl.getProtocol())
                || ("true".equals(System.getProperty("jboss.vfs.forceVfsJar")) && JBOSS5_VFSFILE.equals(fileUrl.getProtocol()));

猜你喜欢

转载自blog.csdn.net/haofeng82/article/details/7854330