tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andy gordon <efha...@yahoo.com>
Subject Re: Unable to open Tomcat Manager?
Date Fri, 21 Oct 2005 01:29:55 GMT
hi, 
 
If you are intending on using MySQL and a JDBC Realm for access control, then the Tomcat-users.xml
file is not used. I am wondering if in your role table you have two rows for user name admin?
if not then this could be your problem as there has to be one row for each role a specific
user name performs.
 
- andy  

±ç¬±³õ <pc.leung@gmail.com> wrote:
My tomcat-users.xml

> My tomcat-users.xml
> <?xml version='1.0' encoding='utf-8'?>
> <tomcat-users>
> <role rolename="tomcat"/>
> <role rolename="role1"/>
> <role rolename="manager"/>
> <role rolename="admin"/>
> <user username="tomcat" password="tomcat" roles="tomcat"/>
> <user username="role1" password="tomcat" roles="role1"/>
> <user username="both" password="tomcat" roles="tomcat,role1"/>
> <user username="admin" password="abc123" roles="admin,manager"/>
> </tomcat-users>



My server.xml
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/erp"
connectionName="root" connectionPassword="abc123" digest="MD5"
userTable="user_profile" userNameCol="usernm" userCredCol="passwd"
userRoleTable="user_role" roleNameCol="role_name" />

I have inputted username and user role in tables.

Still receive this message

HTTP Status 403 - Access to the requested resource has been denied

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message