| Author |
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. http://jakarta.apache.org/commons/dbcp/ http://jakarta.apache.org/commons/pool/ http://jakarta.apache.org/commons/collections/ And this page helped me. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/jndi-datasource-examples-howto.html Hope that helps.
|
 |
Ravikumar Jambunathan
Ranch Hand
Joined: Aug 25, 2003
Posts: 66
|
|
|
thanks dave, i will try and let you know.
|
 |
 |
|
|
subject: javax.naming.NamingException- ClassnotFoundException
|
|
|