What is in the directory /dirtest/prod_scrpts? If it doesn't have a file named index.jsp, index.html or index.htm (defaults set in conf/web.xml) then it will give a 404. Try a very small "hello world" html page for one of those files. The default is to disable file listings for directories which is where the 404 is coming from.


uddav wrote:
hello everyone,

i am a novice in this field. I was trying to create a virtual directory
(alias directory) in Tomcat in Solaris box. Following is what i did.

1. stopped tomcat 2. located the "server.xml" file under <INSTALL DIR>/tomcat/conf 2. edited it to add <Context path="/test"
                                docBase="/dirtest/prod_scrpts"
                                debug="1"
                                reloadable="true" >
        </Context>

3. added the above between the host tags such that
     <Host appBase="webapps" autoDeploy.......>
     ... ... ... ...
          <Context path="/test"
                                docBase="/dirtest/prod_scrpts"
                                debug="1"
                                reloadable="true" >
        </Context>
</Host> 4. started tomcat
Now when i try to access the newly create virtual directory by going to the
URL "http://<servername>:8080/test" i get the error:

HTTP Status 404 - /test/
--------------------------------------------------------------------------------
type Status report
message /test/
description The requested resource (/test/) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.27

Any suggestions and recommendation will be greatly appreciated.

Thankyou
uddav


---------------------------------------------------------------------
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