I want to configuration a webapp. that runs under Tomcat with authentication via tomcat-user.xml file. But my problem is that the browser popup window where I can type the username and the password in, does not appear.
I am one of the moderators of the JavaRanch forums. Here on JavaRanch, we have a naming policy. We want the users of JavaRanch to use a real-sounding name as their display name.
Unfortunately, your name "Curry Wurst" does not comply to the naming policy. Your display name should consist of a real-sounding first name, space, and a second name. Not only a first name, no obviously fake nickname, no initials only for the second name.
Please read the naming policy carefully and change your display name. You can change your name by editing your profile.
Please note that we are taking the naming policy seriously. If you do not change your display name, your account on JavaRanch might be locked.
thank you for your replay I still changed the web.xml to
I include your advice with the <url-pattern>/login/*</url-pattern> but nothing happens.
Here are some more information: I use tomcat 6.0.14 under Windows XP and Firefox and IE as browser.
Joined: Mar 22, 2005
May we call you Egon?
If the name of your web app is "login" -and the URL you've posted suggests that it is-, then "login" should not be part of the URL patterns. Try "<url-pattern>/LogInServlet.do</url-pattern>" or, of course, "<url-pattern>/*</url-pattern>" if you want to protect everything.
Joined: Dec 14, 2001
I'ill take the strawberry ;-)
Ok, I protect everything with "<url-pattern>/*</url-pattern>" but the popup didn't appear.