Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 10920 invoked from network); 24 Jun 2010 12:55:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jun 2010 12:55:09 -0000 Received: (qmail 48535 invoked by uid 500); 24 Jun 2010 12:55:09 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 48495 invoked by uid 500); 24 Jun 2010 12:55:08 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 48208 invoked by uid 99); 24 Jun 2010 12:55:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 12:55:07 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=AWL,HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.86.168.183] (HELO mxout-08.mxes.net) (216.86.168.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 12:54:59 +0000 Received: from fg-out-1718.google.com (unknown [72.14.220.156]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id CC0E0509DD for ; Thu, 24 Jun 2010 08:54:37 -0400 (EDT) Received: by fg-out-1718.google.com with SMTP id l26so1694555fgb.0 for ; Thu, 24 Jun 2010 05:54:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.164.134 with SMTP id t6mr662539hbd.204.1277384075942; Thu, 24 Jun 2010 05:54:35 -0700 (PDT) Received: by 10.239.173.207 with HTTP; Thu, 24 Jun 2010 05:54:35 -0700 (PDT) X-Originating-IP: [194.230.155.17] In-Reply-To: <4C2350BD.30702@srdc.com.tr> References: <4C2350BD.30702@srdc.com.tr> Date: Thu, 24 Jun 2010 14:54:35 +0200 Message-ID: Subject: Re: Clerezza JDBC Connection Problem From: Reto Bachmann-Gmuer To: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=001485f33a52169cb60489c62826 --001485f33a52169cb60489c62826 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Cihan Could you try adding the permission to the BaseRole using the user-manager (i.e. on http://localhost:8080/admin/user-manager/manage-role-permissions?roleTitle= =3DBasePermissionsRole) ? Let me know if this works. Cheers, reto On Thu, Jun 24, 2010 at 2:34 PM, Cihan =C3=87imen wrote= : > Hi, > > I am trying to create a jdbc connection in a bundle deployed on clerezza > downloaded from > https://repository.apache.org/content/repositories/snapshots/org/apache/c= lerezza/org.apache.clerezza.platform.launcher.sesame/0.5-incubating-SNAPSHO= T/ > org.apache.clerezza.platform.launcher.sesame-0.5-incubating-20100604.1502= 52-50.jar > > I use the following command to start clerezza > "java -jar -Djava.security.policy=3Dall.policy > org.apache.clerezza.platform.launcher.sesame-0.5-incubating-20100604.1502= 52-50.jar" > where policy file is: > > grant all { > permission java.net.SocketPermission "localhost:3306" "connect, > resolve" ; > } > > > When called from a component activator jdbc connection is established > successfully. > However when called from a rest resource on a path like "/jdbctest" I get > the following error when trying to establish a connection: (Full stack tr= ace > at error.txt) > > Driver.com.mysql.jdbc.CommunicationsException: Communications link failur= e > due to underlying exception: > > ** BEGIN NESTED EXCEPTION ** > > java.security.AccessControlException > MESSAGE: access denied (java.net.SocketPermission localhost resolve) > > Attached please find a test case exported as two bundle jars . On > activation of bundle "IKS FISE JDBC Test" no exception is thrown but on t= he > path http://localhost:8080/jdbctest the connection cannot be established > with the very same credentials and database url(Can be adjusted from > Configuration tab of Apache Felix Web Console). > > Best, > > Cihan > > --001485f33a52169cb60489c62826--