Weblogic javax.naming.NameNotFoundException while running application

Jacob picture Jacob · May 8, 2013 · Viewed 42.6k times · Source

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?

Answer

Rodrigo Klein picture Rodrigo Klein · Aug 18, 2015

The problem in this case is probably that the datasource is not deployed in the "server" inside weblogic domain.