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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to