tomcat报错请求的代码超过了65535字节限制。
1、操作程序,从tomcat的日志文件里查到报错信息如下:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 158 in the generated java file
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit.
2、这是因为tocmat请求的url地址过长导致的,修改tomcat的web.xml文件后,程序恢复正常
3、在:
<init-param>
<param-name>enablePooling</param-name>
<param-value>false</param-value>
</init-param>
下添加
<init-param>
<param-name>mappedfile</param-name>
<param-value>false</param-value>
</init-param>
重启tomat即可恢复正常
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:45
阅读量:40
阅读量:70
阅读量:83
阅读量:92