Community
Participate
Working Groups
Build Identifier: 20110615-0604 When i create i new dynamic web project with a jsp that uses a tagfile (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags5.html) i get a JasperException during the first compilation of the jsp. If i deploy and run it on a Tomcat v6.0 from within WTP the first request to the JSP page causes a JasperException (please see attached stacktrace). After stopping and starting the tomcat server again using the Servers view everything works fine. If i perform a clean on the web project and restart the server i get the same error for the first request again. I tired different Tomcat version from 6.0.29 to 6.0.33 all showing the same error. If i drop the web project war directly into a tomcat instance outside of Eclipse WTP everything works fine. I have attached a Reproducible: Always Steps to Reproduce: 1. create dynamic web project 2. create a custom tagfile under WEB-INF/tags 3. create a jsp using the custom tagfile 4. create a tomcat v6.0 server using the servers view 5. deploy the web project on the server 6. start server 7. make a browser request to the jsp and it crashes with jsp compilation error
Created attachment 204182 [details] Complete stacktrace of the JSP compilation error
Created attachment 204184 [details] A simple eclipse web project that demonstrates the error This is a simple eclipse webproject that demonstrates the JSP compilation error in Tomcat Server. Import the Project in eclipse, add a new Tomcat Server from the Servers view deploy the project and start the server. When accessing the URL contextname/test.html it crashes with a JSP compilation error. After a server restart from eclipse everything works fine...
janlisse, judging by the build identifier, this is on Eclipse 3.7. Is that correct? Have you tried this with the SR1 refresh? (Eclipse 3.7 corresponds to WTP 3.3.0) I am not sure if this should go to sourceediting (who handle JSPs) or servertools- I am sending this to sourceediting to start with.
Yes i was using Eclipse 7 (Indigo). Today i tried the new Indigo SR1 release having the same problems.
This looks more like a Apache Tomcat problem. WTP is not involved with compiling your tag file for the runtime server, it has to do that itself. It looks like it must have had a problem compiling it or writing out the compiled version to the area WTP told it to work inside of.