Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-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 3719BCA95 for ; Tue, 18 Nov 2014 16:38:43 +0000 (UTC) Received: (qmail 39844 invoked by uid 500); 18 Nov 2014 16:38:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 39773 invoked by uid 500); 18 Nov 2014 16:38:39 -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 39763 invoked by uid 99); 18 Nov 2014 16:38:39 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2014 16:38:39 +0000 Received: from s2laptop.local (unknown [109.74.48.129]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 7D99F1A01AD for ; Tue, 18 Nov 2014 16:37:32 +0000 (UTC) Message-ID: <546B760A.2000108@apache.org> Date: Tue, 18 Nov 2014 17:38:34 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Remote resources References: <224019378.363598200.1416322926419.JavaMail.root@zimbra65-e11.priv.proxad.net> <1501266777.363598954.1416322940715.JavaMail.root@zimbra65-e11.priv.proxad.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18/11/2014 17:22, Ed Rouse wrote: > > >> -----Original Message----- >> From: phiroc@free.fr [mailto:phiroc@free.fr] >> Sent: Tuesday, November 18, 2014 10:02 AM >> To: users@tomcat.apache.org >> Subject: Remote resources >> >> Hello, >> >> is there a way to access the contents of a directory (e.g., images) on >> a remote [Windows] network drive, which is mounted on a Linux >> filesystem (e.g., /mnt/myremotedrive), from a Java application running >> on a Tomcat Server? >> >> What makes this task problematic is the fact that the images are stored >> in a location which is not normally accessible by Tomcat >> (/mnt/myremotedrive), or by its applications. >> >> Many thanks. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org > > There is, but it's not easy. You need to create a custom class loader > that extends WebappClassLoaderBase, then create a DirResourceSet and > add it to the root. No, you do not need a custom class loader to do this. If the Tomcat process can read the files then you can add them via the new (for Tomcat 8) resources configuration. If the Tomcat process can't read the files them there is nothing you can do in Tomcat to change that. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org