Mark
Thank you. I looked at DataSourceRealm.open() took the following lines and put
them into my custom Realm:
///
if (localDataSource) {
context = ContextBindings.getClassLoader();
context = (Context) context.lookup("comp/env");
} else {
context = getServer().g
Chris, thank you for your reply
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: 26 November 2014 04:17
> To: Tomcat Users List
> Subject: Re: How can code in a Realm gain access to a Globally Named
> Resource
>
> -BEGIN PGP SIGNED MESSAGE
Hello
Web applications gain access to Globally Named JDBC Resources
by adding a to context.xml
Then using code like:
Context initContext = new InitialContext();
dbLookupStr = "java:comp/env/" + dbResourceName;
ds = (DataSource)initContext.lookup(dbLookupStr);
HOW CAN code in a custom Realm g
I ignored the errors logged by JDBCRealm
and proceeded to create my custom Realm.
I extended JDBCRealm overriding the authenticate method and
using inherited JDBCRealm methods for authorization.
This new Realm works OK but JDBCRealm code was logging errors that
look related to the ones logged
Hello
I have Tomcat 8.0.9 running under NetBeans. An application using JDBCRealm is
authenticating and authorising users OK but Tomcat is logging errors.
Errors get logged on Tomcat startup and another each time a user logs in.
Numerous occurrences of this Exception:
10-Nov-2014 15:18:48.108 S
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org]
> Sent: 03 November 2014 20:51
> To: Tomcat Users List
> Subject: Re: Separation of CATALINA_HOME and CATALINA_BASE
>
> On 03/11/2014 19:38, vince.w...@thomsonreuters.com wrote:
>
>
>
> > Yes, I've read RUNNING.TXT and
Neven
Even Tomcat newbies have to do real work that will find its way to a real
server.
Either of the benefits you described as a) and b) mean CATALINA_HOME and
CATALINA_BASE need to be separate on a real server.
I would rather get it straight from the outset rather than mess about with a
con
On the subject of "Newbie-friendly", I think Tomcat would be a whole lot more
friendly if CATALINA_HOME and CATALINA_BASE were always totally separate with a
minimum of overlap.
Although I used Tomcat quite a lot years ago I still consider myself a Tomcat
Newbie, mostly because configuration al
Dan
Thank you. Jconsole mbeans pointed me in the right direction. It made me doubt
that Tomcat was reading the same server.xml that I was editing. Sure enough
when I found that I was not able to change the description of the Resource
"UserDatabase" then I knew I was editing the wrong copy of ser
Hello
I'm having difficulty getting a JDBC DataSource using Tomcat 8.
I want to define the JDBC details in server.xml so the database identified
depends on the server and not the application. It will be beneficial for me if
the applications only need to know the JDBC name and not password detail
I don’t see their separation as being incompatible with running from a default
shell or batch file.
It already figures out where to use for CATALINA_HOME, the default place for
CATALINA_BASE could be a standard difference from CATALINA_HOME, for example:
CATALINA_BASE=$CATALINA_HOME/../catalina_
Mark
Thank you for such a quick response.
Personally I don't have much interest in Tomcat's Windows installer. I am more
interested in the directory structure that you get from expanding
apache-tomcat-nnn.tar.gz
Vince
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sen
Hello
I'm coming back to Tomcat after years using GlassFish. The little that I ever
understood of Tomcat 3, 4 and 5 is now decidedly rusty so I've been reading
Tomcat 7's RUNNING.txt with interest.
The section under the heading:
Advanced Configuration - Multiple Tomcat Instances
Looks interestin
13 matches
Mail list logo