[jboss-user] [Beginners Corner] - JBoss 4.0.4GA don't support java 5.0 new features(generics,

jk88811 do-not-reply at jboss.com
Mon Aug 28 05:45:45 EDT 2006


hello, everyone!

I use this code snippet in welcome.jsp
<%
  |     Iterator<String> categories = faqs.getAllCategories();
  |     while (categories.hasNext()) {
  |         String category = categories.next();
  |     }
  | %>
I deploy the .ear file to jboss correctly, but my browser display error message as follows.
then I use Tomcat 5.5 to deploy it stand alone, it just work!!

can anybody tells me how to configure jboss? thank you very much!

Error Message:
An error occurred at line: 12 in the jsp file: /welcome.jsp
  | Generated servlet error:
  | The type Iterator is not generic; it cannot be parameterized with arguments <String>
  | 
  | An error occurred at line: 12 in the jsp file: /welcome.jsp
  | Generated servlet error:
  | Syntax error, parameterized types are only available if source level is 5.0


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

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



More information about the jboss-user mailing list