-
1. Re: The type Iterator is not generic; it cannot be parameter
maxandersen Aug 13, 2007 10:56 AM (in response to maykellff)sounds like you are trying to run eclipse with a non-java 5 jdk...
-
2. Re: The type Iterator is not generic; it cannot be parameter
maykellff Aug 13, 2007 5:47 PM (in response to maykellff)That's the problem, i use the jdk 1.5, beside i proved with the jdk 1.6 and the error is the same, i ensured myself of be using the rigth jdk.
Even more i get to build the application with ant, i modified the build.xml that Exadel attach to the application, it build ok and deploy the war into a Tomcat 5.5 server, but when i run the server the error appeared againt, the browser show the following error:
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
The type Collection is not generic; it cannot be parameterized with arguments <? extends E>
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
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:802) ........ and go on
I know that the code is ok, this same code 4 weeks ego didn't have any problem, since them i haven touched it, the problem come when we upgrade the Exadel and the Eclipse, from Eclipse 3.1 with ExadelStudio Pro 3.5 to Eclipse 3.2.1 with ExadelStudio Pro 4.0.1 and 4.0.4. -
3. Re: The type Iterator is not generic; it cannot be parameter
maykellff Aug 13, 2007 6:45 PM (in response to maykellff)Hi, i think i found a clue to discover the mistery, i deployed the same .war in the ExadelStudio Pro 3.5.1 tomcat and in the ExadelStudio Pro 4.0.1(and 4.0.4) tomcat in the first one everythink work fine but in the second i get the error i described above.
The ExadelStudio Pro 3.5.1 use Tomcat 5.0 and ExadelStudio Pro 4.0.1 and 4.0.4 use Tomcat 5.5
?There are some problem with the new versions of Tomcat?
?Something related to the use of an old version of the JVM by default? -
4. Re: The type Iterator is not generic; it cannot be parameter
maxandersen Aug 14, 2007 8:12 AM (in response to maykellff)Your errors are purely related to mixing pre-jdk 1.5 libraries with jdk5 compiled code.....
-
5. Re: The type Iterator is not generic; it cannot be parameter
maykellff Aug 14, 2007 10:41 AM (in response to maykellff)I don't know what exactly you refer to. When you say that :
"Your errors are purely related to mixing pre-jdk 1.5 libraries with jdk5 compiled code....."
i think that you are refering to the fact that the jar files i'm using were compiled with an old jdk and my code is compiled with the jdk1.5, is it?
What exactly you refer to?
How can i eliminate this problem? -
6. Re: The type Iterator is not generic; it cannot be parameter
maxandersen Aug 14, 2007 11:25 AM (in response to maykellff)You are getting those errors because you are running code with generics in them on a collection library that is only JDK 1.4
-
7. Re: The type Iterator is not generic; it cannot be parameter
maykellff Aug 14, 2007 6:35 PM (in response to maykellff)I don't understand very well, i can compile the project without problems using ant, and the jdk i use to compile the code is the only one i have instaled the jdk1.5, everything came when i deploy the application in Tomcat 5.5 and try to run it, it rise the error.
How can i aboid this? -
8. Re: The type Iterator is not generic; it cannot be parameter
maxandersen Aug 15, 2007 2:13 AM (in response to maykellff)it is in tomcat the error is.
your tomcat seem to be running jdk 1.4 libraries.