[jboss-user] [Beginners Corner] - Re: org.apache.jasper.JasperException: Unable to compile cla

alamandrax do-not-reply at jboss.com
Fri Aug 10 05:15:46 EDT 2007


Hi jaikiran,

Thank you for the prompt reply. I did find the thread which dealt with modifying the $JBOSS_HOME\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml file and had made the modifications to check if it had any effect. I keep getting the same error again.

Is there anything else that I need to do? I did have some older Tomcat versions on my computer, but I have deleted them all. I've removed the CATALINA_HOME environment variable for the heck of it.

Apart from these, during the server startup, I get the following errors. I'm not sure if they're relevant but am including them here just in case.

14:33:32,599 INFO  [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
  | 14:33:32,605 INFO  [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\javax.servlet.jsp.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
  | 14:33:32,613 INFO  [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\jsp-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
  | 14:33:32,641 INFO  [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
  | 14:33:34,279 INFO  [STDOUT] 14:33:34,279 INFO  [util.PropertyMessageResources] Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
  | 14:33:34,283 INFO  [STDOUT] 14:33:34,283 INFO  [util.PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
  | 14:33:37,194 INFO  [STDOUT] 14:33:37,194 INFO  [servlet.ICVStartupServlet] Iniating ICV Startup Sequence

I'm pasting the errors that I see in my browser here again (with the root cause this time)

org.apache.jasper.JasperException: Unable to compile class for JSP
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | The type List is not generic; it cannot be parameterized with arguments <String>
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Syntax error, parameterized types are only available if source level is 5.0
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | The type List is not generic; it cannot be parameterized with arguments <String>
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Syntax error, parameterized types are only available if source level is 5.0
  | 
  | An error occurred at line: 320 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Incompatible conditional operand types Long and String
  | 
  | An error occurred at line: 326 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Incompatible conditional operand types Long and String
  | 
  | 
  | 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
  | 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
  | 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
  | 	org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
  | 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
  | 	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
  | 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause 
  | org.apache.jasper.JasperException: Unable to compile class for JSP
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | The type List is not generic; it cannot be parameterized with arguments <String>
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Syntax error, parameterized types are only available if source level is 5.0
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | The type List is not generic; it cannot be parameterized with arguments <String>
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Syntax error, parameterized types are only available if source level is 5.0
  | 
  | An error occurred at line: 320 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Incompatible conditional operand types Long and String
  | 
  | An error occurred at line: 326 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Incompatible conditional operand types Long and String
  | 
  | 
  | 	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
  | 	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
  | 	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
  | 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
  | 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
  | 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
  | 	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
  | 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
  | 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
  | 	org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
  | 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
  | 	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
  | 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072923#4072923

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072923



More information about the jboss-user mailing list