J Weite

Greenhorn
+ Follow
since Jun 01, 2005
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 J Weite

I had two issues when trying to do the same. The first was the provider complaining that I didn't have a usable context. I fixed this by explicitly creating a JndiTemplate and configuring it with the usual JNDI context stuff. (Maybe because I'm running Weblogic at port 7011???)

At this point, I started getting the same error you did. On a long shot, I dropped the resource-ref param so that JndiObjectFactoryBean wouldn't supplement my jndiName with "java:comp/env/", since I don't supply this myself when manually getting a datasource. It worked. In the end, my key beans looks like this:



Maybe it'll work for you too...