Hear us Roar
Article:
 |
|
Clustering and Load Balancing in Tomcat 5, Part 2
|
| Subject: |
|
getting error while running clusterapp/sessiondata.jsp |
| Date: |
|
2007-06-18 15:43:06 |
| From: |
|
121131
|
|
|
|
hi,
i am getting some weird error.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 124 in the jsp file: /sessiondata.jsp
Generated servlet error:
C:\web\tomcat50\work\Catalina\localhost\clusterapp\org\apache\jsp\sessiondata_jsp.java:177: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
java.util.Enumeration enum = session.getAttributeNames();
^
An error occurred at line: 124 in the jsp file: /sessiondata.jsp
Generated servlet error:
C:\web\tomcat50\work\Catalina\localhost\clusterapp\org\apache\jsp\sessiondata_jsp.java:178: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
while (enum.hasMoreElements()) {
^
An error occurred at line: 124 in the jsp file: /sessiondata.jsp
Generated servlet error:
C:\web\tomcat50\work\Catalina\localhost\clusterapp\org\apache\jsp\sessiondata_jsp.java:179: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
attrName = (String)enum.nextElement();
^
3 errors
-------
I am using jdk 1.5
and apache 5.0
|
|
| |