File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes JDBC ClassNotFoundException Weird Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JDBC ClassNotFoundException Weird Problem" Watch "JDBC ClassNotFoundException Weird Problem" New topic

JDBC ClassNotFoundException Weird Problem

Adam Zedan
Ranch Hand

Joined: Jun 10, 2011
Posts: 124

Hi I connected to SQLite DB successfully using a simple java project in Eclipse. (All i did was i went to the project option and in the build path added an external JAR file JDBCSqlite.jar) and used the following code to connect and test the DB.

Now the problem starts when i create a new Web Project (A Dynamic Website in EclipseEE). I did add the jar file. But this time i get an exception as follows
java.lang.ClassNotFoundException: org.sqlite.JDBC
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(

any idea what might be causing this problem ??

Don’t look where you fall, but where you slipped
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.

[Asking smart questions] [About Bear] [Books by Bear]
Adam Zedan
Ranch Hand

Joined: Jun 10, 2011
Posts: 124

Fixed the problem. What i did was i added the external jar to the tomcat configuration...
I agree. Here's the link:
subject: JDBC ClassNotFoundException Weird Problem
It's not a secret anymore!