感谢冷月的帮助,本文是依照冷月的博客所写。冷月博客地址 http://www.huqiwen.com/2014/09/18/exception-wap-portal-status-not-found/
在EXT项目中修改 com.liferay.portal.servlet.BrowserSnifferImpl.java 内容
@Override public boolean isWapXhtml(HttpServletRequest request) { String accept = getAccept(request); if (accept.contains("wap.xhtml")) { return true; } return false; }
为
@Override public boolean isWapXhtml(HttpServletRequest request) { // String accept = getAccept(request); // // if (accept.contains("wap.xhtml")) { // return true; // } return false; }