Skip site navigation (1) Skip section navigation (2)

How to Install PostgerSQL_Driver ( in tomcat ) ?

From: Moien <moin_e(at)yahoo(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: How to Install PostgerSQL_Driver ( in tomcat ) ?
Date: 2008-01-09 08:50:33
Message-ID: 685419.93836.qm@web51408.mail.re2.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
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 !

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

Thanks alot
Moein
------


       
---------------------------------
 Yahoo! Answers - Get better answers from someone who knows. Tryit now.

Responses

pgsql-jdbc by date

Next:From: Guillaume CottenceauDate: 2008-01-09 09:00:48
Subject: Re: How to Install PostgerSQL_Driver ( in tomcat ) ?
Previous:From: mp.rajkhowaDate: 2008-01-09 06:56:02
Subject: Autocommit problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group