From owner-freebsd-java Tue Feb 5 3:42: 8 2002 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card4-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id 8ECB437B417 for ; Tue, 5 Feb 2002 03:42:02 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 16Y3yt-000211-00; Tue, 05 Feb 2002 11:41:47 +0000 Date: Tue, 5 Feb 2002 11:41:47 +0000 From: Rasputin To: ray Cc: java@freebsd.org Subject: Re: Does Jdk1.3.1p4 can work java_rmi application? Message-ID: <20020205114147.A7666@shikima.mine.nu> Reply-To: Rasputin References: <001e01c1ade8$51396b60$2201a8c0@servlet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <001e01c1ade8$51396b60$2201a8c0@servlet>; from ray@channel.com.tw on Tue, Feb 05, 2002 at 09:54:34AM +0800 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * ray [020205 02:05]: > i get error on rmi application that Source include LocalRegistry.Registrity(1099): > and i am change jre/lib/security/java.policy file > add some security rule: > > but get this error: > Exception in Thread "main" java.security.AccessControlException:access denied > (java.net.SocketPermission 192.168.1.2:1099 connect,resolve) > at java.security.AccessController.checkPermissiom(AccessController.jav:399) > ...... > ...... > ...... > > i am run at Linux RedHat6.2 fine,but why can't run with FreeBSD4.2 or 4.4. > is java version question? No, it looks like you haven't allowed that in your policy file. Once you specify a security file, it will override all default permissions, so you need to explicitly grant it. This *shouldn't* be platform specific.... -- Jenkinson's Law: It won't work. Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message