Carlo Tan

Greenhorn
+ Follow
since Sep 26, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Carlo Tan

Hi, I'm just a newbie so please bear with me
I'm using WSAD 5.0 and DB2 v7.0 for a project. Here's the code I use to get a connection:
Context initialContext = new InitialContext();
dataSource = (DataSource) initialContext.lookup(dbname);
conn = dataSource.getConnection();
When I run the application and try to retrieve data from the database, this comes out:
Attempted to use a 4.0 DataSource from a version 2.3 (or higher) servlet. Invalid configuration.
does this mean that I have to use a v5.0 DataSource? Or have I just forgotten to configure something in the current datasource I'm using?
If anyone could enlighten me, I'd greatly appreciate it..
regards,
Carlo Tan
[ October 12, 2003: Message edited by: Carlo Tan ]
20 years ago