Re: NewB: Servlet/cmd:Classpath confusion - Mailing list pgsql-jdbc

From Nick Fankhauser
Subject Re: NewB: Servlet/cmd:Classpath confusion
Date
Msg-id NEBBLAAHGLEEPCGOBHDGAEHHEFAA.nickf@ontko.com
Whole thread Raw
In response to NewB: Servlet/cmd:Classpath confusion  (john-paul delaney <jp@justatest.com>)
List pgsql-jdbc
> I tested some basic sample servlets and they're working ok

Are these servlets with JDBC code in them, or just servlets testing Tomcat?


> Nevertheless, even when I run the command line argument to
> specify the classpath, I get the same error.
> Nick mentions problems of this kind for users running Tomcat - as

If you're getting the error when running from the command line, then this
has nothing to do with Tomcat.

The problem that seems to plague many new users of Tomcat is that since
Tomcat runs as a detached process, new developers often forget to add the
jdbc jar file to the classpath for the Tomcat process, or have trouble
figuring out how to do this.

Which line of the code is referenced for the  'NoClassDefFoundError' ?


> Secondly, I'm new to databases - postgreSQL is my first
> experience in this field, and I think I need a 'cheatsheet' on
> psql commands & syntax for beginners (such as SELECT TABLE_NAME

I think there's a brief sql tutorial in the postgresql docs on-line. You
might also want to check out Bruce Momjian's book, which is still on-line in
html: http://www.ca.postgresql.org/docs/aw_pgsql_book/index.html. He has a
gentle intro to SQL in the psql environment.

-Nick


pgsql-jdbc by date:

Previous
From: "Michal Josifek"
Date:
Subject: problem with storing BLOBs larger then 2MB
Next
From: "Jose Luis LG"
Date:
Subject: pl/pgsql array return