I think your docBase should be webapps/test <Context path="/test" docBase="test" debug="0" reloadable="true" />
Erwin Am Freitag, 5. April 2002 18:29 schrieben Sie: > Hi there, > > I'm new to Tomcat and to this list, so apologies if this question has > already been asked (I've checked the archives and can't find an answer). > > I'm trying to create a new context in server.xml. My current code is: > > <Context path="/test" docBase="test" > debug="0" reloadable="true" /> > > I've also created a directory within webapps called "test", with sub > directory WEB-INF and classes. And within the classes folder is my test > class file ("homepage.class"). > > I've also created a web.xml file and placed it in the WEB-INF directory > defining the servlet mappings for the new servlet (called "homepage"): > > <web-app> > <servlet> > <servlet-name>greetings</servlet-name> > <servlet-class>homepage</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>greetings</servlet-name> > <url-pattern>/test/please</url-pattern> > </servlet-mapping> > > </web-app> > > Using the manager app I've successfully added a new application (called > "test") but when I try to view the servlet, I get a 404 error ... any idea > what I'm doing wrong? > > Thanks > > Adam Sefton > Applications Developer > > > ********************************************************************** > This message may contain information which is confidential or privileged. > If you are not the intended recipient, please advise the sender immediately > by reply e-mail and delete this message and any attachments > without retaining a copy. > > ********************************************************************** -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>