Unable to compile class for JSP

Unable to compile class for JSP

org.apache.jasper.JasperException: Unable to compile class for JSP:
JSP FileName:/jspinfo.jsp
Java FileName:/C:/Tomcat/work/Catalina/localhost/_//org/apache/jsp\jspinfo_jsp.java

An error occurred at line: 48 in the jsp file: /jspinfo.jsp
Syntax error on token "enum", delete this token
45:   </TR>
46:   <%
47:         ServletContext context = getServletContext();
48:         Enumeration enum = context.getAttributeNames();
49:         while (enum.hasMoreElements()) {
50:             String key = (String)enum.nextElement();
51:             Object value = context.getAttribute(key);

JSP FileName:/jspinfo.jsp
Java FileName:/C:/Tomcat/work/Catalina/localhost/_//org/apache/jsp\jspinfo_jsp.java

An error occurred at line: 49 in the jsp file: /jspinfo.jsp
Syntax error on token "enum", invalid Expression
46:   <%
47:         ServletContext context = getServletContext();
48:         Enumeration enum = context.getAttributeNames();
49:         while (enum.hasMoreElements()) {
50:             String key = (String)enum.nextElement();
51:             Object value = context.getAttribute(key);
52:             out.println("<TR bgcolor=#DEEEF8><TD>" + key + "</TD><TD>" + value + "</TD></TR>";

JSP FileName:/jspinfo.jsp
Java FileName:/C:/Tomcat/work/Catalina/localhost/_//org/apache/jsp\jspinfo_jsp.java

An error occurred at line: 50 in the jsp file: /jspinfo.jsp
Syntax error on token "enum", delete this token
47:         ServletContext context = getServletContext();
48:         Enumeration enum = context.getAttributeNames();
49:         while (enum.hasMoreElements()) {
50:             String key = (String)enum.nextElement();
51:             Object value = context.getAttribute(key);
52:             out.println("<TR bgcolor=#DEEEF8><TD>" + key + "</TD><TD>" + value + "</TD></TR>";
53:         }


Stacktrace:
        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:9
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:29
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.

哪为大虾帮我看看,这到底是什么原因,我都做了1天了,可能是环境变量问题,我改过还是没用,或者是版本问题,我用的JDK1,5。TOMCAT5,5,25
把 enum 换个名字吧, java1.5后的关键字。