Thread: Information needed

Information needed

From
Sonjoy Datta
Date:
Hi,

I'm doing a MSc Project and have used a postgres database. I want to
connect my java servlet with the database but encounter problems
connecting with the driver class. I know that many Internet sites state
that the org.postgresql.Driver is the correct driver class but I cannot
obtain a connection.

Please can somebody tell me what the problem may be and how it can be
solved.


Sonjoy K Datta
Queen Mary University


Re: Information needed

From
Paul Thomas
Date:
On 07/07/2003 14:01 Sonjoy Datta wrote:
> Hi,
>
> I'm doing a MSc Project and have used a postgres database. I want to
> connect my java servlet with the database but encounter problems
> connecting with the driver class. I know that many Internet sites state
> that the org.postgresql.Driver is the correct driver class but I cannot
> obtain a connection.
>
> Please can somebody tell me what the problem may be and how it can be
> solved.


Not without a great deal more information. Post the code you are using
plus a stack trace of the exception and someone might be able to help.

BTW, there is a web site called java.sun.com which has a tutorial on JDBC.
Maybe you should read that.

HTH

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants         |
http://www.thomas-micro-systems-ltd.co.uk   |
+------------------------------+---------------------------------------------+

Re: Information needed

From
Dave Cramer
Date:
You will have to give us more information than that, what is the error
message, stack trace, your code, etc...

Dave
On Mon, 2003-07-07 at 09:01, Sonjoy Datta wrote:
> Hi,
>
> I'm doing a MSc Project and have used a postgres database. I want to
> connect my java servlet with the database but encounter problems
> connecting with the driver class. I know that many Internet sites state
> that the org.postgresql.Driver is the correct driver class but I cannot
> obtain a connection.
>
> Please can somebody tell me what the problem may be and how it can be
> solved.
>
>
> Sonjoy K Datta
> Queen Mary University
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
--
Dave Cramer <Dave@micro-automation.net>


Re: Information needed

From
Erik Price
Date:

Sonjoy Datta wrote:
> Hi,
>
> I'm doing a MSc Project and have used a postgres database. I want to
> connect my java servlet with the database but encounter problems
> connecting with the driver class. I know that many Internet sites state
> that the org.postgresql.Driver is the correct driver class but I cannot
> obtain a connection.
>
> Please can somebody tell me what the problem may be and how it can be
> solved.

Post the relevant part of your servlet code (the attempt to make a
connection).  And if you are getting any errors or other relevant
information, include that too.


Erik