Summary: | Unable to compiler JSP-Files with Tomcat > 5.5.9 | ||
---|---|---|---|
Product: | Tomcat 5 | Reporter: | Stefan Kirchner <stefan.kirchner> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | CLOSED WORKSFORME | ||
Severity: | normal | CC: | johan.ferner, nicolas.ternisien |
Priority: | P2 | Keywords: | ErrorMessage |
Version: | Nightly Build | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: |
JSP Page Test Buggy
Generated Java file with 5.5.17 Jasper Generated Java file with 5.5.9 Jasper (the one which works) |
Description
Stefan Kirchner
2006-01-10 11:13:46 UTC
Sorry to be a "me too" but I'm seeing this on: Solaris 8 sparc, JDK 1.5.0_06, Tomcat 5.5.15. Changing the jasper files worked for me. Unfortunately I'm deploying a commercial app so I can't play around. This app works on JRE 1.4 so no generics.... Created attachment 18620 [details]
JSP Page Test Buggy
And another "me too", We're also unable to compile a simple JSP because Javac Compiler generates strange Generic compilation problem with Tomcat 5.5.17. org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP Une erreur s'est produite à la ligne: 2 dans le fichier jsp: /test.jsp Erreur de servlet générée: The type Map is not generic; it cannot be parameterized with arguments <? extends K, ? extends V> With JSP generation using JAR files of Jasper (located in common/lib of Tomcat) 5.5.9, it works correctly. I provided attached JSP which cannot compile, and Java generated files, with 5.5.9 and 5.5.17 Output of JSP with 5.5.9 is : Result is : Hop (normal output) Created attachment 18621 [details]
Generated Java file with 5.5.17 Jasper
Created attachment 18622 [details]
Generated Java file with 5.5.9 Jasper (the one which works)
You JSP works for me with TC 5.5.17/Java 1.5.0_06 (Solaris Sparc): Result is : Hop No errors or other strangeness. We're also using JDK version "1.5.0_06", with the Server HotSpot VM, under a Red Hat RHEL 3 Linux, hope it can help. Works fine on apache-tomcat-5.5.17.zip on Fedora Core 4, JDK 1.5.0_07 Are you sure you haven't changed your compilerTargetVM and compilerSourceVM in conf/web.xml Please try on 5.5.17 and reopen if it exists in there, we'll work through it. I just tested 5.5.15, 16 and 17 all work fine. are you sure you're not using GNU java or something else installed on your system? No Jasper options defined in conf/web.xml (compilerTargetVM and compilerSourceVM) I'm now using JDK 1.5.07, without any GNU Classpath nor Kaffe, and it still cannot compile Can you zip up your tomcat directory and put it somewhere for me to download I will run the same test over here I finally found what was the problem, and Tomcat was not in charge of this problem. Our webapp included a JAR called rt4.jar in WEB-INF/lib, and after some search, this JAR contained the java.util.Map interface !!! This interface was used to compile the JSP (strange that it was used against the standard Map from the API), and finally generate the output. Thanks everybody for your help, and sorry to report a false bug. |