Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 957
Jacob Avatar asked May 08 '13 12:05

Jacob


3 Answers

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

like image 77
Rodrigo Klein Avatar answered Sep 28 '22 00:09

Rodrigo Klein


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

Please use it for lookup.

like image 43
Satya Avatar answered Sep 28 '22 02:09

Satya


This exception happens when the property provider.url is pointing at the AdminServer (localhost:7001, in my case) and JDBC is not installed.

You may have other instances where it is installed, check your JNDI TREE to verify this.

Greetings, JFM

like image 24
Joas Flores Avatar answered Sep 28 '22 01:09

Joas Flores