Dev_Log

[Tomcat] The Code of method_jspService is exceeding the 65535 bytes limit

LeeDaniel 2021. 2. 16. 10:07
The Code of method_jspService is exceeding the 65535 bytes limit

JSP의 파일사이즈가 초과됐을때 발생

 

✔ Solution

톰캣 web.xml

<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
아래부분에

<!-- JSP용량제한 해제 -->
<init-param>
  <param-name>mappedfile</param-name>
  <param-value>false</param-value>
</init-param>

내용 추가
<servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    
    <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>
 
    <!-- JSP용량제한 해제 -->
    <init-param>
    	<param-name>mappedfile</param-name>
        <param-value>false</param-value>
    </init-param>  
<servlet>
728x90
반응형