超郁闷,Unable to compile class for JSP,分立马送出,不够另开贴再加.
tomcat5+jdk1.5+redhat7.3
昨天jsp页面还跑得好好的,今天新作了个jsp文件,发现就不能编译了。
测试发现修改昨天的可运行的jsp文件也不能编译,没修改的还可运行。
于是作了个最简单的test.jsp
<%@ page contentType="text/html; charset=gb2312"%>
<html><body><center>
Now time is: <%=new java.util.Date()%>
</center></body></html>
出错都一样,排除应不是程序问题,error message如下:
description:
The server encountered an internal error () that prevented it from fulfilling this request
exception :
org.apache.jasper.JasperException: Unable to compile class for JSP
root cause :
Compile failed; see the compiler error output for details.
note :
The full stack trace of the root cause is available in the Apache Tomcat/5.0.29 logs.
看log文件输出:
May 18, 2005 4:09:26 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: /usr/local/tomcat/work/Catalina/localhost/cti//org/apache/jsp/test1_jsp.java [javac] Compiling 1 source file
javac: target release 1.3 conflicts with default source release 1.5
我的classpath都设置好了,包也放在了WEB-INF/classes/packagename/下,也把jdk下的tools.jar 拷到tomcat/common/lib下了,servlet没问题。
现在是束手无策了,盼高人指点,在线等,不胜感谢。