异常---is exceeding the 65535 bytes limit

来源:互联网 发布:java quartz 日志级别 编辑:程序博客网 时间:2024/06/07 15:21

tomcat启动项目 如下:

2017-06-05 15:11:20 [org.apache.struts2.dispatcher.Dispatcher]-[ERROR] Exception occurred during processing request: Unable to compile class for JSP: An error occurred at line: 47 in the generated java fileThe code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limitStacktrace:org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 47 in the generated java fileThe code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limitStacktrace:at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:443)at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)


修改tomcat/conf/web.xml

    <servlet>        <servlet-name>jsp</servlet-name>        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class><init-param>            <param-name>mappedfile</param-name>            <param-value>false</param-value>        </init-param>        <init-param>            <param-name>fork</param-name>            <param-value>false</param-value>        </init-param>        <init-param>            <param-name>xpoweredBy</param-name>            <param-value>false</param-value>        </init-param>        <load-on-startup>3</load-on-startup>    </servlet>


阅读全文
0 0
原创粉丝点击