aspose file tools*
The moose likes JDBC and the fly likes connection problem : Very strange Thing !! (I'm gonna be Crazy !!! ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connection problem : Very strange Thing !! (I Watch "connection problem : Very strange Thing !! (I New topic
Author

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

Antoine BLANC
Greenhorn

Joined: Feb 24, 2004
Posts: 6
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

Joined: Jun 02, 2003
Posts: 1923

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.


http://home.arcor.de/hirnstrom/bewerbung
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61653
    
  67

$CATALINA_HOME/common/lib

Be sure to put the jar file with the driver there.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection problem : Very strange Thing !! (I'm gonna be Crazy !!! )