Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC ClassNotFoundException Weird Problem

 
Adam Zedan
Ranch Hand
Posts: 124
C++ Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

any idea what might be causing this problem ??

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64856
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
Adam Zedan
Ranch Hand
Posts: 124
C++ Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed the problem. What i did was i added the external jar to the tomcat configuration...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic