I have created two datasource in weblogic with below jndi names
I am able to access datasource testDatasource1 using java but while access dataource jdbc/testDatasource i am getting below mention error
javax.naming.NameNotFoundException: While trying to lookup 'jdbc.testDatasource' didn't find subcontext 'jdbc'. Resolved '' [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.testDatasource' didn't find subcontext 'jdbc'. Resolved '']; remaining name 'jdbc/testDatasource'
it seem that prefix jdbc/ is giving problem.
In some cases, it is caused by the datasource not in the same target with your servers. The servers that are using the datasource should be added to the same targets.