aspose file tools
The moose likes Tomcat and the fly likes Security Contraints setup.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Security Contraints setup.. " Watch "Security Contraints setup.. " New topic
Author

Security Contraints setup..

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

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

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
You don't have a <security-role> element; maybe TC 4.1 needs that.


Android appsImageJ pluginsJava web charts
O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Hi,

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

Ta..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Security Contraints setup..
 
Similar Threads
SQL Exception No suitable driver
JNDI in Servlets
Tomcat startup.bat not working any more
Session ID
Error starting Tomcat 4.1.27