• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with security

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have problem with security in my application.

This is my tomcat-users.xml file:


And this is part of my web.xml file:


When I open index.jsp page, authentication form appears, I'm writing login: tomcat, password: tomcat, prassing OK, but it doesn't work and the window (form) appears again. What I'm doing wrong?

And one more question, I noticed, that when this window is open (with this security form), and I'm opening a new window in a browser, this page doesn't want to load in it (but when I will close the first window, the second will load)? Why is it working like this?

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

In your tomcat-users.xml file try to add these two lines



and also add above rolenames to your username called 'tomcat' like this.

<user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/>

Hope this will works.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic