wood burning stoves*
The moose likes Tomcat and the fly likes javax.naming.NamingException- ClassnotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "javax.naming.NamingException- ClassnotFoundException" Watch "javax.naming.NamingException- ClassnotFoundException" New topic

javax.naming.NamingException- ClassnotFoundException

Ravikumar Jambunathan
Ranch Hand

Joined: Aug 25, 2003
Posts: 66
hi all,
i am using tomcat4.1.
when i use org.apache.commons.dbcp.BasicDataSourceFactory parameter in my server.xml to access oralce thru JNDI, i am getting the about subject exception, what could be the problem?
your suggestions and advice would be appreciated. thanks in advance.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
It appears that commons-dbcp.jar is not on Tomcat's CLASSPATH. If you drop this jar in Tomcat's server/lib directory then things should work fine. Disclaimer: I don't use Tomcat and I might be off on this one.
Moving to the Apache/Tomcat Forum for further discussion...
Ravikumar Jambunathan
Ranch Hand

Joined: Aug 25, 2003
Posts: 66
thanks mathews,
but i do not find any specific dpcp jar file in any of tomcat directories.
could you explain on this pl.
Dave Jochim
Ranch Hand

Joined: Jan 08, 2003
Posts: 31
You have to get the commons DBCP, collections, and pool I think.
And this page helped me.
Hope that helps.
Ravikumar Jambunathan
Ranch Hand

Joined: Aug 25, 2003
Posts: 66
thanks dave, i will try and let you know.
wood burning stoves
subject: javax.naming.NamingException- ClassnotFoundException
Similar Threads
Word Games
are you guys all aquiver?
Who am I?
design question
Completed SCEA(II/III) . i.e. Now all 4 Sun Java Certifications are complete.