Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Security Contraints setup..

 
Ranch Hand
Posts: 430
Android VI Editor Debian
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im trying to setup a security realm so that the user can log in via HTTP Authentication.
Im running two machines one with tomcat 5.0(on Windows) and the other one with tomcat 4.1(on Unix)

I have setup the web.xml, tomcat_users and server.xml file
but i dont seem to be able to get it to work on the Unix machine.
The same configuration works fine on my windows box.

Could you please look at this configuration and let me know if i am doing something wrong..
thanks.. (Please note that this works on the windows machine but not on the unix machine)

The Server.xml files are not quite the same, is this where my problem is? I have posted both server.xml files for windows and unix and hopefully someone can spot the problem. All the other files web.xml, tomcat-users are the same on both platforms(Also note tomcat on windows is 5.0 and on unix is 4.1)

web.xml



tomcat-users.xml




Server.xml (On Unix)




Server.xml on Windows

 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have a <security-role> element; maybe TC 4.1 needs that.
 
O. Ziggy
Ranch Hand
Posts: 430
Android VI Editor Debian
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I added the security-role and it seems to have solved the problem. Thanks for that..

Ta..
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!