Re: more post & Tom (qu? ;)

From: "Joe Shevland" <jshevland(at)j-elite(dot)com>
To: "Gonzalo Aranda" <garanda(at)bitakora(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: more post & Tom (qu? ;)
Date: 2002-03-21 04:27:03
Message-ID: HEECIHEEJDBMCCGMGIOBKEOKCFAA.jshevland@j-elite.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

You're right, its not finding the driver classes.

Put the 'postgresql.jar' file under the:

WEB-INF/lib

subdirectory of your web application and it should be picked up automatically (you will need to restart Tomcat) - either this for individual web applications (what I do), or you can put it under one of the main Tomcat lib directories like <tc>/lib/apps or <tc>/lib/common which will make it available to all web applications. You've used the correct class name though, so that should do it. Looks like you're not using a connection pool which might be something you want to look at if page responsiveness is important.

Cheers,
Joe

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org [mailto:pgsql-jdbc-owner(at)postgresql(dot)org]On Behalf Of Gonzalo Aranda
Sent: Thursday, 21 March 2002 5:18
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [JDBC] more post & Tom

this is the error: I think it doesnt find the postgres driver.
Do you know something about postgresql.jar?
------------------------------------------------------------
Error: 500
Localización: /e2.jsp
Error interno del Servlet:

javax.servlet.ServletException: org.postgresql.Driver
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at e2_1._jspService(e2_1.java:121)
[snip]
at java.lang.Thread.run(Thread.java:475)
Causa Raíz:
java.lang.ClassNotFoundException: org.postgresql.Driver
[snip]

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Gonzalo Aranda 2002-03-21 08:25:13 Re: tomcat +postgres THANKS
Previous Message Joe Shevland 2002-03-21 04:04:21 Re: BLOBs