I tried a few things and the only thing that worked was as below.
Host name=www.myhostname.com debug=5
appBase=/home/perap/htdocs/perap unpackWARs=true
autoDeploy=true xmlValidation=false
xmlNamespaceAware=false
Context path= docBase=/home/perap/htdocs/perap/ROOT
From: IT Desk [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat inserts leading / on include file
I tried a few things and the only thing that worked was as below.
What should also work is removing the context entry from inside the
Host element, and placing a cut down version in META-INF
In my jsp, I have:
%@ include file=Connections/db.jsp %
and get error:
org.apache.jasper.JasperException: /index.jsp(2,0) File
/Connections/db.jsp not found
The error message is showing a leading / was inserted. Why is that?
I'm using Tomcat version 5.5.20.
I tried hardcoding the full path
]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, November 30, 2006 8:25 PM
Subject: tomcat inserts leading / on include file
In my jsp, I have:
%@ include file=Connections/db.jsp %
and get error:
org.apache.jasper.JasperException: /index.jsp(2,0) File
/Connections/db.jsp
What OS?
Case sensitivity?
Spelling?
\ instead of a / ?
Just thoughts.
Doug
- Original Message -
From: IT Desk [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, November 30, 2006 8:25 PM
Subject: tomcat inserts leading / on include file
In my jsp
thoughts.
Doug
- Original Message - From: IT Desk [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, November 30, 2006 8:25 PM
Subject: tomcat inserts leading / on include file
In my jsp, I have:
%@ include file=Connections/db.jsp %
and get error
IT Desk wrote:
It runs fine under 5.5.7. It was when I upgraded to 5.5.20 that I got
this error.
The include would work fine if tomcat didn't do an insert of the leading
forward slash to the path.
Can you provide your directory structure within your app?
I am expecting to see something
Here's the host entry in the Tomcat server.xml file
(Yes I know I should have a separate context xml file but this is the
way things already were when I started on this project):
Host name=www.myhostname.com debug=5
appBase=/home/perap/htdocs/perap
unpackWARs=true
From: IT Desk [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat inserts leading / on include file
Host name=www.myhostname.com debug=5
appBase=/home/perap/htdocs/perap
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Context path
IT Desk wrote:
Here's the host entry in the Tomcat server.xml file
(Yes I know I should have a separate context xml file but this is the
way things already were when I started on this project):
Host name=www.myhostname.com debug=5
appBase=/home/perap/htdocs/perap
OK. I guess it was just a Tomcat bug that it ran under 5.5.7.
I'll post the results of the test to let others know once I can schedule
the server for the test.
Mark Thomas wrote:
IT Desk wrote:
Here's the host entry in the Tomcat server.xml file
(Yes I know I should have a separate
11 matches
Mail list logo