Skip site navigation (1) Skip section navigation (2)

RE:

From: Peter Mount <petermount(at)maidstone(dot)gov(dot)uk>
To: "'Agustina Buccella'" <agusb(at)mail(dot)ru>, "Peter Mount (Home)" <peter(at)retep(dot)org(dot)uk>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: RE:
Date: 2000-11-24 08:13:22
Message-ID: 1B3D5E532D18D311861A00600865478CF1B5AC@exchange1.nt.maidstone.gov.uk (view raw or flat)
Thread:
Lists: pgsql-interfaces
Your URL is wrong. You have:
 
jdbc:postgresql://localhost:5432
 
You missed out the database name. The url should read:
 
jdbc:postgresql://localhost:5432/mydb        where mydb is the database
name.
 
PS: As its localhost, you can abbreviate this to:
 
jdbc:postgresql:mydb
 
Peter
 

-- 
Peter Mount 
Enterprise Support Officer, Maidstone Borough Council 
Email: petermount(at)maidstone(dot)gov(dot)uk 
WWW: http://www.maidstone.gov.uk <http://www.maidstone.gov.uk/>  
All views expressed within this email are not the views of Maidstone Borough
Council 

-----Original Message-----
From: Agustina Buccella [mailto:agusb(at)mail(dot)ru]
Sent: Thursday, November 23, 2000 10:22 PM
To: peter(at)retep(dot)org(dot)uk
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: [INTERFACES] 


Hello I find yours email from the mailing list of postgresql.
 
I have a problem with postgres driver and servlet
 
I´m using Suse 6.4, jakarta-tomcat servlet, and jdk1.1.8.
 
I set the correct CLASSPATH in the file wrapper.property 
 

# CLASSPATH environment 
wrapper.classpath=/usr/lib/jdk1.1.8/postresql.jar

I edit the server.xml file and add this lines
 
  <RequestInterceptor
            className="org.apache.tomcat.request.JDBCRealm"
            debug="99"
            driverName="org.postgresql.Driver"
            connectionURL="jdbc:postgresql://localhost:5432"
            connectionName="postgres"
            connectionPassword="postgres" />
 
But when I want to run Tomcat I have a fatal error:
 
FATAL:java.lang.RuntimeException: JDBCRealm.start.readXml: Something unusual
has occured to cause the driver to fail. Please report this exception:
java.lang.NullPointerException
java.lang.RuntimeException: JDBCRealm.start.readXml: Something unusual has
occured to cause the driver to fail. Please report this exception:
java.lang.NullPointerException
        at
org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:437)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:480)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:440)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
 
Please help me!!!!!
 
Thank yous very much!!!
Agustina
 
 

pgsql-interfaces by date

Next:From: Manish VigDate: 2000-11-24 21:22:55
Subject: Jdbc Trouble
Previous:From: Peter MountDate: 2000-11-24 07:54:24
Subject: RE: How to setup JDBC driver for DreamWeaver ultradev?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group