What does return? Is it null? How have you deployed your datasource? Using a *.-ds.xml? If yes then post the contents of your datasource configuration. Also, what is the value of datasource jndiname that you are doing a lookup on?
The NullpointerException is occuring in this piece of code. What's the exact statement in the code which is leading to this exception?
Joined: Aug 27, 2006
ctx.lookup() is returning the datasource object (not null). I am configuring my datasource using oracle-ds.xml
To make sure that your OracleDS datasource is deployed and bound to java:/OracleDS, do the following:
- Go to http://localhost:8080/jmx-console - You will find service=JNDIView - Click on it - On the page that comes up, click on the Invoke button next to the 'list' method - The next page that comes up will display the jndi names and the corresponding objects bound to the JNDI - In the java namespace see if your OracleDS is present. - If you are not able to decipher the contents of the JNDI tree, post the output here.