Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 84601 invoked from network); 16 Jun 2009 12:14:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 12:14:15 -0000 Received: (qmail 22622 invoked by uid 500); 16 Jun 2009 12:14:26 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 22573 invoked by uid 500); 16 Jun 2009 12:14:26 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 22563 invoked by uid 99); 16 Jun 2009 12:14:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 12:14:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ro.franchini@gmail.com designates 209.85.218.219 as permitted sender) Received: from [209.85.218.219] (HELO mail-bw0-f219.google.com) (209.85.218.219) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 12:14:15 +0000 Received: by bwz19 with SMTP id 19so4178242bwz.12 for ; Tue, 16 Jun 2009 05:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=S7f7H3Ir/rzwsfN92hx35qMd3XZrTOQ5quPxrWQR72E=; b=vuBnpcVrXiwUFA1FTmOesWvROUqH43ClMMdXL5/Jx5DJ6wdg3+8Je4r/8AT5GKDykc JloP6Z5gAme9oOBJQdy6oqKD93AvW6DJAbiTv//I0nd23vSBJPTIwWk+bQDX1m2Bwt+7 KJaQ2hxThgdwrffbZX7qxHumG2L4awDsHc9sI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=t+xq7pVI/3p4zAEydMf1CqSLzxHJ2Ed1Vw/Txu1dScdKSv/fnCBDiAjDUq4RnvQlIg V0hSVnCphVkPxhRKrrstuUSuvPo6BqeLVqeA8i6G8hUJx5iriuua0gnKL62E7oF9ieek JdaW5DjGSGq9oMJPJ9q+72Z5ePgGxw4bVvAZI= MIME-Version: 1.0 Received: by 10.223.108.74 with SMTP id e10mr5271532fap.35.1245154432891; Tue, 16 Jun 2009 05:13:52 -0700 (PDT) In-Reply-To: <636d44ae0906150953w7e40a7ach17db53b5d1185771@mail.gmail.com> References: <636d44ae0906150953w7e40a7ach17db53b5d1185771@mail.gmail.com> Date: Tue, 16 Jun 2009 14:13:52 +0200 Message-ID: <63e2e4460906160513k7db3dff0q4120287ba4d8ef5d@mail.gmail.com> Subject: Re: Simple Rest Server From: Roberto Franchini To: uima-user@incubator.apache.org Content-Type: multipart/alternative; boundary=001636c5a87ea9c36f046c761b56 X-Virus-Checked: Checked by ClamAV on apache.org --001636c5a87ea9c36f046c761b56 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, Jun 15, 2009 at 6:53 PM, Stergos D. Afantenos < stergos.afantenos@univ-nantes.fr> wrote: > Dear all, > > [cut] > java.security.AccessControlException: access denied > (java.util.PropertyPermission * read,write) > > java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) > > java.security.AccessController.checkPermission(AccessController.java:553) > java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > > java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1269) > java.beans.Introspector.setBeanInfoSearchPath(Introspector.java:316) > > org.apache.uima.impl.UIMAFramework_impl._initialize(UIMAFramework_impl.java:167) > org.apache.uima.UIMAFramework.(UIMAFramework.java:1180) > org.apache.uima.simpleserver.Service.(Service.java:71) > > org.apache.uima.simpleserver.servlet.SimpleServerServlet.init(SimpleServerServlet.java:229) > javax.servlet.GenericServlet.init(GenericServlet.java:211) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > java.lang.reflect.Method.invoke(Method.java:616) > > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244) > java.security.AccessController.doPrivileged(Native Method) > javax.security.auth.Subject.doAsPrivileged(Subject.java:537) > > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276) > > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) > > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) > java.lang.Thread.run(Thread.java:636) > > > > My guess is that I should explicitly grand some permicssions to the > Simple Rest Server via the various > /usr/share/tomcat5.5/conf/policy.d/*.policy files, but no matter what > I change, the SimpleRestServer stubbornly refuses to start up. > > In case that you have any idea of what might be going on, I would be > very happy to hear from you. > > On ubuntu, and debian too of course, tomcat runs with java security manager enabled by default. The simplest way is to disable it. Open the /etc/defautl/tomcat5.5 and set the variable to no .... # Use the Java security manager? (yes/no, default: yes) # WARNING: Do not disable the security manager unless you understand # the consequences! # NOTE: java-gcj-compat-dev currently doesn't support a security # manager. TOMCAT5_SECURITY=no The default file is the right place where to set JAVA_OPTS, such as heap or system properties. The policy file is generated at startup (/etc/init.d/tomcat5.5) : .... # Create catalina.policy (for the security manager) rm -f "$CATALINA_BASE/conf/catalina.policy" umask 022 echo "// AUTO-GENERATED FILE -- DO NOT EDIT!" \ > "$CATALINA_BASE/conf/catalina.policy" echo "// Edit the files in /etc/tomcat5.5/policy.d/ instead" \ >> "$CATALINA_BASE/conf/catalina.policy" echo "" >> "$CATALINA_BASE/conf/catalina.policy" cat /etc/tomcat5.5/policy.d/*.policy \ >> "$CATALINA_BASE/conf/catalina.policy" .... I hope this will help you R. -- Roberto Franchini http://www.celi.it http://www.blogmeter.it http://www.memesphere.it Tel +39-011-6600814 jabber:ro.franchini@gmail.com skype:ro.franchini --001636c5a87ea9c36f046c761b56--