> From: Marco Rocco [mailto:mr8...@gmail.com]
> Subject: Re: Adding a new webapps directory
> 
> in /opt/tomcat/conf/server.xml i have added:
> <Host name="Myservlets" appBase="/home/marco/Myservlets"/>
> 
> But if i try to access it at http://localhost:8080/ServletExample
> i get: _The requested resource (/ServletExample) is not available.

As you should.  Your <Host> name is Myservlets, so that will need to be used on 
the URL:

http://Myservlets:8080/ServletExample

You will need to insure that the name "Myservlets" resolves to the IP address 
of your server.

Alternatively, change the defaultHost attribute of your <Engine> to point to 
"Myservlets"; this will allow you to access your ServletExample via any URL 
*other* than "localhost", such as the IP address:

http://127.0.0.1:8080/ServletExample

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to