• Post Reply Bookmark Topic Watch Topic
  • New Topic

connection problem : Very strange Thing !! (I'm gonna be Crazy !!! )

 
Antoine BLANC
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plop plop !! ^_^

I need a ConnectionPool using commons-dbcp.jar. I start with Jakarta Exemple, every thing is fine.
Then I try to do it by my self. and Here come the strage thing ....
If I run my classes whith java it work, but if I put my classes in a Jar file and I run it through Jakarta-Tomcat 4.1.27 it doesn't work !!!
I have this Exception :
org.apache.commons.dbcp.DbcpException: java.sql.SQLException: No suitable driver
when i try to get a connection on my DataSource Object
Can You help me please !!!

Thanks in advance

|||
^_^ Mil00se

[ May 14, 2004: Message edited by: Antoine BLANC ]
[ May 14, 2004: Message edited by: Antoine BLANC ]
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like a classpath issue - correctly set without tomcat, missing the jdbc-driver when running from tomcat.

I don't use tomcat, so I cannot tell you where to look for the classpath.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65664
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
$CATALINA_HOME/common/lib

Be sure to put the jar file with the driver there.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!