Yes, but I am creating another directory inside webapps, that is not inside the root directory.
>From: Leopoldo Garcia Bolivar <[EMAIL PROTECTED]> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java > Servlet API Technology." <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: 404 Error when accessing Servlet >Date: Sun, 27 Jan 2002 10:32:55 -0800 > >If I were you I would not touch the default server.xml >configuration (on Tomcat 4.0.1)unless you want to >create your context in a directory NOT under >../webapps/ >Hope this helps a little... >--- mike dizon <[EMAIL PROTECTED]> wrote: > > just tried it, did'nt work. =\ > > > > > > >From: Kevin <[EMAIL PROTECTED]> > > >Reply-To: "A mailing list for discussion about Sun > > Microsystem's Java > > > Servlet API Technology." > > <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Subject: Re: 404 Error when accessing Servlet > > >Date: Mon, 28 Jan 2002 00:08:41 +0700 > > > > > >Hi > > > > > >I think URL pattern should be > > > > > ><url-pattern>/cms/Test</url-pattern> > > > > > >- Kevin > > > > > >----- Original Message ----- > > >From: "mike dizon" <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Sunday, January 27, 2002 12:51 PM > > >Subject: [SERVLET-INTEREST] 404 Error when > > accessing Servlet > > > > > > > > > > I am now having trouble with accessing servlets. > > I made a new > > >application, > > > > it resides in a folder located inside the > > webapps folder. It is called > > >cms. > > > > I made a new context for it in server.xml. I can > > access files in it just > > > > fine, even jsp files. But not servlets. In other > > words when I try to > > >access > > > > http://localhost:8080/cms/Test i get a 404. But > > any other file in there > > > > aside from a servlet I can get just fine. > > > > > > > > The following is what I have set up in my > > web.xml file: > > > > > > > > > > > > <web-app> > > > > <servlet> > > > > <servlet-name>Test</servlet-name> > > > > <servlet-class>Test</servlet-class> > > > > </servlet> > > > > <servlet-mapping> > > > > <servlet-name>Test</servlet-name> > > > > <url-pattern>/Test</url-pattern> > > > > </servlet-mapping> > > > > </web-app> > > > > > > > > > > > > > > > > > > >_________________________________________________________________ > > > > Join the world?s largest e-mail service with MSN > > Hotmail. > > > > http://www.hotmail.com > > > > > > > > > > > >___________________________________________________________________________ > > > > To unsubscribe, send email to > > [EMAIL PROTECTED] and include in the > > >body > > > > of the message "signoff SERVLET-INTEREST". > > > > > > > > Archives: > > >http://archives.java.sun.com/archives/servlet-interest.html > > > > Resources: > > >http://java.sun.com/products/servlet/external-resources.html > > > > LISTSERV Help: > > http://www.lsoft.com/manuals/user/user.html > > > > > > > > > > > > > >_________________________________________________________ > > >Do You Yahoo!? > > >Get your free @yahoo.com address at > > http://mail.yahoo.com > > > > > > > > > >___________________________________________________________________________ > > >To unsubscribe, send email to [EMAIL PROTECTED] > > and include in the body > > >of the message "signoff SERVLET-INTEREST". > > > > > >Archives: > > >http://archives.java.sun.com/archives/servlet-interest.html > > >Resources: > > >http://java.sun.com/products/servlet/external-resources.html > > >LISTSERV Help: > > http://www.lsoft.com/manuals/user/user.html > > > > > > > > > > > > > >_________________________________________________________________ > > Chat with friends online, try MSN Messenger: > > http://messenger.msn.com > > > > >___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] > > and include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: > > >http://archives.java.sun.com/archives/servlet-interest.html > > Resources: > > >http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: > > http://www.lsoft.com/manuals/user/user.html > > > > >===== >BS Leopoldo Garcia Bolivar > from Kansas State University. > >__________________________________________________ >Do You Yahoo!? >Great stuff seeking new owners in Yahoo! Auctions! >http://auctions.yahoo.com > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html