2016-07-06 2 views
-1

Tomcat 6을 사용하고 Java jdk1.8.0_92로 업그레이드했습니다. 하지만 Tomcat 서버에서 웹 애플리케이션을 실행할 때. 이 오류가 발생합니다.Tomcat 6 with Java 8 JSP 컴파일 오류 제공

Stacktrace:] with root cause 
org.apache.jasper.JasperException: Unable to compile class for JSP: 

내 URL localhost를 열 때 :이 펜타 호 BI 서버의 inbuild 버전이기 때문에 내가 톰캣 6 변경할 수 없습니다 8080

HTTP Status 500 - 

type Exception report 

message 

description The server encountered an internal error() that prevented it from fulfilling this request. 

exception 

org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP 
    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156) 
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) 
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) 
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
root cause 

org.apache.jasper.JasperException: Unable to load class for JSP 
    org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:630) 
    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) 
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) 
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) 
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
root cause 

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp 
    java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) 
    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) 
    org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628) 
    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) 
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) 
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) 
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs. 

Apache Tomcat/6.0.29 

합니다. 이 문제를 해결할 수있는 방법이 있습니까? 감사.

+0

jdk 버전 1.7과 1.8을 모두 설치할 수 있습니다. 그런 다음 1.7으로 Tomcat을 시작하고 실행할 수 있으며 1.8으로 다른 것들을 할 수 있습니다. –

+0

당신은 jdk를 설치할 필요가 없습니다. jre 1.7이 tomcat을 실행하기에 충분해야합니다. –

답변

0

귀하의 jdk 업그레이드와 관련이 없습니다.
당신이 다음과 같은 두 가지 오류 :
JSP

java.lang.ClassNotFoundException가에 대한 클래스를 컴파일 할 수 없습니다 : org.apache.jsp.index_jsp

대부분의 경우, 당신은 오류에 index.jsp 파일을 컴파일 할 수 없도록하십시오.
jsp 파일에 오류가 없는지 확인하십시오.