[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:37879] Re: webからJDBC接続する方法



こんばんは、Kishimoto と申します。

hibayashi yoshiki <hibayashi@xxxxxxxxxxxxxxx> wrote:

> apache+tomcat4 で postgres へJDBC接続したいのですが、
> 文末のようなエラー(catalina.out)となってしまいます。
> 端末から実行するJavaアプリケーションからのアクセスは
> 可能なのですが、web経由(JSP、Servlet)だとだめみたいです。

[...]

> 出力されるエラー
> = = = = = = = = catalina.out = = = = = = = = 
> 
> 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:

[...]

当該クライアントからの接続が許可されていない
(pg_hba.conf に記述されていない)のだと思います。
PostgreSQL の FAQ なので、pg_hba.conf をキーワードに、
マニュアルを調べるなどすればすぐに答えが見つかりますよ。

■ pg_hba.conf / 日本語PostgreSQL
http://www.net-newbie.com/postgres/man/man5/pg_hba.conf.5.html


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Kishimoto Yuu <yu-kishimoto@xxxxxxxxxxxxx>