RE: Configured JDBCRealm

2014-09-03 Thread Dalecki, Janusz
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, 4 September 2014 12:57 AM To: Tomcat Users List Subject: Re: Configured JDBCRealm -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Janusz, On 9/2/14, 10:31 PM, Dalecki, Janusz wrote: >

RE: Configured JDBCRealm

2014-09-03 Thread Dalecki, Janusz
-Original Message- From: Daniel Mikusa [mailto:dmik...@pivotal.io] Sent: Wednesday, 3 September 2014 10:03 PM To: Tomcat Users List Subject: Re: Configured JDBCRealm On Tue, Sep 2, 2014 at 9:59 PM, Dalecki, Janusz wrote: > > > -Original Message- > From: D

Re: Configured JDBCRealm

2014-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Janusz, On 9/2/14, 10:31 PM, Dalecki, Janusz wrote: > I have just started reading on DataSource realm. But I think I am > facing the same problem as with JDBCRealm: 1) How can I get > hold of an instance of this DataSourceRealm object within m

Re: Configured JDBCRealm

2014-09-03 Thread Daniel Mikusa
On Tue, Sep 2, 2014 at 9:59 PM, Dalecki, Janusz wrote: > > > -Original Message- > From: Daniel Mikusa [mailto:dmik...@pivotal.io] > Sent: Tuesday, 2 September 2014 10:04 PM > To: Tomcat Users List > Subject: Re: Configured JDBCRealm > > On Tue, Sep 2, 2014

RE: Configured JDBCRealm

2014-09-02 Thread Felix Schumacher
On 3. September 2014 04:31:45 MESZ, "Dalecki, Janusz" wrote: > > >-Original Message- >From: Mark Eggers [mailto:its_toas...@yahoo.com.INVALID] >Sent: Wednesday, 3 September 2014 1:21 AM >To: Tomcat Users List >Subject: Re: Configured JDBCRealm &

RE: Configured JDBCRealm

2014-09-02 Thread Dalecki, Janusz
-Original Message- From: Mark Eggers [mailto:its_toas...@yahoo.com.INVALID] Sent: Wednesday, 3 September 2014 1:21 AM To: Tomcat Users List Subject: Re: Configured JDBCRealm -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/2/2014 5:04 AM, Daniel Mikusa wrote: > On Tue, Sep 2, 2014

RE: Configured JDBCRealm

2014-09-02 Thread Dalecki, Janusz
-Original Message- From: Daniel Mikusa [mailto:dmik...@pivotal.io] Sent: Tuesday, 2 September 2014 10:04 PM To: Tomcat Users List Subject: Re: Configured JDBCRealm On Tue, Sep 2, 2014 at 7:00 AM, Dalecki, Janusz wrote: > Hi, > I have configured JDBCRealm Tomcat with the fol

Re: Configured JDBCRealm

2014-09-02 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/2/2014 5:04 AM, Daniel Mikusa wrote: > On Tue, Sep 2, 2014 at 7:00 AM, Dalecki, Janusz > wrote: > >> Hi, I have configured JDBCRealm Tomcat with the following: >> >> >> >> > driverName

Re: Configured JDBCRealm

2014-09-02 Thread Daniel Mikusa
On Tue, Sep 2, 2014 at 7:00 AM, Dalecki, Janusz wrote: > Hi, > I have configured JDBCRealm Tomcat with the following: > > > > driverName="org.postgresql.Driver" > connectionURL="jdbc:postgresql://localhost:5432/df_Scheduler?user=postgre

Configured JDBCRealm

2014-09-02 Thread Dalecki, Janusz
Hi, I have configured JDBCRealm Tomcat with the following: I have a few questions: 1) How can I get hold of this realm object within my Java app? 2) Even if I get the instance of the JDBCRealm - how do I get the list of all roles available? Regards, Janusz

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Maximilian Krickl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You need to use localDataSource="true" so the Realm looks locally for the DataSource. Great, that is even better (and it also works) :-) Thanks again. MaxX -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkvsZgwACgkQ/6VV

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Maximilian Krickl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not positive about this, but I think your declaration will need to be in server.xml in order to be used for a (even though the is specific to just one ). The authentication is done by Tomcat, not the webapp, so it's Tomcat that has to

RE: Configured JDBCRealm, but is not used

2010-05-13 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Configured JDBCRealm, but is not used > > No, you can have the resource at the context level. > > > The authentication is done by Tomcat, not the webapp, so > > it's Tomcat that has to have the database

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Mark Thomas
On 13/05/2010 21:29, Caldarale, Charles R wrote: From: Maximilian Krickl [mailto:maxkri...@gmx.de] Subject: Re: Configured JDBCRealm, but is not used when I try to login via the login form of tomcat I get this: 13.05.2010 21:59:07 org.apache.catalina.realm.DataSourceRealm open SCHWERWIEGEND

RE: Configured JDBCRealm, but is not used

2010-05-13 Thread Caldarale, Charles R
> From: Maximilian Krickl [mailto:maxkri...@gmx.de] > Subject: Re: Configured JDBCRealm, but is not used > > when I try to login via the login form of tomcat I get this: > 13.05.2010 21:59:07 org.apache.catalina.realm.DataSourceRealm open > SCHWERWIEGEND: Exception perform

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Maximilian Krickl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody, Ew. Don't use a JDBCRealm (it's synchronised etc), use a DataSourceRealm with an appropriately configured DataSource. so I changed my META-INF/context.xml to: - --- - --- and added some lines to the WEB-INF/w

Re: Configured JDBCRealm, but is not used

2010-05-09 Thread Pid
On 09/05/2010 12:04, Martin Gainty wrote: > > >> >> The above is wrong. Remove docBase and path, they are illegal in >> context.xml. > > mg> > > what do you mean by the term illegal..please be more descriptive in your > terminology If I'd said "... they are bearnaise in context.xml" your que

RE: Configured JDBCRealm, but is not used

2010-05-09 Thread Martin Gainty
> > The above is wrong. Remove docBase and path, they are illegal in > context.xml. mg> what do you mean by the term illegal..please be more descriptive in your terminology docBase The Document Base (also known as the Context Root) directory for this web application, or the pathname to th

RE: Configured JDBCRealm, but is not used

2010-05-08 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] > Subject: Re: Configured JDBCRealm, but is not used > > > > > The above is wrong. Remove docBase and path, they are illegal in > context.xml. Also get rid of the debug attribute - it hasn't been used in years. - Chuck T

Re: Configured JDBCRealm, but is not used

2010-05-08 Thread Pid
On 08/05/2010 17:41, Maximilian Krickl wrote: > Hello, > > I installed Tomcat 6.0.26 and PostgreSQL 8.3 on my PC (win) and a server > (ubuntu). On both's machines the databases are similar. > I use Eclipse 3.5 Java EE (Dynamic Web Project). My project uses "Form > based authentication". > > The M

Configured JDBCRealm, but is not used

2010-05-08 Thread Maximilian Krickl
Hello, I installed Tomcat 6.0.26 and PostgreSQL 8.3 on my PC (win) and a server (ubuntu). On both's machines the databases are similar. I use Eclipse 3.5 Java EE (Dynamic Web Project). My project uses "Form based authentication". The META-INF folder contains a context.xml: --- c