LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-26-2004, 04:09 PM   #1
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 132

Rep: Reputation: 15
jdbc & postgresql


Done setting up my server,
everything runs fine, but ...

I keep getting the same error:

java.lang.NullPointerException
sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
java.sql.DriverManager.getConnection(DriverManager.java:512)
java.sql.DriverManager.getConnection(DriverManager.java:171)
jdbctest.init(jdbctest.java:40)

The class can be loaded,
so tr.jar is up and running.

postgresql is compilled with odbc & jdbc support
odbc dns for the database is set up and tested ...

The servlet code is a working program on a windows invironment,
working on the same database using odbc

Anybody any idea ?
It's very frustrating,
it's the only thing that stands in the way for completing my server settup ...
 
Old 08-27-2004, 04:15 AM   #2
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 132

Original Poster
Rep: Reputation: 15
nobody on this forum busy with java & odbc ?
 
Old 08-27-2004, 11:15 AM   #3
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 132

Original Poster
Rep: Reputation: 15
to anyone ever encountering the same problem,
the solution is simple:

copy all the jdbc ???? .jar files into a lib directory
in your WEB-INF project directory of apache tomcat.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC2 PHP & POstgresql Megrain Linux - Newbie 3 09-08-2005 08:42 AM
show databases; & describe tablename for PostgreSQL Tim K. Linux - Software 5 07-25-2003 02:49 AM
postgresql -odbc & postgresql-jdbc installation kjsubbu Linux - Software 0 06-19-2003 02:50 AM
postgresql+jdbc in redhat 7.3 need help pleaseee!! Sridhar Guntur Linux - Software 0 10-22-2002 12:19 AM
postgresql jdbc database server...????????? Sridhar Guntur Linux - Software 1 10-17-2002 02:42 PM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration