You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Bhagwat, Vinit (Vinit)" <vb...@avaya.com> on 2008/10/03 12:05:47 UTC

Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Hi,
 
I am getting following exception 
 
org.apache.jasper.JasperException: ServletException in
'/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
 
when I ported my web application from tomcat 5.5.9 to 5.5.26
 
Following is code snippet from test1.jsp page under webapps/testapp/dir1
 
<t:panelTabbedPane>
 <t:panelTab id="tabpane-1" label="abc" rendered="true">
  <jsp:include page="abc.jsp" />
 </t:panelTab>
 <t:panelTab id="tabpane-1" label="def" rendered="false">
  <jsp:include page="def.jsp" />
 </t:panelTab>
</t:panelTabbedPane>
 
here abc.jsp is under directory webapps/testapp/dir1 (same directory of
test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
 
This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am getting
following exception
 
org.apache.jasper.JasperException: ServletException in
'/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
 
Can somebody please help me to resolve this problem.
 
Thanks and Regards,
 
Vinit Bhagwat

RE: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by "Bhagwat, Vinit (Vinit)" <vb...@avaya.com>.
Thanks again for links. This code was written by somebody else and I am
maintain it. I agree that there is no valid reason for referencing
non-existent jsp. I will change my code. I was curious about what got
changed and with your help I got the answer. Thanks a lot.

Thanks and Regards,

Vinit
-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com] 
Sent: Monday, October 06, 2008 6:02 PM
To: Tomcat Users List
Subject: Re: Problem with jasper-compiler when ported web application
from tomcat 5.5.9 to 5.5.26

> Can you please look into Bug 37326 for 5.5.25 I think this is related 
> with my problem.

Yes, it certainly looks like it.
Also, if you are interested, here is what was changed:

http://mail-archives.apache.org/mod_mbox/tomcat-dev/200708.mbox/%3C20070
804181305.4837F1A981A@eris.apache.org%3E

http://svn.apache.org/viewvc?view=rev&rev=562751

Do you have any valid reason, why you must reference a non-existent jsp?


Also, a non-related note:
If you are planning to use 5.5.26, beware of issue 44494.
It was fixed in 5.5.27.


2008/10/6 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
> Thanks for the changelog link and pointers.
>
> This is not the actual snippet. I tried to simulate as per my 
> application.
>
> What I suspect is if <t:panelTab rendered="false"> it should not try 
> to include def.jsp <jsp:include> which was happening when I used 5.5.9

> but with 5.5.26 I guess though t:panelTab rendered attribute is false 
> it tries to include jsp page which is not in the same directory.
>
> Can you please look into Bug 37326 for 5.5.25 I think this is related 
> with my problem.
>
> Thanks and Regards,
>
> Vinit
> -----Original Message-----
> From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
> Sent: Monday, October 06, 2008 4:27 PM
> To: Tomcat Users List
> Subject: Re: Problem with jasper-compiler when ported web application 
> from tomcat 5.5.9 to 5.5.26
>
>> I wanted to know what change has happened in above mentioned jars 
>> from
>
>> tomcat 5.5.9 to 5.5.26 which is breaking my code?
>
> Don't know. All changes are mentioned in the changelog, 
> http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
>
> and there is source code repository where you can look for commit 
> history or compare branches.
>
> Deploying your app in different versions of 5.5.10 .. 5.5.25, or maybe

> also in a fresh install of 5.5.9, will help you to locate when the 
> difference has appeared.
>
> Still, I think that it is something in your app.
>
> I do not see "dir2" in your code snippet. How it is supposed to work? 
> Is it the actual snippet? Where that "dir2" comes from?
>
>
> 2008/10/6 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
>> Even after clearing work directory on 5.5.9 this code works.
>>
>> I have 2 workarounds for this problem
>> 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26 
>> jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
>> 2) Keep def.jsp at same location as test1.jsp and abc.jsp.
>>
>> With both these workarounds my application works fine.
>>
>> I wanted to know what change has happened in above mentioned jars 
>> from
>
>> tomcat 5.5.9 to 5.5.26 which is breaking my code?
>>
>> Thanks and Regards,
>>
>> Vinit
>> -----Original Message-----
>> From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
>> Sent: Friday, October 03, 2008 7:08 PM
>> To: Tomcat Users List
>> Subject: Re: Problem with jasper-compiler when ported web application

>> from tomcat 5.5.9 to 5.5.26
>>
>> 2008/10/3 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
>>> Hi,
>>>
>>> I am getting following exception
>>>
>>> org.apache.jasper.JasperException: ServletException in
>>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>>>
>>> when I ported my web application from tomcat 5.5.9 to 5.5.26
>>>
>>> Following is code snippet from test1.jsp page under
>>> webapps/testapp/dir1
>>>
>>> <t:panelTabbedPane>
>>>  <t:panelTab id="tabpane-1" label="abc" rendered="true"> 
>>> <jsp:include
>>
>>> page="abc.jsp" />  </t:panelTab>  <t:panelTab id="tabpane-1"
>>> label="def" rendered="false">  <jsp:include page="def.jsp" /> 
>>> </t:panelTab> </t:panelTabbedPane>
>>>
>>> here abc.jsp is under directory webapps/testapp/dir1 (same directory

>>> of
>>> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>>>
>>> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am 
>>> getting following exception
>>>
>>> org.apache.jasper.JasperException: ServletException in
>>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>>>
>>
>> If abc.jsp and def.jsp are in different directories, then it should 
>> be
>
>> jsp:include page="../dir2/def.jsp"
>>
>> It might be that on your 5.5.9 there is some old compiled copy of 
>> def.jsp in the wrong place. I.e. it might be if you clear your work 
>> directory on your 5.5.9 host the problem will reappear there.
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by Konstantin Kolinko <kn...@gmail.com>.
> Can you please look into Bug 37326 for 5.5.25 I think this is related
> with my problem.

Yes, it certainly looks like it.
Also, if you are interested, here is what was changed:

http://mail-archives.apache.org/mod_mbox/tomcat-dev/200708.mbox/%3C20070804181305.4837F1A981A@eris.apache.org%3E

http://svn.apache.org/viewvc?view=rev&rev=562751

Do you have any valid reason, why you must reference a
non-existent jsp?


Also, a non-related note:
If you are planning to use 5.5.26, beware of issue 44494.
It was fixed in 5.5.27.


2008/10/6 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
> Thanks for the changelog link and pointers.
>
> This is not the actual snippet. I tried to simulate as per my
> application.
>
> What I suspect is if <t:panelTab rendered="false"> it should not try to
> include def.jsp <jsp:include> which was happening when I used 5.5.9 but
> with 5.5.26 I guess though t:panelTab rendered attribute is false it
> tries to include jsp page which is not in the same directory.
>
> Can you please look into Bug 37326 for 5.5.25 I think this is related
> with my problem.
>
> Thanks and Regards,
>
> Vinit
> -----Original Message-----
> From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
> Sent: Monday, October 06, 2008 4:27 PM
> To: Tomcat Users List
> Subject: Re: Problem with jasper-compiler when ported web application
> from tomcat 5.5.9 to 5.5.26
>
>> I wanted to know what change has happened in above mentioned jars from
>
>> tomcat 5.5.9 to 5.5.26 which is breaking my code?
>
> Don't know. All changes are mentioned in the changelog,
> http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
>
> and there is source code repository where you can look for commit
> history or compare branches.
>
> Deploying your app in different versions of 5.5.10 .. 5.5.25, or maybe
> also in a fresh install of 5.5.9, will help you to locate when the
> difference has appeared.
>
> Still, I think that it is something in your app.
>
> I do not see "dir2" in your code snippet. How it is supposed to work? Is
> it the actual snippet? Where that "dir2" comes from?
>
>
> 2008/10/6 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
>> Even after clearing work directory on 5.5.9 this code works.
>>
>> I have 2 workarounds for this problem
>> 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26
>> jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
>> 2) Keep def.jsp at same location as test1.jsp and abc.jsp.
>>
>> With both these workarounds my application works fine.
>>
>> I wanted to know what change has happened in above mentioned jars from
>
>> tomcat 5.5.9 to 5.5.26 which is breaking my code?
>>
>> Thanks and Regards,
>>
>> Vinit
>> -----Original Message-----
>> From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
>> Sent: Friday, October 03, 2008 7:08 PM
>> To: Tomcat Users List
>> Subject: Re: Problem with jasper-compiler when ported web application
>> from tomcat 5.5.9 to 5.5.26
>>
>> 2008/10/3 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
>>> Hi,
>>>
>>> I am getting following exception
>>>
>>> org.apache.jasper.JasperException: ServletException in
>>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>>>
>>> when I ported my web application from tomcat 5.5.9 to 5.5.26
>>>
>>> Following is code snippet from test1.jsp page under
>>> webapps/testapp/dir1
>>>
>>> <t:panelTabbedPane>
>>>  <t:panelTab id="tabpane-1" label="abc" rendered="true">
>>> <jsp:include
>>
>>> page="abc.jsp" />  </t:panelTab>  <t:panelTab id="tabpane-1"
>>> label="def" rendered="false">  <jsp:include page="def.jsp" />
>>> </t:panelTab> </t:panelTabbedPane>
>>>
>>> here abc.jsp is under directory webapps/testapp/dir1 (same directory
>>> of
>>> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>>>
>>> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am
>>> getting following exception
>>>
>>> org.apache.jasper.JasperException: ServletException in
>>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>>>
>>
>> If abc.jsp and def.jsp are in different directories, then it should be
>
>> jsp:include page="../dir2/def.jsp"
>>
>> It might be that on your 5.5.9 there is some old compiled copy of
>> def.jsp in the wrong place. I.e. it might be if you clear your work
>> directory on your 5.5.9 host the problem will reappear there.
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by "Bhagwat, Vinit (Vinit)" <vb...@avaya.com>.
Thanks for the changelog link and pointers.

This is not the actual snippet. I tried to simulate as per my
application.

What I suspect is if <t:panelTab rendered="false"> it should not try to
include def.jsp <jsp:include> which was happening when I used 5.5.9 but
with 5.5.26 I guess though t:panelTab rendered attribute is false it
tries to include jsp page which is not in the same directory. 

Can you please look into Bug 37326 for 5.5.25 I think this is related
with my problem.

Thanks and Regards,

Vinit
-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com] 
Sent: Monday, October 06, 2008 4:27 PM
To: Tomcat Users List
Subject: Re: Problem with jasper-compiler when ported web application
from tomcat 5.5.9 to 5.5.26

> I wanted to know what change has happened in above mentioned jars from

> tomcat 5.5.9 to 5.5.26 which is breaking my code?

Don't know. All changes are mentioned in the changelog,
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

and there is source code repository where you can look for commit
history or compare branches.

Deploying your app in different versions of 5.5.10 .. 5.5.25, or maybe
also in a fresh install of 5.5.9, will help you to locate when the
difference has appeared.

Still, I think that it is something in your app.

I do not see "dir2" in your code snippet. How it is supposed to work? Is
it the actual snippet? Where that "dir2" comes from?


2008/10/6 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
> Even after clearing work directory on 5.5.9 this code works.
>
> I have 2 workarounds for this problem
> 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26 
> jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
> 2) Keep def.jsp at same location as test1.jsp and abc.jsp.
>
> With both these workarounds my application works fine.
>
> I wanted to know what change has happened in above mentioned jars from

> tomcat 5.5.9 to 5.5.26 which is breaking my code?
>
> Thanks and Regards,
>
> Vinit
> -----Original Message-----
> From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
> Sent: Friday, October 03, 2008 7:08 PM
> To: Tomcat Users List
> Subject: Re: Problem with jasper-compiler when ported web application 
> from tomcat 5.5.9 to 5.5.26
>
> 2008/10/3 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
>> Hi,
>>
>> I am getting following exception
>>
>> org.apache.jasper.JasperException: ServletException in
>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>>
>> when I ported my web application from tomcat 5.5.9 to 5.5.26
>>
>> Following is code snippet from test1.jsp page under
>> webapps/testapp/dir1
>>
>> <t:panelTabbedPane>
>>  <t:panelTab id="tabpane-1" label="abc" rendered="true">  
>> <jsp:include
>
>> page="abc.jsp" />  </t:panelTab>  <t:panelTab id="tabpane-1"
>> label="def" rendered="false">  <jsp:include page="def.jsp" /> 
>> </t:panelTab> </t:panelTabbedPane>
>>
>> here abc.jsp is under directory webapps/testapp/dir1 (same directory 
>> of
>> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>>
>> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am 
>> getting following exception
>>
>> org.apache.jasper.JasperException: ServletException in
>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>>
>
> If abc.jsp and def.jsp are in different directories, then it should be

> jsp:include page="../dir2/def.jsp"
>
> It might be that on your 5.5.9 there is some old compiled copy of 
> def.jsp in the wrong place. I.e. it might be if you clear your work 
> directory on your 5.5.9 host the problem will reappear there.
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by Konstantin Kolinko <kn...@gmail.com>.
> I wanted to know what change has happened in above mentioned jars from
> tomcat 5.5.9 to 5.5.26 which is breaking my code?

Don't know. All changes are mentioned in the changelog,
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

and there is source code repository where you can look for commit history
or compare branches.

Deploying your app in different versions of 5.5.10 .. 5.5.25, or
maybe also in a fresh install of 5.5.9, will help you to locate when
the difference has appeared.

Still, I think that it is something in your app.

I do not see "dir2" in your code snippet. How it is supposed
to work? Is it the actual snippet? Where that "dir2" comes from?


2008/10/6 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
> Even after clearing work directory on 5.5.9 this code works.
>
> I have 2 workarounds for this problem
> 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26
> jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
> 2) Keep def.jsp at same location as test1.jsp and abc.jsp.
>
> With both these workarounds my application works fine.
>
> I wanted to know what change has happened in above mentioned jars from
> tomcat 5.5.9 to 5.5.26 which is breaking my code?
>
> Thanks and Regards,
>
> Vinit
> -----Original Message-----
> From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
> Sent: Friday, October 03, 2008 7:08 PM
> To: Tomcat Users List
> Subject: Re: Problem with jasper-compiler when ported web application
> from tomcat 5.5.9 to 5.5.26
>
> 2008/10/3 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
>> Hi,
>>
>> I am getting following exception
>>
>> org.apache.jasper.JasperException: ServletException in
>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>>
>> when I ported my web application from tomcat 5.5.9 to 5.5.26
>>
>> Following is code snippet from test1.jsp page under
>> webapps/testapp/dir1
>>
>> <t:panelTabbedPane>
>>  <t:panelTab id="tabpane-1" label="abc" rendered="true">  <jsp:include
>
>> page="abc.jsp" />  </t:panelTab>  <t:panelTab id="tabpane-1"
>> label="def" rendered="false">  <jsp:include page="def.jsp" />
>> </t:panelTab> </t:panelTabbedPane>
>>
>> here abc.jsp is under directory webapps/testapp/dir1 (same directory
>> of
>> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>>
>> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am
>> getting following exception
>>
>> org.apache.jasper.JasperException: ServletException in
>> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>>
>
> If abc.jsp and def.jsp are in different directories, then it should be
> jsp:include page="../dir2/def.jsp"
>
> It might be that on your 5.5.9 there is some old compiled copy of
> def.jsp in the wrong place. I.e. it might be if you clear your work
> directory on your 5.5.9 host the problem will reappear there.
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by "Bhagwat, Vinit (Vinit)" <vb...@avaya.com>.
Even after clearing work directory on 5.5.9 this code works. 

I have 2 workarounds for this problem
1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26
jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
2) Keep def.jsp at same location as test1.jsp and abc.jsp.

With both these workarounds my application works fine.

I wanted to know what change has happened in above mentioned jars from
tomcat 5.5.9 to 5.5.26 which is breaking my code?

Thanks and Regards,

Vinit
-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com] 
Sent: Friday, October 03, 2008 7:08 PM
To: Tomcat Users List
Subject: Re: Problem with jasper-compiler when ported web application
from tomcat 5.5.9 to 5.5.26

2008/10/3 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
> Hi,
>
> I am getting following exception
>
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>
> when I ported my web application from tomcat 5.5.9 to 5.5.26
>
> Following is code snippet from test1.jsp page under 
> webapps/testapp/dir1
>
> <t:panelTabbedPane>
>  <t:panelTab id="tabpane-1" label="abc" rendered="true">  <jsp:include

> page="abc.jsp" />  </t:panelTab>  <t:panelTab id="tabpane-1" 
> label="def" rendered="false">  <jsp:include page="def.jsp" />  
> </t:panelTab> </t:panelTabbedPane>
>
> here abc.jsp is under directory webapps/testapp/dir1 (same directory 
> of
> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>
> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am 
> getting following exception
>
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>

If abc.jsp and def.jsp are in different directories, then it should be
jsp:include page="../dir2/def.jsp"

It might be that on your 5.5.9 there is some old compiled copy of
def.jsp in the wrong place. I.e. it might be if you clear your work
directory on your 5.5.9 host the problem will reappear there.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by Konstantin Kolinko <kn...@gmail.com>.
2008/10/3 Bhagwat, Vinit (Vinit) <vb...@avaya.com>:
> Hi,
>
> I am getting following exception
>
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>
> when I ported my web application from tomcat 5.5.9 to 5.5.26
>
> Following is code snippet from test1.jsp page under webapps/testapp/dir1
>
> <t:panelTabbedPane>
>  <t:panelTab id="tabpane-1" label="abc" rendered="true">
>  <jsp:include page="abc.jsp" />
>  </t:panelTab>
>  <t:panelTab id="tabpane-1" label="def" rendered="false">
>  <jsp:include page="def.jsp" />
>  </t:panelTab>
> </t:panelTabbedPane>
>
> here abc.jsp is under directory webapps/testapp/dir1 (same directory of
> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>
> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am getting
> following exception
>
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>

If abc.jsp and def.jsp are in different directories, then it should be
jsp:include page="../dir2/def.jsp"

It might be that on your 5.5.9 there is some old compiled copy of def.jsp
in the wrong place. I.e. it might be if you clear your work directory on
your 5.5.9 host the problem will reappear there.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by "Bhagwat, Vinit (Vinit)" <vb...@avaya.com>.
Following is appBase setting for host in server.xml

<Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

And there is no ROOT context defined.

Vinit
-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Friday, October 03, 2008 3:49 PM
To: Tomcat Users List
Subject: Re: Problem with jasper-compiler when ported web application
from tomcat 5.5.9 to 5.5.26

Bhagwat, Vinit (Vinit) wrote:
> Hi,
>  
> I am getting following exception
>  
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>  
> when I ported my web application from tomcat 5.5.9 to 5.5.26
>  
> Following is code snippet from test1.jsp page under 
> webapps/testapp/dir1
>  
> <t:panelTabbedPane>
>  <t:panelTab id="tabpane-1" label="abc" rendered="true">
>   <jsp:include page="abc.jsp" />
>  </t:panelTab>
>  <t:panelTab id="tabpane-1" label="def" rendered="false">
>   <jsp:include page="def.jsp" />
>  </t:panelTab>
> </t:panelTabbedPane>
>  
> here abc.jsp is under directory webapps/testapp/dir1 (same directory 
> of
> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>  
> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am 
> getting following exception
>  
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>  
> Can somebody please help me to resolve this problem.

What are the appBase settings for the host (in server.xml) and if you
have defined a ROOT context, what is the docBase for that context?

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

Posted by Mark Thomas <ma...@apache.org>.
Bhagwat, Vinit (Vinit) wrote:
> Hi,
>  
> I am getting following exception 
>  
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found
>  
> when I ported my web application from tomcat 5.5.9 to 5.5.26
>  
> Following is code snippet from test1.jsp page under webapps/testapp/dir1
>  
> <t:panelTabbedPane>
>  <t:panelTab id="tabpane-1" label="abc" rendered="true">
>   <jsp:include page="abc.jsp" />
>  </t:panelTab>
>  <t:panelTab id="tabpane-1" label="def" rendered="false">
>   <jsp:include page="def.jsp" />
>  </t:panelTab>
> </t:panelTabbedPane>
>  
> here abc.jsp is under directory webapps/testapp/dir1 (same directory of
> test1.jsp) and def.jsp is under directory webapps/testapp/dir2.
>  
> This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am getting
> following exception
>  
> org.apache.jasper.JasperException: ServletException in
> '/testapp/dir1/test1.jsp': File "/testapp/dir2/def.jsp" not found.
>  
> Can somebody please help me to resolve this problem.

What are the appBase settings for the host (in server.xml) and if you have
defined a ROOT context, what is the docBase for that context?

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org