Solved

error in set datasource in RAD 6.0, the testing server is Webspere protal server 5.0.

Posted on 2006-10-20
1
231 Views
Last Modified: 2013-12-10
Hello,

I'm trying to set up a DB2 pool connection by using a datasource.  I have set up the DB2 datasource in RAD 6.0, the testing server is Webspere protal server 5.0.

i got an errror is:

javax.naming.NameNotFoundException: Name "comp/env/MYtestDB" not found in context "java:"

the code for retrieve datasource is: datasource = (javax.sql.DataSource) ctx.lookup("java:comp/env/MYtestDB");

is there someting missing? this is my first time that i'm using datasource

Thanks very much for your reply,

lilyyan
0
Comment
Question by:lilyyan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
shinobun earned 500 total points
ID: 17776722
Try "java:comp/env/jdbc/MYtestDB" or maybe just "jdbc/MYtestDB".
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question