wood burning stoves*
The moose likes Other Java Products and Servers and the fly likes Resin DB-pooling + authentication. HELP! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Resin DB-pooling + authentication. HELP!" Watch "Resin DB-pooling + authentication. HELP!" New topic
Author

Resin DB-pooling + authentication. HELP!

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
I need to use Connection pooling with a MySQL database for my web application under Resin-3.1.0.

Here's what I've got so far:

in resin.conf:


In the web.xml for my app:


Of course, <authenticator> is a special resin tag, so I have to change the schema of my web.xml file to use resin's special schema. Once that's done, the resource-ref element is no longer recognized.

How the F*** do I set up resin to use JDBC authentication with a connection pool? This was so simple using Tomcat.

Please, before anyone starts spouting "read the documentation" comments, rest assured I've spent the last 24 hours reading the bloody documents, and they don't help.
[ June 22, 2007: Message edited by: Philippe Desrosiers ]
Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
Okay, I finally gave up, and created a seperate <database> element in my web.xml. Now, for some reason, authentication always fails, but there's no information in the log file. I can't even tell if Resin is connecting to the database correctly, or what the problem could be. The request just gets forwarded to the uri specified in the <form-error-page> tag.

In web.xml:


No java exceptions are thrown, and I triple-checked that the required role ('user') and user ('admin') exist...
[ June 22, 2007: Message edited by: Philippe Desrosiers ]
 
Don't get me started about those stupid light bulbs.
 
subject: Resin DB-pooling + authentication. HELP!