Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resin DB-pooling + authentication. HELP!

 
Philippe Desrosiers
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic