From: | Jonathan Gold <jgold(at)panix(dot)com> |
---|---|
To: | Frequency UnKnown <captainmofopants(at)hotmail(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: a little disillusioned |
Date: | 2004-01-21 06:40:20 |
Message-ID: | Pine.NEB.4.58.0401210135070.19617@panix1.panix.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
i haven't used tomcat 5, but i know some stuff about tomcat 4, and it
sounds like it could pertain. you have to place a jar high enough up
in your tomcat directories so that any class which uses it (and, more
importantly, whichever class calls the Class.forName method) will be
in directories at that level or lower (for instance,
$CATALINA_HOME/common/libs). perhaps you aren't doing this, and you
have it too low (do you have different webapps using postgres? if so,
you can't have separate instances of the driver in
.../yourWebApp/WEB-INF/lib). for more, see the tomcat docs (ClassLoader
howto) and the tomcat lists for more specifics.
jon
On Wed, 21 Jan 2004, Frequency UnKnown wrote:
> well, my ploy failed. having never got a decent answer from any technical
> forum, i had to try.
>
> so back to the tried and tested method:
>
> can anyone explain to me why tomcat 5 will not find org.postgresql.Driver
> when it is definitely there?
>
> i know this is a very broad question but i have covered the obvious things
> like class path and such (which, i might add, is the worst part of Java
> invented). the only thing that seems to work for me is to extract the
> contents of the .JAR file into my $JAVAHOME. surely this is NOT the way to
> do it - otherwise the package wouldn't even come as a JAR. in fact, i've got
> plenty of other JARs working, such as the SmartUploader, SOAP handlers and
> the like.
>
> So what's the difference between me directly instantiating a class (which it
> seems i can do) and calling Class.forName()/createInstance() (or whatever it
> is) in terms of where Java looks for classes? as i said, the classpath for
> my system, for java, and for tomcat are all pointed to the place where I
> have put the JAR.
>
> i'm running debian, if that helps.
>
> Shelley Pants
> Web Developer
>
> PS: i will go elsewhere if i am in the wrong place too. is there a forum
> more related to my topic?
>
> _________________________________________________________________
> Protect your inbox from harmful viruses with new ninemsn Premium. Click here
> http://ninemsn.com.au/premium/landing.asp
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
From | Date | Subject | |
---|---|---|---|
Next Message | Guido Fiala | 2004-01-21 08:10:41 | Re: updatable resultsets -> SQLException: -1 |
Previous Message | Oliver Jowett | 2004-01-21 05:55:21 | Re: a little disillusioned |