Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Can't get past BASIC authentication

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My tomcat-users.xml file looks like this:



And my DD:



My index.html page has this link on it, to private/private-page.jsp.

I click on the link and I get the ugly grey box requiring me to enter a user name and password for BASIC authentication.
All is good.
I type in username = paul, password=kemp, but the grey box won’t let me through: the grey box just keeps on coming back.

What am I doing wrong?

Thanks
 
Paul Kemp
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I fixed this problem.

In case anyone else experiences this, the issue was not with the code.

I am using the Eclipse IDE, and starting and stopping the server with a Tomcat plugin. Whilst developing, I encountered the behaviour described above.

However, when I exported the project as a WAR file to the Tomcat directory, and started the Tomcat server from its bin folder, the program worked correctly.
 
Ranch Hand
Posts: 220
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wooww Paul ...Did you solve this problem.
I had the same issue one month ago when I was studying security concepts... And I didn't find a solution for that(grey box never closed)...
I am now going to try your solution..
Thanks...

 
Tuna Töre
Ranch Hand
Posts: 220
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes this works for me too..
Moreover friends do not forget to copy your war file under webapps folder under apache tomcat... because eclipse put its project in a different folder like
wtp...
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic