10 Replies Latest reply on May 1, 2007 3:17 PM by Michael Pelz Sherman

    java 5.0 features in JSP problem

    mathias Newbie

      Hello,

      I am running 4.0.4RC1 on Fedora with java 1.5.0_06, and the EJB3 install.

      I have an EJB-method that returns a List and a JSP that does
      ist users= feed.getLastLogins();

      I can compile and build fine, but when i deploy and try to call the JSP, i get the following trace:


      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: 19 in the jsp file: /testejb.jsp
      Generated servlet error:
      The type List is not generic; it cannot be parameterized with arguments

      An error occurred at line: 19 in the jsp file: /testejb.jsp
      Generated servlet error:
      Syntax error, parameterized types are only available if source level is 5.0


      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:409)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
      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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



      I can't see why this is the case, to me it should work... Do i need to configure something differently, or is this a bug?

      As always grateful for pointers. Thanks,

      /Mathias af Jochick