Search code examples
jdbcweblogicjndiweblogic11g

Weblogic javax.naming.NameNotFoundException while running application


I have created a data source name in Weblogic 10.3.6 as jdbc/appsmDS and the same name has been given in application to lookup.

However when I am trying to run application, I am getting the following error

javax.naming.NameNotFoundException: While trying to lookup 'jdbc/appsmDS' 
didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/appsmDS'

How can I resolve this issue?


Solution

  • when looking up the DS the full JNDI structure maps to java:jdbc/appsmsDS.

    Please use it for lookup.