Return-Path: X-Original-To: apmail-archiva-users-archive@www.apache.org Delivered-To: apmail-archiva-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F56E179D8 for ; Sat, 11 Apr 2015 10:33:59 +0000 (UTC) Received: (qmail 50205 invoked by uid 500); 11 Apr 2015 10:33:59 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 50141 invoked by uid 500); 11 Apr 2015 10:33:59 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Received: (qmail 50130 invoked by uid 99); 11 Apr 2015 10:33:59 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Apr 2015 10:33:59 +0000 Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 24CD61A009B for ; Sat, 11 Apr 2015 10:33:59 +0000 (UTC) Received: by iggg4 with SMTP id g4so15637576igg.0 for ; Sat, 11 Apr 2015 03:33:57 -0700 (PDT) X-Received: by 10.50.79.202 with SMTP id l10mr4074092igx.7.1428747965166; Sat, 11 Apr 2015 03:26:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.127.39 with HTTP; Sat, 11 Apr 2015 03:25:44 -0700 (PDT) In-Reply-To: <55240300.5060509@corefiling.co.uk> References: <55240300.5060509@corefiling.co.uk> From: Olivier Lamy Date: Sat, 11 Apr 2015 20:25:44 +1000 Message-ID: Subject: Re: Configuring Archiva without setting Tomcat-wide properties To: users@archiva.apache.org Content-Type: multipart/alternative; boundary=089e0122aaeeeffe820513704e6d --089e0122aaeeeffe820513704e6d Content-Type: text/plain; charset=UTF-8 Hi David, Sadly I'm not really it's possible :-( You need to investigate but there are probably few places where the code can use System.getProperty("appserver.base") (which is very bad: I agree!!!) On 8 April 2015 at 02:17, David North wrote: > Hi, > > After some successful experiments with Archiva running using its > built-in Jetty server, we're working on deployment "for real". We > usually deploy web apps onto Tomcat, and I'd like to do the same here. > > The instructions at > http://archiva.apache.org/docs/2.2.0/adminguide/webapp.html all work as > expected. However, I am unhappy about having to set appserver.home and > appserver.base in a Tomcat-wide manner using system properties (via > setenv.sh). > > Is it possible to configure these on a per-webapp basis in > conf/Catalina/localhost/archiva.xml ? > > I see from digging into the source code a bit that Archiva uses Commons > Configuration to obtain most of its settings, so I was rather hoping it > would be possible to pass appserver.home and appserver.base in the > context file using JNDI or similar. Can anyone confirm if this is > possible and, if so, give an example? > > Thanks, > David > -- Olivier Lamy http://twitter.com/olamy | http://linkedin.com/in/olamy --089e0122aaeeeffe820513704e6d--