This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes DataSource is Null in JNDI Connection with Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DataSource is Null in JNDI Connection with Tomcat" Watch "DataSource is Null in JNDI Connection with Tomcat" New topic
Author

DataSource is Null in JNDI Connection with Tomcat

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 228
Hi,
I am getting NullPointerException due to null value of DataSource when trying to connect through JNDI in Tomcat 5.5
I have checked all the values of parameters in server.xml.

can somebody tell me the reasons why this is coming?





server.xml:


Thanks in Advance,

Kousik


Thanks in Advance,
Kousik
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
Place the jar file containing Oracle database implementation classes under
<TOMCAT_HOME>\common\lib rather than WEB-INF\lib directory specific to the project.

Also I found the installer version of (that ends with .exe) Tomcat 5.5.17 to have some strange problems. Try the .zip version which will avoid those.


http://www.skillassert.com


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataSource is Null in JNDI Connection with Tomcat
 
Similar Threads
struts 1.3 Data base connection pool
JNDI Connection with Oracle (Problem with NullPointerException)
JNDI in webapps
Connection pooling in tomcat
Tomcat DataSource