I tried the following:

1. I created a myApp.xml file with the following and placed the file in
$CATALINA_HOME\Catalina\localhost directory.

<Context reloadable="true" path="" docBase="C:\Documents and Settings\subas\webapps\myApp" debug="true" privileged="true">

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
        
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->

</Context>

2. I made changes to server.xml appBase to point to C:\Documents and Settings\subas\webapps

3. I moved my html form and the WEB-INF directory to C:\Documents and Settings\subas\webapps\myApp. My packaged classes resides under C:\Documents and Settings\subas\webapps\myApp\WEB-INF\classes directory.

The web.xml in WEB-INF directory has the servlet mapping. The documents I have hyperlinked to access reside in C:\Documents and Settings\subas\webapps\myApp directory.

I am able to access the html search form page but the servlet is not getting started. I am getting "HTTP Status 404 - /results/QueryResults" error.

The same setup works if I have it in "$CATALINA_HOME\webapps\ROOT" directory. We don't want the hyperlinked documents residing where the webserver resides. It is the reason I moved my application directory.

So what am I doing wrong? Is it something as silly as forward or backward slash??

thanks,
suba.


Mark Thomas wrote:
Suba Suresh wrote:

Currently I am developing it on Windows XP. It has to run on both Linux
and Windows OS.


You could:
- map a context to the folder containing your documents.
- on Linux you could use a link.
- just move the files and put them under the context

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