my dog learned polymorphism*
The moose likes Tomcat and the fly likes JDBC Realm using Resource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JDBC Realm using Resource" Watch "JDBC Realm using Resource" New topic

JDBC Realm using Resource

Chris JonesX

Joined: Sep 05, 2005
Posts: 1
Hello all!

Having a problem setting a JDBC realm to accept the resourceName parameter, so I can specify details of the database which I'm connecting to, which I can then also get details for using a Bean.

The traditional way is as follows (as you all probably know):

Now I want to change it to something like this:

With this Tomcat throws a java.lang.reflect.InvocationTargetException error but I've tried all sorts of combinations of resourceParamas vs. real attributes, and nothing seems to give me what I want... well in fact nothing gives me a working tomcat, unless I go back to just declaring that one realm element of course.

Any help would be appreciated


I agree. Here's the link:
subject: JDBC Realm using Resource
Similar Threads
restart APACHE and TOMCAT Urgent!!!!
what is realm. ???
No Realm has been configured to authenticate against
How to access Database configuration from server.xml in tomcat5.0
JDBCRealm and MS SQL Server