tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayesh D'Costa <fread...@yahoo.co.in>
Subject WEB-INF and META-INF
Date Sat, 01 Sep 2001 10:19:56 GMT
Hi,
     I have installed tomcat last week on our solaris
server. I included a new  context called trialserv in
server.xml file. 

<Context path="/trialserv"
              
docBase="/usr/local/etc/httpd/trialserv"
                 crossContext="false"
                 debug="0"
                 reloadable="true" >
  </Context> 
  
Afetr restarting the server I found the below given
entries for the above context in the
mod_jk.config-auot file 
# The following line makes apache aware of the
location of the /trialserv context
#
Alias /trialserv "/usr/local/etc/httpd/trialserv"
<Directory "/usr/local/etc/httpd/trialserv">
    Options Indexes FollowSymLinks
</Directory>
 
#
# The following line mounts all JSP files and the
/servlet/ uri to tomcat
#
JkMount /trialserv/servlet/* ajp12
JkMount /trialserv/*.jsp ajp12
 
#
# The following line prohibits users from directly
accessing WEB-INF
#
<Location "/trialserv/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
 
#
# The following line prohibits users from directly
accessing META-INF
#
<Location "/trialserv/META-INF/">
    AllowOverride None
    deny from all
</Location>
                                                      
  
#########################

but when actually checked the
usr/local/etc/httpd/trialserv directory, I could find
neither WEB-INF nor META-INF under it. Then I stored a
  Hello.class under trialserv just for the checking
purpose. When I tried to browse at
"http://myservername/trialserv/Hello", got the below
mentioned error,

Not Found (404)
Original request: /trialserv/servlet/Hello
Not found request: /trialserv/servlet/Hello

Could any one  help me in telling what for this
META-INF AND WEB-INF are, and how to get them created
under the context.  For the default context like admin
and example they are available. 

Thanks in anticipation

Jayesh.


 

____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in/
groups.yahoo.com

Mime
View raw message