Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: My webapp is oddly asking for user and password

Dani

2006-12-18

Replies:

On 12/18/06, David Delbecq delbd-at-oma.be |tomcat|
<3unkjagvg90t...............> wrote:
> 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.

I tried it, and it worked.

> 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.

How can I know if this is true?

Can I deploy hello.html without a .war file?

> 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@(protected)
> >> > To unsubscribe, e-mail: users-unsubscribe@(protected)
> >> > For additional commands, e-mail: users-help@(protected)
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@(protected)
> >> To unsubscribe, e-mail: users-unsubscribe@(protected)
> >> For additional commands, e-mail: users-help@(protected)
> >>
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>



--
......................
Email / Google Talk (Jabber) / MSN: ................

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.