본문 바로가기
error log

org.apache.jasper.JasperException: JSP를 위한 클래스를 컴파일할 수 없습니다.

by 바까 2023. 7. 21.
반응형

JasperException

에러 사항 :

org.apache.jasper.JasperException: JSP를 위한 클래스를 컴파일할 수 없습니다.:

해결 방법 :

Tomcat 8.5/conf/web.xml 파일 열기

org.apache.jasper.servlet.JspServlet 찾기

<init-param> 
   <param-name>mappedfile</param-name> 
   <param-value>false</param-value> 
</init-param>

<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>
<init-param>
<param-name>mappedfile</param-name>
<param-value>false</param-value>
</init-param>
    <load-on-startup>3</load-on-startup>
</servlet>
반응형

댓글