Thread: Problem to access postgres database with jdbc using the driver on the server side...

Problem to access postgres database with jdbc using the driver on the server side...

From
"Robson Martins"
Date:
Hello all...
I'm using a applet to access my postgres 6.5 database with jdbc...
I have a driver postgresql.jar, that when it is on my classpath everything works good on the page.
But when i remove it from my classpath and try call it from the applet tag on the html code it doesnt work and i get the error No suitable driver.
I'm using <applet archive="postgresql.jar,Busch.jar" code="Busch.class" codebase="./java" width="int" height="int"></applet>
I'm using internet explorer 5.0 and netscape 4.6 on windows 98.
Well...what i want to do is make the page access the database using the driver on the server side....for anyone that open the page run the page correct..
I need this so much....
If anybody can help me....I would like so much...
I'm waiting answer...
Hugz...Robson !!
 
 
Hi,

On Mon, 23 Aug 1999, Robson Martins wrote:
> I'm using <applet archive="postgresql.jar,Busch.jar" code="Busch.class" codebase="./java" width="int"
height="int"></applet>

I've heard a rumor that you can only have *one* jar file loaded at a time.

Then you would have to unjar the postgresql jdbc in your class-files
directory and pack everything into one jar file ..

But I don't know if that's true (didn't try it myself)

Regards,

-- 
Jens Glaser     Am Holderstrauch 13, 36041 Fulda, 0661/9429507    jens@jens.de




> ----- Original Message -----
> From: root <georg.ritter@uibk.ac.at>
> To: Robson Martins <robson@netalfa.com.br>
> Sent: Saturday, June 26, 1999 2:41 AM
> Subject: Re: [INTERFACES] Problem to access postgres database with jdbc
using the driver on the server > > side...
> Hi
>
> We do it the following way:
>
> We have the applet classes in say ~/applet. Then we unpacked the driver
> to this dir. It works
> perfectly.  (Perhapse you can jar it together again, I havent' tried
> this yet.)
> You then should only get the errormsg with IE5. It seems not to be
> compatible with the standard.
> We worked around this by wrapping the applet for IE  customers with the
> SUN plug in.
>
> btw.,
> "Well...what i want to do is make the page access the database using the
> driver on the server side....
> for anyone that open the page run"
> How should this work? Serverlets?
>
> If need more info you're welcome.
>
>     Georg Ritter

Hello all....Hi Georg...
Ok....I have add the postgresq.jar into my program.jar...everything is on
the same .jar and know works....but you were sure....It doesnt work on ie
5.0....But why work when the postgres is on my classpath? Why it doesnt work
only when the driver is on the server side? Well....What i'll do to make it
works on ie5? I need this working...There is any driver that works?

> How should this work? Serverlets?

I dont know....the page lists houses to sell...that it get from a
database....and i need that everybody entern on the page get it working on
any browser....But i see my actual driver wont work....i need one that
works....

Well...
I'm waiting anser....
Hugs...Robson !!



> Hello all....Hi Georg...
> Ok....I have add the postgresq.jar into my program.jar...everything is on
> the same .jar and know works....but you were sure....It doesnt work on ie
> 5.0....But why work when the postgres is on my classpath? Why it doesnt
work
> only when the driver is on the server side? Well....What i'll do to make
it
> works on ie5? I need this working...There is any driver that works?
>
> > How should this work? Serverlets?
>
> I dont know....the page lists houses to sell...that it get from a
> database....and i need that everybody entern on the page get it working on
> any browser....But i see my actual driver wont work....i need one that
> works....
>
> Well...
> I'm waiting anser....
> Hugs...Robson !!

I forgot to say that when the driver is on the server side it doesnt work on
any internet explorer only netscape....and when it i on classpath work in
all browsers...