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" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" docBase="/home/perap/htdocs/perap" debug="5" privileged="true"/>
        </Host>

So the directory structure is:
/home/perap/htdocs/perap
/home/perap/htdocs/perap/Connection/db.jsp

As you can see, the tomcat webapps directory is NOT being used.

I also have a <VirtualHost> entry whose DocumentRoot points to:
/home/perap/htdocs/perap




Mark Thomas wrote:
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 like:
HostAppBase/Context/index.jsp
HostAppBase/Context/Connection/db.jsp

Just a wild guess but does your directory structure look like this?
HostAppBase/index.jsp
HostAppBase/Connection/db.jsp

This layout is unsupported and only worked in earlier versions due to
a bug which has since been fixed. If you want your app to be the root
app your directory structure needs to be:
HostAppBase/ROOT/index.jsp
HostAppBase/ROOT/Connection/db.jsp

HTH,

Mark


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



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

Reply via email to