Home
Analytics
Error in JNDI data source
Aarika S S
Hi,
When I give JNDI data source (.xml file) in JNDI URL path and try to check the connection ,error is getting as "The selected driver cannot parse the given JNDI Data Source URL.". I give driver class as "oracle.jdbc.driver.OracleDriver (v1.0)" and add "ojdbc14.jar" .
Find more posts tagged with
Comments
CBR
Hi,
JNDI is appreviation for Java Naming Directory Interface. JNDI is a specification only and requires a JNDI service provider. This service provider has to be known by your application (in java you can use several configuration files to make your app to know the service provider).
The service provider is able to manage any resource. Therefore you have to add the resource to the service provider (this step heavily depends on which service provider you choose...normally you can add a resource by editing a special XML file). Each resource has a unique URL that you have to define by configuring the resource.
I assume that you entered the path to such a XML file. This is not correct because the XML file is to be known by the service provider only. BIRT doesn't ship with a JNDI service provider. You have to use your own (or one that is shipped out with a application server like JBoss) and make it known to BIRT. After that you can simply insert the URL and it will work.