tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Isaacs" <Larry.Isa...@sas.com>
Subject RE: Context problem in tomcat 5.5
Date Tue, 05 Dec 2006 15:58:27 GMT
The URL http://localhost:8080/samena/, in the absence of a
welcome file such as index.jsp, will request a directory
listing.  However, in Tomcat 5.5, directory listings are
disabled by default, which will result in the error you see.
I would guess that you either need to enable directory
listings (see the conf/web.xml file) or add a welcome file
to your webapp.

Also disabled is the non-spec legacy "/servlet/classname"
method of executing servlets, which may have allowed your
web.xml to work elsewhere. This is why servlet mappings
are needed to execute your servlets as noted by Chuck.

Cheers,
Larry 

> -----Original Message-----
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
> Sent: Tuesday, December 05, 2006 10:18 AM
> To: Tomcat Users List
> Subject: RE: Context problem in tomcat 5.5
> 
> > From: Rizwan Ahmad [mailto:rizwanrizi@gmail.com]
> > Subject: Context problem in tomcat 5.5
> > 
> > When I startup tomcat it automatically unpacks war file but 
> when I try 
> > to access my website using http://localhost:8080/samena/ it 
> says "The 
> > requested resource (/samena/) is not available."
> 
> Your web.xml file is missing <servlet-mapping> entries.  Look 
> at the servlet spec for definition and the various Tomcat 
> web.xml files for examples.
> 
> > I also don't find any context name specified anywhere for 
> > http://localhost:8080/servlets-examples/ provided with the tomcat.
> 
> The context name is determined by the name of the directory 
> or .war file the application is in.  In the above case, 
> webapps/servlets-examples automatically results in the above context.
> 
>  - 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 start a new topic, e-mail: users@tomcat.apache.org To 
> unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

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


Mime
View raw message