X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 073003A4E76 for ; Fri, 7 Jan 2005 15:52:28 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95483-09 for ; Fri, 7 Jan 2005 15:51:58 +0000 (GMT) Received: from mxsf21.cluster1.charter.net (mxsf21.cluster1.charter.net [209.225.28.221]) by svr1.postgresql.org (Postfix) with ESMTP id 95DD93A4E86 for ; Fri, 7 Jan 2005 15:51:59 +0000 (GMT) Received: from mxip07.cluster1.charter.net (mxip07a.cluster1.charter.net [209.225.28.137]) by mxsf21.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j07FpwbP005301 for ; Fri, 7 Jan 2005 10:51:59 -0500 Received: from 24.247.217.75.col.mi.chartermi.net (HELO TOSHIBAJULIE) (24.247.217.75) by mxip07.cluster1.charter.net with ESMTP; 07 Jan 2005 10:51:58 -0500 X-Ironport-AV: i="3.88,109,1102309200"; d="scan'217,208"; a="534471248:sNHT20924404" From: "Julie Cottin" To: Subject: Driver Information-PostgreSQL 8 Date: Fri, 7 Jan 2005 10:51:58 -0500 Message-ID: <006b01c4f4d0$d2c95000$cfddfea9@TOSHIBAJULIE> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_006C_01C4F4A6.E9F34800" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.096 tagged_above=0 required=5 tests=HTML_50_60, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200501/49 X-Sequence-Number: 11929 This is a multi-part message in MIME format. ------=_NextPart_000_006C_01C4F4A6.E9F34800 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am hoping someone can answer this question, I have search the web and = can not find the information. I am trying to connect uPortal ( http://uportal.org) to PostgreSQL 8.0.0-RC3 on = Windows XP. There are four areas that refer to the PostgreSQL drivers and I am stumped on the answer, nothing seems to be working.=20 =20 I am running JDK version: J2SDK 1.4.2_06 so I copied pg801.308.jdbc3.jar into the uPortal_2.4.1 /lib directory =20 What I am missing is the name of the driver(s) I should be referencing.=20 =20 I did get MySQL to connect and load---- logging in from the local was a problem. Anyway, in MySQL it needed two different drivers reference. The jdbc .jar driver located in the /lib was referenced in the = build.properties. A second driver in the lib/org/... called Driver.sql was referenced in dbloader.xml, rdbm.properties, and PersonalDir.xml. Is there a second driver I should be aware of for PostgreSQL and what is the correct referencing... the uPortal files have the following code: =20 from the rdbm.properties I tried- but I don't see any driver under = /lib/org or any other folder: ##### PostgreSQL - example jdbcDriver=3Dorg.postgresql.Driver jdbcUrl=3Djdbc:postgresql://localhost:5432 jdbcUser=3Duportal=20 jdbcPassword=3Duportal =20 from the file: dbloader.xml I tried: PostgreSQL 8.0.0RC3 PostgreSQL Native Driver 8.0.b1 JDBC3 LONGVARCHARTEXT VARCHARVARCHAR LONGVARBINARYBYTEA = VARBINARYBYTEA INTEGERinteger =20 =20 from the PersonDir I tried: =20 org.postgresql.Driver jdbc:postgresql://localhost:5432 uportal uportal SELECT FIRST_NAME||' '||LAST_NAME AS FIRST_LAST, FIRST_NAME, LAST_NAME, EMAIL FROM UP_PERSON_DIR WHERE USER_NAME=3D?> =20 and from the build.properties (which copies the files from the uPortal = site to the TomCat uportal directory I referred to the .jar driver: =20 jdbcDriver.jar=3D${lib.path}/pg80b1.308.jdbc3.jar =20 =20 Any light you can shed on this would be really helpful. I have spent = hours trying to resolve this and I am at wits end. =20 Julie Cottin ------=_NextPart_000_006C_01C4F4A6.E9F34800 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
I am hoping someone can answer this question, I = have search=20 the web and can not find the information. I am trying to connect uPortal = (http://uportal.org) to = PostgreSQL=20 8.0.0-RC3 on Windows XP. There are four areas that refer to = the=20 PostgreSQL drivers and I am stumped on the answer, nothing seems to be=20 working.
 
I am = running JDK=20 version: J2SDK 1.4.2_06 so I copied pg801.308.jdbc3.jar into = the=20 uPortal_2.4.1 /lib directory
 
What I = am missing is=20 the name of the driver(s) I should be referencing.
 
I did = get MySQL to=20 connect and load---- logging in from the local was a problem. = Anyway, in=20 MySQL it needed two different drivers reference. The jdbc .jar = driver=20 located in the /lib was referenced in the build.properties. A = second=20 driver in the lib/org/... called Driver.sql was referenced in = dbloader.xml,=20 rdbm.properties, and PersonalDir.xml.  Is there a second driver I = should be=20 aware of for PostgreSQL and what is the correct referencing... the=20 uPortal files have the following code:
 
from = the=20 rdbm.properties I tried- but I don't see any driver under /lib/org or = any other=20 folder:

##### PostgreSQL -=20 example
jdbcDriver=3Dorg.postgresql.Driver
jdbcUrl=3Djdbc:postgresq= l://localhost:5432
jdbcUser=3Duportal 
jdbcPassword=3Duportal<= BR>
 
from = the file:=20 dbloader.xml I tried:
 <db-type-mapping>
   =20 <db-name>PostgreSQL</db-name>
   =20 <db-version>8.0.0RC3</db-version>
   =20 <driver-name>PostgreSQL Native=20 Driver</driver-name>
    = <driver-version>8.0.b1=20 JDBC3</driver-version>
   =20 <type><generic>LONGVARCHAR</generic><local>TEXT&l= t;/local></type>
   =20 <type><generic>VARCHAR</generic><local>VARCHAR<= ;/local></type>
   =20 <type><generic>LONGVARBINARY</generic><local>BYTE= A</local></type>   =20
   =20 <type><generic>VARBINARY</generic><local>BYTEA<= ;/local></type>
   =20 <type><generic>INTEGER</generic><local>integer<= ;/local></type>
 =20 </db-type-mapping> 
 
from = the PersonDir I=20 tried:
 
    =20 <driver>org.postgresql.Driver</driver>
   &= nbsp;   =20 <url>jdbc:postgresql://localhost:5432</url>
  &n= bsp;    =20 <logonid>uportal</logonid>
     &= nbsp; =20 <logonpassword>uportal</logonpassword>
   &= nbsp;   =20 <uidquery>SELECT FIRST_NAME||' '||LAST_NAME AS = FIRST_LAST,
FIRST_NAME,=20 LAST_NAME, EMAIL FROM UP_PERSON_DIR WHERE=20 USER_NAME=3D?></uidquery>
 
and = from the=20 build.properties (which copies the files from the uPortal site to the = TomCat=20 uportal directory I referred to the .jar driver:
 
jdbcDriver.jar=3D${lib.path}/pg80b1.308.jdbc3.jar<= /DIV>
 
 
Any = light you can=20 shed on this would be really helpful. I have spent hours trying to = resolve this=20 and I am at wits end.
 
Julie=20 Cottin
------=_NextPart_000_006C_01C4F4A6.E9F34800--