HTTP Status 500 - Unable to compile class for JSP:

type Exception report

message Unable to compile class for JSP:

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: 

An error occurred at line: 42 in the jsp file: /www_root/ar03/templates/Ar03Alphabetical.jsp
Duplicate local variable prefix
39: {%>
40: <ul class="stdMargin">
41: <%
42: String prefix;
43: String grade;
44: String name;
45: String artnr;


An error occurred at line: 43 in the jsp file: /www_root/ar03/templates/Ar03Alphabetical.jsp
Duplicate local variable grade
40: <ul class="stdMargin">
41: <%
42: String prefix;
43: String grade;
44: String name;
45: String artnr;
46: String erpNr;


An error occurred at line: 44 in the jsp file: /www_root/ar03/templates/Ar03Alphabetical.jsp
Duplicate local variable name
41: <%
42: String prefix;
43: String grade;
44: String name;
45: String artnr;
46: String erpNr;
47: String killHtmlStart = "(?is)^.*?<body[^>]*>";


An error occurred at line: 45 in the jsp file: /www_root/ar03/templates/Ar03Alphabetical.jsp
Duplicate local variable artnr
42: String prefix;
43: String grade;
44: String name;
45: String artnr;
46: String erpNr;
47: String killHtmlStart = "(?is)^.*?<body[^>]*>";
48: String killHtmlEnd = "(?is)</body.*$";


An error occurred at line: 46 in the jsp file: /www_root/ar03/templates/Ar03Alphabetical.jsp
Duplicate local variable erpNr
43: String grade;
44: String name;
45: String artnr;
46: String erpNr;
47: String killHtmlStart = "(?is)^.*?<body[^>]*>";
48: String killHtmlEnd = "(?is)</body.*$";
49: 	


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:199)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:450)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:401)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:345)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.14 (Debian) logs.


Apache Tomcat/8.0.14 (Debian)