569 Star 1.5K Fork 718

黄勇 / smart-framework

 / 详情

ERROR org.smart4j.framework.util.WebUtil (169) - 发送错误代码出错!

待办的
创建于  
2014-11-28 13:07

13:03:42,426 ERROR org.smart4j.framework.util.WebUtil (169) - 发送错误代码出错!
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:450)
at org.smart4j.framework.util.WebUtil.sendError(WebUtil.java:167)
at org.smart4j.framework.mvc.impl.DefaultHandlerExceptionResolver.resolveHandlerException(DefaultHandlerExceptionResolver.java:46)

评论 (3)

在tomcat+nginx下部署,访问首页报错。

smart.framework.app.home_page=/login

15:14:17,283 ERROR org.smart4j.framework.util.WebUtil (145) - 转发请求出错!
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: In URL tags, when the "context" attribute is specified, values of both "context" and "url" must start with "/".

Caused by: javax.servlet.ServletException: In URL tags, when the "context" attribute is specified, values of both "context" and "url" must start with "/".
The problem is that the "context" attribute of the "<c:url />" tag cannot have an empty value. The empty value is returned by the "${requestContext.request.contextPath}" expression (see the Servlet API::HttpServletRequest.getContextPath() to know the reason).

对应global.jsp中的<c:set var="BASE" value="${pageContext.request.contextPath}"/>

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
4903 sb007007 1663005296
Java
1
https://gitee.com/huangyong/smart-framework.git
git@gitee.com:huangyong/smart-framework.git
huangyong
smart-framework
smart-framework

搜索帮助