Better try this. create a rms.war file with only one hello.html file inside. Put this .war inside your webapps directory, tomcat should outputs messages in catalina.out (or standard output) telling you it loads rms.war. Then try to access http://localhost:<whatever prot tomcat listen on>/rms/hello.html and tell us if it still require user/password. My bet is that tomcat did not register a webapp under rms/ and so is directing request to ROOT/rms/hello.html, which for some reason is requiring authentification. One thing for sure, creating a folder under webapps/ directory is not enough to create a webapp, you need at least an entry context in catalina, which tomcat create automatically when you deploy a .war
Dani a écrit : > On 12/18/06, David Delbecq delbd-at-oma.be |tomcat| > <3unkjagvg90t...............> wrote: >> How did you deploy your simple webapp? > > I followed these instructions: > http://www.coreservlets.com/Apache-Tomcat-Tutorial/ > > Actually I made a new directory C:\apache-tomcat-5.5.20\webapps\RMS > and put a hello.jsp and a hello.html there. Then I started Tomcat and > tried to access http://localhost/RMS/hello.html . Then it asked for > user/passord. > > Did I do anything wrong? TIA. > >> Dani a écrit : >> > My out-of-the-box Tomcat is asking for user/password when I try to >> > connect to a hello world HTML in a new webapp. >> > >> > On 12/17/06, olivier nouguier olivier.nouguier-at-......... |tomcat| >> > <nazyjafop80t...............> wrote: >> >> http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html >> > >> > I don't have a web.xml in my project yet. And the default web.xml >> > doesn't have any <security-constraint> or any <login-config> tags. >> > >> >> http://java.sun.com/products/servlet/download.html >> > >> > I have JDK installed. I tried a hellow world .jsp in tomcat/ROOT/ and >> > it worked. Why if I try a hellow world .jsp or .html in a new webapp >> > directory Tomcat asks for user/password? >> > >> >> On 12/17/06, Dani <gka4cj702...............> wrote: >> >> > I have my webapp in c:\tomcat\webapps\rms\ and when I access >> >> > http://localhost/rms/ Tomcat asks me for a user and a password. >> Even >> >> > if I try a hello world HTML file. Why? >> >> > >> >> > I guess it's something I have to fix in web.xml or server.xml. >> What >> >> > should I modify? >> > >> > --------------------------------------------------------------------- >> > To start a new topic, e-mail: users@tomcat.apache.org >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]