|
最新のツッコミ: |
備忘録:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tweet | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Your security policy has prevented the connection from being attempted. You probably need to grant the connect java.net.SocketPermission to the database server host and port that you wish to connect to.と怒られる。自前で Tomcat をインストールしたものだと postgres に接続できる。
"java.net.SocketPermission" tomcat postgres でググってみたら、Tomcat 5.5.25 の課題 がずばりだった。結局、
UbuntuのTomcat5.5ではデフォルトでSecurityMangerがONになっている 2) localhostの場合 /var/lib/tomcat5.5/conf/policy.d/03catalina.policy に追加 grant { permission java.net.SocketPermission "localhost:5432", "connect"; };ということで。Tomcat5.5, Tomcat6 の両パッケージで動くことを確認。 これで大体、データベースプログラミングは Ubuntu に移行しても大丈夫かな。
へぇ、もうそんな容量が出るんだ。東芝、512GバイトのSSD量産へ 1万5千円なら買いなんだけどなぁ。15万かぁ。
ランキング: 1.mash(2) 2.ま(2) 3.akihikok(1) 4.MC-4(1) 5.ほげ(1)
来訪者: