pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Seebach <martin@biplane.dk>
To: pgsql-jdbc@postgresql.org
Subject: Permission error
Date: Fri, 25 Mar 2005 22:05:06 +0100
Message-ID: <42447D02.1050507@biplane.dk> (raw)

Using:
Tomcat 4
Jakarta Struts 1.2.4
Sun J2SDK 1.4.2_7
PostgreSQL 7.2.1
PostgreSQL JDBC pg72jdbc2

I can't connect and get this error in catalina.out:

[ERROR] ActionServlet - Initializing application data source 
org.apache.struts.action.DATA_SOURCE 
<org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (Something unusual has occured to cause the 
driver to fail. Please report this exception: Exception: 
java.security.AccessControlException: access denied 
(java.net.SocketPermission localhost resolve)

java.security.AccessControlException: access denied 
(java.net.SocketPermission localhost resolve)
[snip]

Caused by: Something unusual has occured to cause the driver to fail. 
Please report this exception: Exception: 
java.security.AccessControlException: access denied 
(java.net.SocketPermission localhost resolve)
Stack Trace:

java.security.AccessControlException: access denied 
(java.net.SocketPermission localhost resolve)

I find it odd that something should deny the driver to resolve 
localhost? Anyway, the error tells me to report it .. so here goes.

Full output&stacktrace at http://awn.dk/catalina.out

My configuration in struts:
<data-sources>
<!-- configuration for commons BasicDataSource -->
<data-source type="org.apache.commons.dbcp.BasicDataSource">
    <set-property
          property="driverClassName"
      value="org.postgresql.Driver" />
    <set-property
      property="url"
      value="jdbc:postgresql:kumdb" />
    <set-property
      property="username"
      value="kumdb" />
    <set-property
      property="password"
      value="xxxxxx" />
    <set-property
      property="maxActive"
      value="10" />
    <set-property
      property="maxWait"
      value="5000" />
    <set-property
      property="defaultAutoCommit"
      value="false" />
    <set-property
      property="defaultReadOnly"
      value="false" />
</data-source>
</data-sources>

What can I do to make this work? Thanks alot!

-- 
Venlig hilsen
Martin Seebach





view thread (2+ messages)  latest in thread

Message-ID: <42447D02.1050507@biplane.dk>
Permalink:  ../42447D02.1050507@biplane.dk/
Also on:    postgresql.org/message-id/42447D02.1050507@biplane.dk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: martin@biplane.dk
  Subject: Re: Permission error
  In-Reply-To: <42447D02.1050507@biplane.dk>
  References: <42447D02.1050507@biplane.dk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox