Hi !
I try to implement JDBCRealm but witout success.
I read documentation and make all as it said in it,but
when i try to login in tomcat Manager i can't do it.
I put this code in server.xml:
<Realm
className="org.apache.catalina.realm.JDBCRealm"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/jdbcrealm"
connectionName="root" connectionPassword=""
userTable="users" userNameCol="user_name"
userCredCol="user_pass"
userRoleTable="user_roles"
roleNameCol="role_name" />
also i have this in server.xml
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
I have database called jdbcrealm and to tables like
this in it
create table users (
user_name varchar(15) not null primary key,
user_pass varchar(15) not null
);
create table user_roles (
user_name varchar(15) not null,
role_name varchar(15) not null,
primary key (user_name, role_name)
);
My MySQL databse username is root and i have no
password for MYSQL database.
I put mysql-connector-3.0.17.jar in
$CATALINA_HOME/server/lib and in
$CATALINA_HOME/common/lib.
I use 5.5.16 Tomcat.
I got this error when i try to connect to Manager:
--------------------------------------------
HTTP Status 403 - Access to the requested resource has
been denied
________________________________________
type Status report
message Access to the requested resource has been
denied
description Access to the specified resource (Access
to the requested resource has been denied) has been
forbidden.
----------------------------------------------------
What i am doing wrong?
Any help will be great ,thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]