Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[JDBC] How to Install PostgerSQL_Driver ( in tomcat ) ?

From: Moien <moin_e(at)yahoo.com>
Date: Wed Jan 09 2008 - 03:50:33 EST


Dear All

I'm using :

Microsoft Windows Xp
Apache-tomcat-6.0.14
Java version 1.5.0_14
+
PostgreSQL 8.2
and
postgresql-8.2-507.jdbc3.jar

every time I wana run myApp.class I should type : java -cp postgresql-8.2-507.jdbc3.jar . myApp

there is no problem . but when I import myApp into myJSP.jsp , tomcat brings this Error :

javax.servlet.ServletException: java.lang.NoClassDefFoundError


I Tried to :

1. add a classpath=add/postgresql-8.2-507.jdbc3.jar; to env-variables
2. add the jar file to jre/lib/ext
3. add the jar file to myWebApp/WEB-INF/lib
4. add the jar file to tomcat/lib

but non of them works !

Do you need help?X

would you please help me(I'm a java beginner!)

Thanks alot
Moein


       

 Yahoo! Answers - Get better answers from someone who knows. Tryit now. Received on Wed Jan 9 03:52:23 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:42:23 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library