Implemented my own Realm(ASFramework.jar), put it in TC_home\server\lib
(Tomcat 4.1.18)
When I start TC I get this :
HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
ProxyServer Start
HostConfig[localhost]: Deploying web applicat
Hi,
I implemented my own class for user authentication based on RealmBase
class
public class MyDataSourceRealm
extends RealmBase {...
Is it possible somehow to access "MyDataSourceRealm" over JNDI,
something like this.
try{
Context ctx = new InitialContext();
MyData
: [EMAIL PROTECTED]
Subject: Re: DataSourceRealm, Exception performing authentication ?
Did you declare the Realm after your Resource or before it?
--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
"
Here is the problem,
I defined DataSource in Server.xml in Context for my app like this :
and that connection is working OK from my test servlet like this :
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSourc
I'm using TC 4.1.8
I read instructions for implementing DataSourceRealm, basicaly the same
as JDBCrealm but my tables for users and roles are connected with id
(number).
Users(id_user, login_name, pass)
Roles(id_role, role_name)
Users_Roles (id_user, id_role)
Because of that I can't use TC
I'm using TC 4.1.8
I read a instructions for implementing DataSourceRealm basicaly same as
JDBCrealm but my tables for users and roles are connected with id
(number).
Users(id_user, login_name, pass)
Roles(id_role, role_name)
Users_Roles (id_user, id_role)
Because of that I can't use TC realm i
5
>To: [EMAIL PROTECTED]
>Subject: RE: Cannot load JDBC driver class 'null' , again
>
>Is your jdbc driver in jar file?
>
>Regards,
>
>
>PQ
>
>"This Guy Thinks He Knows Everything"
>"This Guy Thinks He Knows What He Is Doing"
>
There must be a way to connect to DB from TC ?
-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 17:54
To: 'Tomcat Users List'
Subject: RE: BUG...? java.sql.SQLException: Cannot load JDBC driver
class 'nul l'
Can you post the Bugzilla
Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"
-----Original Message-
From: Uros Kotnik [mailto:[EMAIL PROTECTED]]
Sent: February 6, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: Cannot load JDBC driver class 'null' , again
Hi,
This questi
Hi,
This question was probbably posted many times but I didn't found answer
and I really need it.
I'm using TC 4.1
DB : Hypersonic
HSQLDB.jar in \tomcat_home\common\lib
Server.xml
--
factory
org.apache.commons.dbcp.BasicDataSourceFactory
10 matches
Mail list logo