Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datasource NameNotFoundException

Status
Not open for further replies.

ameelin

Programmer
Oct 10, 2002
6
US
I get the error "javax.naming.NameNotFoundException: jdbc/SQLServerDS not found" when I try and set up a simple servlet that accesses a SQLServer 2000 database. And this is using the JDeveloper 9.0.3 IDE.

The same servlet when run using standalone oc4j works fine.
Is there something special to be set up for the embedded oc4j server to "see" datasources?

 
Well I found the answer.
It is here...buried away by those otn folks!
(their search sucks too!)
Look here for the answer to the JNDI Datasource lookup problem with the embedded OC4J server.
under Trouble shooting

In case they change the link here is the soln:-
For the embedded oc4j server to see yr datasource via JNDI modify the <jdevInstall>\jdev\system\oc4j-config\data-sources.xml file. I tried in every other data-sources.xml ....Now it works!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top