This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply 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 ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Resin DB-pooling + authentication. HELP!
 
Similar Threads
Getting JNDI to work on Resin 2.1.14
Rick's Resin/XDoclet tutorial
Sample resin.conf file
resin-web.xml
Getting Error Message from Server