You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Konrad Billewicz <ko...@akonet.pl> on 2005/08/04 23:07:44 UTC
[Request] Struts documentation update
Hello,
I propose to modify Struts documentation named "Realm Configuration HOW-TO"
located at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html.
Today I spent at work 4 hours (!) fighting with DataSourceRealm. I had a
continuously error: "javax.naming.NameNotFoundException: Name jdbc is not bound
in this Context". I got really mad because data source was excellently
configured. I searched tons of web pages using google and found only that many
people have similar problem. Both colleague and I haven't got any idea what is
wrong.
Finally, at home, 20 minutes ago (23:00 ;-), I figured out what was the reason.
"localDataSource" parameter has to be set to "true". I found this solution on
usenet archive in Polish post written more that year ago. All the time I tried
to make crazy things with this parameter because I thought that this had to be
an JNDI address (or false), not true value!
In my opinion, confirmed with others problems, you should mark in documentation
that this is boolean parameter and for context-defined data sources it should be
set to true.
This is a common problem. I wish to help novice Struts developers who will face
it in the future. So far you were helping me and it is time to start paying
back. ;-)
Best regards,
Konrad Billewicz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org