| Author |
File Not Found configuration problem
|
steve axelrod
Greenhorn
Joined: Dec 06, 2011
Posts: 4
|
|
Recently switched from a working tomcat 5 hosted environment to a
windows 2008 64bit tomcat 7 hosted environment
http://196.40.84.83/jsp/about.jsp does not load the include file within it click the link and you get an error
http://196.40.84.83/jsp/loadsessiondata.jsp the file /jsp/loadsessiondata.jsp NOT FOUND error
as you can see from the second link you can access the file directly.
for some reason the include file in the about.jsp
<%@ include file="/jsp/loadsessiondata.jsp" %>
is not getting found by tomcat 7.
this was all working for years under tomcat 5
I tried to build the configuration as the documentation states, but I am obviously missing something
If I remove the "/jsp/" from the include line it finds the file.
I do NOT have a root.xml under conf/catalina/davincitrade
thoughts? Ideas?
Thanks.
|
 |
steve axelrod
Greenhorn
Joined: Dec 06, 2011
Posts: 4
|
|
steve axelrod wrote:Recently switched from a working tomcat 5 hosted environment to a
windows 2008 64bit tomcat 7 hosted environment
http://196.40.84.83/jsp/about.jsp does not load the include file within it click the link and you get an error
http://196.40.84.83/jsp/loadsessiondata.jsp the file /jsp/loadsessiondata.jsp NOT FOUND error
as you can see from the second link you can access the file directly.
for some reason the include file in the about.jsp
<%@ include file="/jsp/loadsessiondata.jsp" %>
is not getting found by tomcat 7.
this was all working for years under tomcat 5
I tried to build the configuration as the documentation states, but I am obviously missing something
If I remove the "/jsp/" from the include line it finds the file.
thoughts? Ideas?
Thanks.
Today: I really need help on this.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
PatienceIsAVirtue.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
steve axelrod
Greenhorn
Joined: Dec 06, 2011
Posts: 4
|
|
Agreed, however, I have been battling this for four days. It is very frustrating
Here is the actual line from Jasper
org.apache.jasper.JasperException: /about.jsp (line: 1, column: 2) File "/jsp/loadsessiondata.jsp" not found
the about .jsp is in /jsp/about.jsp as well as the loadsessiondata.jsp
www.somesite.com/jsp/about.jsp
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
What happens if you include the file relatively to the current one:
|
 |
steve axelrod
Greenhorn
Joined: Dec 06, 2011
Posts: 4
|
|
|
Yes, that makes it work, the problem is there are 100's of pages not only in this directory but others as well and it worked great under tomcat 5
|
 |
 |
|
|
subject: File Not Found configuration problem
|
|
|