Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 28866 invoked from network); 20 Jul 2006 12:40:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2006 12:40:49 -0000 Received: (qmail 24971 invoked by uid 500); 20 Jul 2006 12:06:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 24951 invoked by uid 500); 20 Jul 2006 12:06:06 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 24932 invoked by uid 99); 20 Jul 2006 12:06:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 05:06:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [128.253.83.141] (HELO authusersmtp.mail.cornell.edu) (128.253.83.141) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 05:06:03 -0700 Received: from [128.253.38.244] (defiant.ento.cornell.edu [128.253.38.244]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id k6KC5g6U024004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 20 Jul 2006 08:05:43 -0400 (EDT) Message-ID: <44BF7196.6020209@cornell.edu> Date: Thu, 20 Jul 2006 08:05:42 -0400 From: David Smith User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Database Connection Error Cannot create PoolableConnectionFactory References: <20060719203516.94681.qmail@web50014.mail.yahoo.com> In-Reply-To: <20060719203516.94681.qmail@web50014.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N java.security.AccessControlException indicates you are running tomcat with the security manager. You'll need to edit your catalina.policy file to allow this connection. The policy file itself has a number of examples, here's just one modified to your situation below: grant codebase "jar:file:${catalina.home}/common/lib/mysql-connector-java-3.14.jar!/-" { permission java.net.SocketPermission "127.0.0.1:3306", "connect" ; } --David Bob Hall wrote: >Cameron, > >You wrote: > > > >>I have a newly installed and configured Ubuntu >>server running >>Tomcat5.5 and Mysql 5.0. This server was created in >>an attempt to >>migrate from a Red Hat server in a similar >>configuration, running the >>exact same webapp. Most of the >>configuration/classpath differences >>between the two platforms have been ironed out. >> >>The Problem: >> >>When our webapp trys to connect to the database on >>localhost, an exception >> >>'java.security.AccessControlException: access denied >>(java.net.SocketPermission localhost resolve)' >> >>is generated. >> >> >> > >Looks like the OS is unable to resolve localhost. >Does the ubuntu server have the following in its >/ect/hosts file? > >127.0.0.1 localhost > >-Bob > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > >--------------------------------------------------------------------- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org