Is it possible to pass login info in a link and then based on this
information set the JDBC realm status to logged in?
In other words is it possible to trigger the authentication manually in
a filter?
Thanks!
/Fredrik
It is my understanding that the JDBC realm will execute prior to any
filters or other servlets, so I wouldn't think this would be possible
unless you perform your own authentication - possibly in a filter - to
do just what you're looking for.
-Original Message-
From: Fredrik Liden [mailto
Hi,
I am using Tomcat 5.x. I am using BASIC JDBC Realm. I want to make my
own error page as the error page in the case of HTTP Status 401 error.
This error comes when I click on Cancel button when the realm asks for
user name and password.
Any one knowing this stuff, kindly reply.
Thanks
of invalidating the login info?
Can anyone shed some photons on this.
TC :5.0.19, Solaris 9, Mysql 4.something - JDBC Realm, SSL + filter giving
Cache-Control - private,no-cache,no-store
Chris Chappell
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException
To: [EMAIL PROTECTED]
Subject: Re: LogOut from JDBC Realm
Hi there -
Thanks for the responses and sorry to get back to this - I
haven't made any progress and have had other problems
(challenges?) to fix first!
I have a link to a logout servlet with the doGet() method below.
Using eclipse
Hi there
Can anyone give me a pointer how to logout a JDBC Realm authenticated user
without closing the browser.
E.g. I need a log out button which forwards to a goodbye page and does
something like this (fictitious) userSession.expire();
I've had a trawl thriough the docs etc and nothing
Hi,
You mean like session.invalidate()? ;)
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Chris Chappell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 10:10 AM
To: [EMAIL PROTECTED]
Subject: LogOut from JDBC Realm
Hi there
Can anyone give me a pointer
Yoav
Well I tried this, but it didn't seem to make any difference so I thought
maybe it was just resetting the session vars.
But I'll have another play with it.
Ceeres
Chris Chappell
Subject: RE: LogOut from JDBC Realm
Hi,
You mean like session.invalidate()? ;)
Yoav Shapira http
Hi there
Can anyone give me a pointer how to logout a JDBC Realm authenticated user
without closing the browser).
E.g. I need a log out button with forwards to a goodbye page and does something
like this (fictitious) userSession.expire();
I've had a trawl thriough the docs etc and nothing
:
Hi there
Can anyone give me a pointer how to logout a JDBC Realm authenticated user
without closing the browser).
E.g. I need a log out button with forwards to a goodbye page and does
something like this (fictitious) userSession.expire();
I've had a trawl thriough the docs etc and nothing
On Tuesday 23 November 2004 17:09, Chris Chappell wrote:
Hi there
Hi,
Can anyone give me a pointer how to logout a JDBC Realm authenticated user
without closing the browser. E.g. I need a log out button which forwards to
a goodbye page and does something like this (fictitious
Hi
I use JDBC Realm (Tomcat 5) to authenticate users. Users with
PRIVATE_ACCESS role can access Private Area (/private/*). But when I try
to log in a user having PUBLIC_ACCESS role, Tomcat doesn't redirect the
user to error.jsp page but redirect the user to something like this
HTTP Status 403
:
: is there any way to have an Default User authenticated vs the JDBC Realm.
: Our custom wants to have the user guest logged in by default, and you
: can then 'login' with your credentials via an explicit link within the
: webapp.
Why not just make the guest-related areas public?
-QM
Hi together,
is there any way to have an Default User authenticated vs the JDBC Realm.
Our custom wants to have the user guest logged in by default, and you
can then 'login' with your credentials via an explicit link within the
webapp.
Thanks in advance
Mark
On Sun, Oct 24, 2004 at 07:27:42PM +0200, Mark Doppelfeld wrote:
: is there any way to have an Default User authenticated vs the JDBC Realm.
: Our custom wants to have the user guest logged in by default, and you
: can then 'login' with your credentials via an explicit link within the
: webapp
Because that would mean to maintain a lot of urls which are public (but
don't) belong to the same sub url (like /public/... and /protected/...)
QM wrote:
On Sun, Oct 24, 2004 at 07:27:42PM +0200, Mark Doppelfeld wrote:
: is there any way to have an Default User authenticated vs the JDBC Realm
Argh... don't you hate it when you finally give up on the docs
and post a question, then look at the docs and see the answer?
Not sure how I missed it, but in:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html
Under the heading Configuring a Realm, it says that
I am trying to use the JDBC realm in my Tomcat web application and
it mostly works, but after logging into the application, Tomcat
sends the application's style.css file to my browser...
I am using Tomcat 5.0.16 on a Fedora Core 2 system. I have configured
the JDBC realm this way in conf
List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Wrong file served after JDBC Realm authentication
Date: Wed, 16 Jun 2004 23:19:09 -0400
I am trying to use the JDBC realm in my Tomcat web application and
it mostly works, but after logging into the application, Tomcat
sends the application's
Hi , I 've installed tomcat 5.0.24 and i try to implement security by JDBC Realm and
the context is Loaded
in the web.xml i wrote that:
security-constraint
web-resource-collection
web-resource-nameBACK OFFICE/web-resource-name
url-pattern/carpetaUno/*/url-pattern
Hi , I 've installed tomcat 5.0.24 and i try to
implement security byJDBC Realm and the context is Loaded
in the web.xml i wrote that:
security-constraint
web-resource-collection
web-resource-nameBACK
OFFICE/web-resource-name
url-pattern/carpetaUno/*/url-pattern
/web-resource-collection
Hi,
I'm running Tomcat 5.0.19 and I configured a JDBC realm. Everything works
fine.
Now instead of going to j_security_check to authenticate a user, I would
like to go to my own servlet that would:
1 - Authenticate the user
2 - Do some other tasks before going to the next
Hello,
I'm novice with Tomcat. I'm currently developing an application with access control
based on forms (auth-methodFORM/auth-method in the web.xml) and on declarative
security with a JDBC realm.
I use the MVC model with servlets redirecting to jsp pages with (forward method
You may want to use response.sendRedirect() at step 3.
-Original Message-
From: Eric Vogue [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 8:33 AM
To: [EMAIL PROTECTED]
Subject: [NEWBIE] Setting up a JDBC Realm and using RequestDispatcher
Hello,
I'm novice with Tomcat. I'm
I'm trying to set up Tomcat 5 to use a JDBCRealm that points to a MS SQL
Server 2000 instance. I also have a datasource set up to the same
database instance. I can get one or the other to work, but not both
together. If I move the JDBCRealm inside my Host or Context tag, the
datasource
Subject
Re: JDBC Realm
Get rid of the single quotes.
userNameCol=USERNAME
-Tim
Justin Wesbrooks wrote:
I have a JDBCRealm set up in Tomcat 4.1.29. The realm config is as
follows..
Realm className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=org.gjt.mm.mysql.Driver
cc
Subject
Please respond to Re: JDBC Realm
Tomcat
Subject
Please respond to Re: JDBC Realm
Tomcat Users
List
On Thursday 20 November 2003 8:51 am, Justin Wesbrooks wrote:
Thanks for the response. When I describe the user table, I get the
following output...
mysql describe users;
Isn't users the default table in mysql where it stores MySQL logins? Or was
that your intention. If not, you might
' in 'where clause'
which should come from the attempt to get the roles for this user.
Greetings
Andreas Mohrig
-Original Message-
From: Justin Wesbrooks [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:59 PM
To: Tomcat Users List
Subject: Re: JDBC Realm
By the way,
I know my
Subject
Please respond to RE: JDBC Realm
Tomcat Users
List
cc
Subject
Please respond to RE: JDBC Realm
Tomcat Users
Jon,
Isn't users the default table in mysql where it stores MySQL logins? Or was
that your intention. If not, you might have a table name conflict.
Naw, that's in a different tablespace. His stuff looks correct.
-chris
-
To
I have a JDBCRealm set up in Tomcat 4.1.29. The realm config is as
follows..
Realm className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost:3306/cofc?user=root;password=root
userTable=users
userNameCol='USERNAME'
Get rid of the single quotes.
userNameCol=USERNAME
-Tim
Justin Wesbrooks wrote:
I have a JDBCRealm set up in Tomcat 4.1.29. The realm config is as
follows..
Realm className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=org.gjt.mm.mysql.Driver
PROTECTED]
11/19/2003 05:37 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
Tomcat Users List [EMAIL PROTECTED]
cc
Subject
Re: JDBC Realm
Get rid of the single quotes.
userNameCol=USERNAME
-Tim
Justin Wesbrooks wrote:
I have a JDBCRealm set up in Tomcat 4.1.29
Hello,
I am running tomcat 4.1.27 on windows 2000 server with sql server 7 in
production. Using the JDBC Realm to manage the login. The login works
just fine but then after some time it hangs up. The login page is
served so I know tomcat is still running but once the user types
[EMAIL PROTECTED] wrote:
Hello,
I am running tomcat 4.1.27 on windows 2000 server with sql server 7 in
production. Using the JDBC Realm to manage the login. The login
works just fine but then after some time it hangs up. The login page
is served so I know tomcat is still running but once
David,
I also have the user passwords encrypted using MD5 and this works fine.
However we have a need to have all clear text passwords encrypted in
configuration files. I need this realm to work with the connectionPassword
value foobar encrypted. Does anyone know if this has been done and is there
.
- Original Message -
From: Gardner, David [IT] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 3:15 AM
Subject: JDBC Realm
I have a JDBC Realm configured against a sybase database and it works
fine.
See below I have changed the details for obvious security reasons
Hello,
Please let me explain a little more. It is the password that the JDBC realm
uses to connect to the database that should be encrypted for example
connectionPassword=foobar should look something like
connectionPassword=3dc69416b0783cac9f3dda37b6bb0862. I have been able to
deal with user
I have a JDBC Realm configured against a sybase database and it works fine.
See below I have changed the details for obvious security reasons.
Realm className=org.apache.catalina.realm.JDBCRealm
debug=99
driverName=com.sybase.jdbc2.jdbc.SybDriver
I'm using tomcat 4.1.18 with Microsoft Internet Explorer 6.0 sp1 as the
browser and oracle as the database to which I authenticate users.
Oddly, the colon character cannot be used in user names, but can be used in
passwords. I'm assuming my code is at fault, but I cannot see how.
Perhaps there
In the basic authentication approach the userid and password
are concatenated with a ':' between them, base64 encoded, then
placed in an HTTP header to send to the server.
Obviously, the server will have trouble differentiating between
the ':' in the username and the one separating the user name
Hi,
I'm trying to setup my web app to use JDBC Realm. I am using SQL Server 2000.
Here is the script to create tables:
CREATE TABLE [dbo].[t_Role] (
[RoleId] [int] IDENTITY (1, 1) NOT NULL ,
[role] [varchar] (12)
)
CREATE TABLE [dbo].[t_Usr] (
[UsrId] [int] IDENTITY
Hi again,
I'm using version 4.1.27 of tomcat, and my login page is taking forever to
load. I'm not actually getting any error messages.
Thanks again,
Rudi
Hi,
I'm trying to setup my web app to use JDBC Realm. I am using SQL Server
2000.
Here is the script to create tables:
CREATE
.
Thanks again,
Rudi
Hi,
I'm trying to setup my web app to use JDBC Realm. I am using SQL Server
2000.
Here is the script to create tables:
CREATE TABLE [dbo].[t_Role] (
[RoleId] [int] IDENTITY (1, 1) NOT NULL ,
[role] [varchar] (12)
)
CREATE TABLE [dbo].[t_Usr
getting any error messages.
Thanks again,
Rudi
Hi,
I'm trying to setup my web app to use JDBC Realm. I am using SQL Server
2000.
Here is the script to create tables:
CREATE TABLE [dbo].[t_Role] (
[RoleId] [int] IDENTITY (1, 1) NOT NULL ,
[role] [varchar] (12)
)
CREATE TABLE [dbo
in case no one noticed and it matters, web.xml has following typo in it,
where resource is spelled ressource:
web-ressource-collection
web-ressource-nametest/web-ressource-name
I wish I had seen that earlier x_x.
Thanks alot Paul, it's now showing up auth window.
Unfortunately I have
Don't you get:
Digester.error(): org.xml.sax.SAXParseException: Element
security-constraint requires additional elements.
On 09/24/2003 09:48 AM Laurent Perez wrote:
in case no one noticed and it matters, web.xml has following typo in it,
where resource is spelled ressource:
Don't you get:
Digester.error(): org.xml.sax.SAXParseException: Element
security-constraint requires additional elements.
No I don't. Should I ?
laurent
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Yes! I was unaware that you could disable xml parsing exceptions. But it
seems you have. :(
Perhaps it depends on the xml parser you are running. Mine is crimson
(SAX?).
Adam
On 09/24/2003 11:29 AM Laurent Perez wrote:
Don't you get:
Digester.error(): org.xml.sax.SAXParseException: Element
Yes! I was unaware that you could disable xml parsing exceptions. But it
seems you have. :(
Sorry but I don't understand the link between my xml parser and Postgres'
MD5 encoding.
Do you have your Tomcat setup authenticating users against a Postgresql
JDBCRealm using MD5 digest ?
laurent
Oh I'm very sorry, perhaps I confused your post with somebody else's.
The problem I am referring to is the issue with the web-resource-name
being spelt wrong.
Adam
On 09/24/2003 12:08 PM Laurent Perez wrote:
Yes! I was unaware that you could disable xml parsing exceptions. But
it seems you
or
put a index.html in the /test/ dir and try /test/index.html and see if you
then get the auth dialog. Then you'll know if that's the problem.
-Original Message-
From: Paul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 4:06 PM
To: Tomcat Users List
Subject: Re: JDBC Realm
Hello
I am trying to protect a webapp I wrote using a JDBCRealm, but it doesn't
seem to work as expected. I am using Tomcat 4.1.27, and Postgresql 7.3.2,
with latest JDBC driver within $tomcat/common/lib.
My realm is described as follows, in $tomcat/conf/server.xml :
Realm
Your config looks OK. Are you getting any errors logged when you try to
log on?
On 09/23/2003 04:43 PM Laurent Perez wrote:
Hello
I am trying to protect a webapp I wrote using a JDBCRealm, but it
doesn't seem to work as expected. I am using Tomcat 4.1.27, and
Postgresql 7.3.2, with latest
: Tuesday, September 23, 2003 12:39 PM
Subject: Re: JDBC Realm problems
Your config looks OK. Are you getting any errors logged when you try to
log on?
On 09/23/2003 04:43 PM Laurent Perez wrote:
Hello
I am trying to protect a webapp I wrote using a JDBCRealm, but it
doesn't seem
-Original Message-
From: Koes, Derrick
Sent: Friday, August 29, 2003 11:05 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat startup with JDBC Realm
I have a timing issue where both my database and tomcat are being run as
Windows services. If my server reboots for some reason, even though
http://marc.theaimsgroup.com/?l=tomcat-userm=106216990220530w=2
-Tim
Koes, Derrick wrote:
-Original Message-
From: Koes, Derrick
Sent: Friday, August 29, 2003 11:05 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat startup with JDBC Realm
I have a timing issue where both my database
To: Tomcat Users List
Subject: Re: FW: Tomcat startup with JDBC Realm [RE-POST]
http://marc.theaimsgroup.com/?l=tomcat-userm=106216990220530w=2
-Tim
Koes, Derrick wrote:
-Original Message-
From: Koes, Derrick
Sent: Friday, August 29, 2003 11:05 AM
To: '[EMAIL PROTECTED
reboots for some reason, even though I have
startup dependencies (tomcat depends on db), tomcat often doesn't start my
web app because it failed the initial JDBC check it does for a database when
there is a JDBC realm configured. I presume this is because Windows reports
the db service as started so
Hi all. I am using auth-methodBASIC/auth-method to have users log in.
Is there a way for me to get the current username of the user that just
logged in, in a servlet? I would like to log into a database each time a
user logs in.
Thanks.
: Friday, July 11, 2003 3:29 PM
To: [EMAIL PROTECTED]
Subject: JDBC Realm question
Hi all. I am using auth-methodBASIC/auth-method to have users log in.
Is there a way for me to get the current username of the user that just
logged in, in a servlet? I would like to log into a database each time
That did it. Thank you very much.
From: Farrell, Patrick [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JDBC Realm question
Date: Fri, 11 Jul 2003 15:38:04 -0400
Try this ..
public void doGet(HttpServletRequest req
You don't have to specify a role.
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: 08 July 2003 19:18
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
Thanks for reply Mike.
After thinkin about this message some more;
I think that the reason I am
Can anyone tell me what this message means, and how to correct it?
2003-07-08 12:56:03 ContextConfig[/hd]: WARNING: Security role name
tomcat used in an auth-constraint without being defined in a
security-role
Here is a copy of my WEB-INF/web.xml:
?xml version=1.0 encoding=ISO-8859-1?
, 2003 12:08 PM
To: Tomcat Users List
Subject: JDBC Realm Warning Message?
Can anyone tell me what this message means, and how to correct it?
2003-07-08 12:56:03 ContextConfig[/hd]: WARNING: Security role name
tomcat used in an auth-constraint without being defined in a
security-role
Thanks for reply Mike.
After thinkin about this message some more;
I think that the reason I am getting this message is because I still
have not successfully created a JDBC Realm.
I'm thinking that the Roles are defined in the database that I'm not
corectly reading yet
Rick Roberts wrote:
Thanks for reply Mike.
After thinkin about this message some more;
I think that the reason I am getting this message is because I still
have not successfully created a JDBC Realm.
I'm thinking that the Roles are defined in the database that I'm not
corectly reading yet
Reply inlined
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 1:51 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
Rick Roberts wrote:
Thanks for reply Mike.
After thinkin about this message some more
is because I still
have not successfully created a JDBC Realm.
I'm thinking that the Roles are defined in the database that I'm not
corectly reading yet.
Otherwise; where would a security-role element belong?
Should it be part of web.xml?
I am assuming (lots of stuff, because I have not done
the error, If I
leave it in I don't get the error message, but my test app does not
successfully log-in.
QUESTIONS:
1. Should my new JDBC Realm be located inside Engine or Host element?
2. Should I need to comment out the UserDatabaseRealm that is defined
in the Tomcat sample server.xml file?
3
Oh! One other question.
Does the tomcat-users.xml file have anything to do with setting up a
JDBC Realm?
--
***
* Rick Roberts*
* Advanced Information Technologies, Inc
quickly: no. that's the memoryrealm
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:04 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
Oh! One other question.
Does the tomcat-users.xml file have anything to do
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 3:59 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
OK. The error message is gone now! Thanks.
It took me a few tries to figure out where the
security-role needed
Mike,
Thanks a bunch!!
I feel like I'm well on my way to figuring this out now.
Where can I find the DTDs and the servlet API?
Sorry, can't say. It looks about right, but if I'm doing
container-managed, I usually just do Basic AUTH. (which throws the
OS-based dialog box).
I can't stand
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:22 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
Mike,
Thanks a bunch!!
I feel like I'm well on my way to figuring this out now.
Where can I find
Isn't mysql a client program? If so, I can connect with
the user/pw.
Tarun Ramakrishna Elankath wrote:
Seems like an access problem to me.
Dean, did you try connecting to the server from a mysql client with the
given username/password to check whether you are able to connect ?
On Sat,
I am attempting to use JDBC Realm as described in the Apress
book by James Goodwill. My os is RH 8.0. I'm using MySQL
4.0.12 and Connector/J 3.06. I am using Tomcat 4.0.6. I set
up a tomcatusers database and a test user as per the book.
I dropped mysql-connector-java-3.0.6-stable-bin.jar
check mysql port
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to use a JDBC Realm
I am attempting to use JDBC Realm as described in the Apress
book by James Goodwill. My os
Can you be a little more specific? I'm not a mysql expert.
Galbayar Dorjgotov wrote:
check mysql port
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to use a JDBC Realm
I am
Seems like an access problem to me.
Dean, did you try connecting to the server from a mysql client with the
given username/password to check whether you are able to connect ?
On Sat, 2003-03-29 at 07:50, Dean A. Hoover wrote:
Can you be a little more specific? I'm not a mysql expert.
Hi.
I am trying to create a realm login.
When I use a mysql, MS Access or Oracle DB it works just fine. But when
I try with MS SQL 2000 server it just does not work.
Can anybody tell me why?
Søren Blidorf
Nolas Consulting
Gustav Wiedsvej 9
DK-2860 Søborg
Telefon: +45 39676513
Direkte: +45
Søren Blidorf wrote:
Hi.
I am trying to create a realm login.
When I use a mysql, MS Access or Oracle DB it works just fine. But when
I try with MS SQL 2000 server it just does not work.
Can anybody tell me why?
Søren Blidorf
Nolas Consulting
Gustav Wiedsvej 9
DK-2860 Søborg
Telefon: +45
=password
userRoleTable=user_roles roleNameCol=rolename /
/Context
-Oprindelig meddelelse-
Fra: Xavier Prélat [mailto:[EMAIL PROTECTED]
Sendt: 25. februar 2003 13:44
Til: Tomcat Users List
Emne: Re: JDBC Realm MS SQL 2000
Søren Blidorf wrote:
Hi.
I am trying
What Exception do you get?
- Original Message -
From: Søren Blidorf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 7:51 AM
Subject: VS: JDBC Realm MS SQL 2000
This is how I set it up for Access.
When I change the driver settings to Oracle or MySQL it works
do I write db.users? or just
users
Either way it just returns to my errorpage
-Oprindelig meddelelse-
Fra: Ian Hunter [mailto:[EMAIL PROTECTED]
Sendt: 25. februar 2003 14:27
Til: Tomcat Users List
Emne: Re: JDBC Realm MS SQL 2000
What Exception do you get?
- Original Message
]
Sent: Tuesday, February 25, 2003 5:36 AM
To: [EMAIL PROTECTED]
Subject: JDBC Realm MS SQL 2000
Hi.
I am trying to create a realm login.
When I use a mysql, MS Access or Oracle DB it works just fine. But when
I try with MS SQL 2000 server it just does not work.
Can anybody tell me why?
Søren
I am unable to start Tomcat with a JDBC Realm
configured. I am guessing it is because Tomcat can't
find the JDBC driver, but it should be able to. I have
the driver in shared/lib and shared/classes. Here is my
Realm configuration from server.xml:
Realm
className
: Tuesday, February 18, 2003 1:40 PM
To: [EMAIL PROTECTED]
Subject: JDBC Realm problem
I am unable to start Tomcat with a JDBC Realm
configured. I am guessing it is because Tomcat can't
find the JDBC driver, but it should be able to. I have
the driver in shared/lib and shared/classes. Here is my
PROTECTED] wrote in message
003001c2d774$cfbec780$0100a8c0@glamdring">news:003001c2d774$cfbec780$0100a8c0@glamdring...
I am unable to start Tomcat with a JDBC Realm
configured. I am guessing it is because Tomcat can't
find the JDBC driver, but it should be able to. I have
the driver i
Message-
From: Sean Dockery [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Authentication Problem
Where I wrote did you remove, I meant to write did you omit. Basically
I want to know exactly what you edited out
Yes, that is correct. To have a Realm apply only to a context, it must
declared inside the context tags. So...
Context ... /
becomes
Context ...
Realm ... /
/Context
--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
level JDBC
realm back in (exactly the same as the top level realm)
Removing the top level realm makes no difference on startup or authentication.
Shouldn't I be able to authenticate for the manager and admin outside of a contect
level database?
Thanks!!
Geoff
SERVER.XML:
Server port=8005
.
In the following server.xml, if I remove the context level realm, the
authentication fails against the database (I can connect on startup, but I
cannot authenticate to access the manager or admin applications). However,
if I put the context level JDBC realm back in (exactly the same as the top
level realm
that authentication is failing against the memory realm (so it doesn't
bother checking your JDBC realm at the engine level).
At 17:27 2003-02-06 -0700, you wrote:
Um. I don't see a context-level realm in there. There is a host-level
realm, however. :-)
Did you remove anything at all (such as other
Dear Friends!
I use Tomcat4 authentication (JDBCRealm) in my applications. It works
fine with ORACLE, but trying to use this with INFORMIX database, I get
the following error in stdout.log file when starting Tomcat:
Create Catalina server
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
I am not sure if this has come up or not, but the example showing how
to do a JDBC realm at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRealm
is incorrect.
The example shows :
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName
You should also be able to use connectionUser=dbuser and
connectionPassword=dbpass in the realm tag instead of putting it in the
URL.
Rick
- Original Message -
From: John Murtari [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 2:20 PM
Subject: JDBC Realm example
1 - 100 of 313 matches
Mail list logo