set docBase="webapps/database" in server.xml try http://localhost:8080/database/servlet/DatabaseServlet
>===== Original Message From "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]> ===== >Hi all, > >I'm using jdk1.2.2 and Tomcat-3.3.a. I have a servlet and I want to deploy it to tomcat. Therefore, I created a database directory in tomcat webapps directory, and I created following directorys. > >C:\Jakarta-tomcat-3.3a\webapps\database >C:\Jakarta-tomcat-3.3a\webapps\database\web-inf >C:\Jakarta-tomcat-3.3a\webapps\database\web-inf\classes >C:\Jakarta-tomcat-3.3a\webapps\database\web-inf\lib > >I located my servlet in web-inf\classes directory, created a web.xml file in /web-inf directory, then wrote following line in server.xml file. > ><Context path="/database" docBase="database" debug="0" reloadable="true" /> > >To run my servlet I use following URL ; > >http://localhost:8080/database/DatabaseServlet > >but I received an error message (HTTP404- Page not found). > >How can I run my servlet? Can anyone help me? ___________________________________________________________________________ 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