Home
Analytics
birt jndi datasource not bound issue
gebuh
Hi all, I'm using Birt 2.3 runtime deployed to jboss5.1. My reports and library are located separately from the engine. I want to use JNDI for the DS connection, but it doesn't work, it's using JDBC and I quickly hit the wall of my experience with Birt. The Birt logs display this error:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
FINER: Calling getJndiDSConnection: JNDI name url=MyDefaultDS
Oct 14, 2010 3:56:39 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource getConnection
FINER: ENTRY MyDefaultDS
Oct 14, 2010 3:56:39 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource
CONFIG: getDriverJndiPropertyFile() C:\package\jboss-5.1.0.GA\server\default\tmp\5j1a445t-n8t4gf-gfa1p4pc-1-gfa1s29e-a2\atcots_reports.war\WEB-INF\platform\plugins\org.eclipse.birt.report.data.oda.jdbc_2.3.2.r232_v20090212\drivers\jndi.properties canReadFile = false
Oct 14, 2010 3:56:39 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource
INFO: javax.naming.NameNotFoundException: MyDefaultDS not bound
</pre>
<br />
what jndi.properties file? Is there supposed to be one? If so how should it be configured? Is there a way to configure this to use a -ds.xml file?<br />
Anyway, I dropped the jboss jndi.properties file in the drivers directory, I'm not sure how to configure it so I just used what was already in it:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
</pre> <br />
Now I get:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
FINER: Calling getJndiDSConnection: JNDI name url=MyDefaultDS
Oct 14, 2010 4:43:23 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource getConnection
FINER: ENTRY MyDefaultDS
Oct 14, 2010 4:43:23 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource
CONFIG: getDriverJndiPropertyFile() C:\package\jboss-5.1.0.GA\server\default\tmp\5j1a445t-c8whz9-gfa3bytu-1-gfa3eew3-a2\atcots_reports.war\WEB-INF\platform\plugins\org.eclipse.birt.report.data.oda.jdbc_2.3.2.r232_v20090212\drivers\jndi.properties canReadFile = true
Oct 14, 2010 4:43:23 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource
CONFIG: Driver JNDI property count: 2
Oct 14, 2010 4:43:23 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource
INFO: javax.naming.NameNotFoundException: MyDefaultDS not bound
</pre>
<br />
Is there something else I'm missing?<br />
Thanx in advance
Find more posts tagged with
Comments
gebuh
bump, anybody have any ideas about this?
CBR
Can you show the corresponding section in your DS.xml for JBoss as well as the datasource xml in your report or library? The message says that BIRT queries the JNDI service inside JBoss for name MyDefaultDS but it can't find a ressource using this name. I m nearly sure that you either use the wrong JNDI url in BIRT or JBoss isn't configured in the right way.
Can you query the JBoss JNDI service for that url manually? If so what's the result?