Bug 11802 - jsp:include causes an error when working directly from war
Summary: jsp:include causes an error when working directly from war
Status: RESOLVED DUPLICATE of bug 10629
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 4.0.3 Final
Hardware: All other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-18 11:20 UTC by Ni Paikowsky
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
This war demonstrates the bug - try opening "warTests/org1/requestor/requestor.jsp" (1.79 KB, application/octet-stream)
2002-08-18 11:23 UTC, Ni Paikowsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ni Paikowsky 2002-08-18 11:20:43 UTC
We encountered a problem working with tomcat (Ver 4.03 and 4.1.3): 

When working with a WAR (not an unpacked war) and  using include and 
jsp:include with relative references, the following error occurs:

java.io.FileNotFoundException: /org1/requestor/../general/navigationBar.jsp 

(I can e-mail a war that demonstrates this).

When working with an open war, is is possible to open 
warTests/org1/requestor/requestor.jsp which has a jsp:include 
to ../general/navigationBar.jsp.

But the error occurs only when we are working directly from the WAR. 

In order to re-produce this,  a context must be added, unless tomcat 
automatically unpacks the war with it's auto-deploy mechanism.

Here is the required context entry to server.xml 

        <Context path="/warTests" docBase="warTests.war" debug="0"/> 

The only documentation we have found on this problem is this: 
<http://community.borland.com/article/0,1410,27963,00.html> 

We have found in bugzilla some related bugs which mention the problem with an 
open war but they were all fixed. But there was no sign for the war problem:

<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3098> 

<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8092> 

<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2193>
Comment 1 Ni Paikowsky 2002-08-18 11:23:34 UTC
Created attachment 2752 [details]
This war demonstrates the bug - try opening "warTests/org1/requestor/requestor.jsp"
Comment 2 Andrew Conrad 2002-08-18 19:11:56 UTC
This is fixed in 4.1.8+

*** This bug has been marked as a duplicate of 10629 ***