Skip to Content
0
Former Member
Dec 01, 2006 at 03:46 PM

could not retreive datasource oracle in webdynpro

28 Views

Hi,

I've defined a datasource for oracle in the visual administrator :

jdbc datasource :

Data Source Type: driver-based

Driver Library: ojdbc14.jar

SQL Engine: vendor sql

Isolation Level: default

driver class : oracle.jdbc.OracleDriver

URL: jdbc:oracle:thin:@<host>:<port>:<sid>

I try to use it in my webdynpro :

javax.sql.DataSource ds=(javax.sql.DataSource)ctx.lookup(<dataSource name>);

java.sql.Connection con=ds.getConnection();

java.sql.Statement stmt=con.createStatement();

con.close();

But it throws the following exception :

com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of Baical_V1.

Does someone know what I could do ?

Thanks

Regards

Claire