|JNDI setting ignored [message #693492]
||Wed, 06 July 2011 15:07
| Cyril Rognon
Registered: July 2010
Hello all power users.|
I have been fooled by Birt. I thought I had successfully used jndi settings but it is the report that has always been holding sufficient info to use standard jdbc connection.
I am using Birt 3.6.2 and Birt 3.7, either on windows or linux.
I have been trying to set a jndi url for my datasource.
Like anyone else I have been told to set url and some jdbc info and that jndi would be first to be checked on server.
It looks like it is not.
to avoid issues related to connection profiles I have set back to regular org.eclipse.birt.report.data.oda.jdbc connection.
I have set
the jdbc is used
then I have been trying to clear some other property and found that url cannot be empty and drivermanager cannot parse jndi url, etc.
I also have tried to use java:comp/urljndi or the plain urljndi (which is jdbc/mysource). No luck so far.
I have tried to checkout hte code and to look at DriverManager but it seems that jndi lacks some info to work. Some initial context ? something else ? I cannot tell because the exception is never related to jndi. Only some "The Network Adapter could not establish the connection" or "driver cannot parse"
Could any one point me to a working jndi setup ?
How could I help to make this work, even if it means patching 3.7 code ?
Thanks for any info on that issue.
[Updated on: Wed, 06 July 2011 15:09]
Report message to a moderator
|Re: JNDI setting ignored [message #694588 is a reply to message #694050]
||Fri, 08 July 2011 22:37
Registered: July 2009
This seems like a configuration issue. Is the JNDI URL that you are using proven to work, like in other applications?
If you set the BIRT logging level to FINER, it will generate more informative trace logging on the JNDI processing.
If you want to grab the plugin source to debug, that would obviously be the most direct way to see what triggers the exception. Use the debugger to step thru the source in the JndiDataSource#getConnection method.
Powered by FUDForum
. Page generated in 0.03111 seconds