• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Resin DB-pooling + authentication. HELP!

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
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
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic