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 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 ]
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.
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 ]
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss