Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359226 - JSP compilation error when compiling JSP with tagfile for the first time
Summary: JSP compilation error when compiling JSP with tagfile for the first time
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: jst.server CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 09:02 EDT by janlisse CLA
Modified: 2018-02-12 23:16 EST (History)
1 user (show)

See Also:


Attachments
Complete stacktrace of the JSP compilation error (3.32 KB, text/plain)
2011-09-28 09:03 EDT, janlisse CLA
no flags Details
A simple eclipse web project that demonstrates the error (3.12 KB, application/octet-stream)
2011-09-28 09:09 EDT, janlisse CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description janlisse CLA 2011-09-28 09:02:05 EDT
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
Comment 1 janlisse CLA 2011-09-28 09:03:50 EDT
Created attachment 204182 [details]
Complete stacktrace of the JSP compilation error
Comment 2 janlisse CLA 2011-09-28 09:09:50 EDT
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...
Comment 3 Carl Anderson CLA 2011-09-28 09:26:09 EDT
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.
Comment 4 janlisse CLA 2011-09-29 11:53:26 EDT
Yes i was using Eclipse 7 (Indigo).
Today i tried the new Indigo SR1 release having the same problems.
Comment 5 Nitin Dahyabhai CLA 2018-02-12 23:16:05 EST
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.