pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPermission error
2+ messages / 2 participants
[nested] [flat]
* Permission error
@ 2005-03-25 21:05 Martin Seebach <martin@biplane.dk>
2005-03-25 21:23 ` Re: Permission error John R Pierce <pierce@hogranch.com>
0 siblings, 1 reply; 2+ messages in thread
From: Martin Seebach @ 2005-03-25 21:05 UTC (permalink / raw)
To: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Permission error
2005-03-25 21:05 Permission error Martin Seebach <martin@biplane.dk>
@ 2005-03-25 21:23 ` John R Pierce <pierce@hogranch.com>
0 siblings, 0 replies; 2+ messages in thread
From: John R Pierce @ 2005-03-25 21:23 UTC (permalink / raw)
To: Martin Seebach <martin@biplane.dk>; +Cc: pgsql-jdbc
Martin Seebach wrote:
> 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:
test to see if you can connect with "psql -h localhost -u kumdb kumdb" from a
command line. postgres does NOT default to supporting TCP connections, you
need to modify $PGDATA/postgresql.conf and $PGDATA/pg_hba.conf to allow this.
btw, and not actually an issue here, but, thats a really old pgsql, and you
really should upgrade to 7.4.7 or 8.0.1.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-03-25 21:23 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-25 21:05 Permission error Martin Seebach <martin@biplane.dk>
2005-03-25 21:23 ` John R Pierce <pierce@hogranch.com>
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