Forum Stats

  • 3,827,745 Users
  • 2,260,818 Discussions
  • 7,897,364 Comments

Discussions

javax.naming.NameNotFoundException

raghav1212
raghav1212 Member Posts: 120
edited Feb 5, 2013 2:43AM in JDeveloper and ADF
Hi ,
Jdev 11.1.1.6.0 and WLS 10.3

I am trying depoly the app in my localhost but its telling javax.naming.NameNotFoundException: While trying to lookup 'jdbc.hrDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/hrDS'. Any ideas .


Thanks
Raghav
Tagged:

Answers

  • Dimitar Dimitrov
    Dimitar Dimitrov Member Posts: 921 Bronze Trophy
    You are missing a JDBC DataSource with a JNDI name "jdbc/hrDS" at the application server. Most probably some ApplicationModule is configured to use a JDBS DataSource instead of JDBC URL Connection Pool, but there is no such DataSource configured in the application server. Check AM configurations in order to see which AM uses that DataSource and either configure it to use a JDBC URL Connection Pool or configure the necessary DataSource. Check also the application's configuration parameter "Auto Generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment" (look at "Application Properties -> Deployment" and read the related help) which controls whether such DataSource to be generated automatically by JDeveloper upon deployment.

    Dimitar
  • raghav1212
    raghav1212 Member Posts: 120
    Excellent problem resolved after checking the auto generate and synchronize option under deployment.


    Thanks
    Raghav
This discussion has been closed.