Re: a little disillusioned

Поиск
Список
Период
Сортировка
От Jonathan Gold
Тема Re: a little disillusioned
Дата
Msg-id Pine.NEB.4.58.0401210135070.19617@panix1.panix.com
обсуждение исходный текст
Ответ на a little disillusioned  ("Frequency UnKnown" <captainmofopants@hotmail.com>)
Список 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
>

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: a little disillusioned
Следующее
От: Guido Fiala
Дата:
Сообщение: Re: updatable resultsets -> SQLException: -1