Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 35816 invoked from network); 11 Aug 2010 20:38:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Aug 2010 20:38:07 -0000 Received: (qmail 23944 invoked by uid 500); 11 Aug 2010 20:38:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23737 invoked by uid 500); 11 Aug 2010 20:38:03 -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 23719 invoked by uid 99); 11 Aug 2010 20:38:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 20:38:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 20:37:54 +0000 Received: from [192.168.245.241] (montserrat.wissensbank.com [212.85.37.175]) by tor.combios.es (Postfix) with ESMTPA id 79A7B226258 for ; Wed, 11 Aug 2010 22:35:09 +0200 (CEST) Message-ID: <4C6309E5.4030602@ice-sa.com> Date: Wed, 11 Aug 2010 22:36:53 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Can't configure webapps to disk partition References: <99C8B2929B39C24493377AC7A121E21F99013D431E@USEA-EXCH8.na.uis.unisys.com> In-Reply-To: <99C8B2929B39C24493377AC7A121E21F99013D431E@USEA-EXCH8.na.uis.unisys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Caldarale, Charles R wrote: >> From: Zeigler, Carl L [mailto:clzeigler@statestreet.com] >> Subject: Can't configure webapps to disk partition >> >> I have had success changing the webapps directory to various locations >> on the C: Drive but when I try to use the E: partition, I receive the >> "page cannot be found" message. > > Is the E: drive really somewhere else on the network? If so, it won't be visible to Tomcat running as a service. Remember that drive mappings are by Windows account, not global for all accounts on the box. As I recall, processes running as a service do not see any drive mappings, even when running with an account that has made some. > > Try running Tomcat from the scripts (startup.bat) under the same account the drive mappings are for, rather than as a service. > A bit more information : By default, when you install a Service under Windows, it will run under the (local) user "LocalSystem". This is a special user which has extended privileges on the local box itself, but it does not have access to "network resources" (in the Microsoft understanding of that term, which means for example that it does not have access to network drives mapped as "shares" or to network printers. It can use TCP/IP however). Try the following : Note : for testing the following, use your own windows domain user-id. To run in production, you will have to ask your domain administrators for some special Windows Domain "service" user-id. That is a user-id that is a real domain-id (not a local one), so that it has access to network resources (like E:/, maybe). Note that this account should also have a password that does not run out in time, otherwise some day your tomcat will not start anymore. Anyway, do this : - right click on the "my computer" icon and pick "Manage" - look for "services and applications", and pick "services" - in the right pane, find tomcat, right-click on it and choose "properties" - in the second tab (login as..), pick the radio button "run as this user" and enter your own user-id and password. - say OK etc.. Then restart the tomcat service and check if it works. To point correctly to the location of this drive E:, you should probably use instead the UNC path, like //server/share. That is because, depending on the user-id under which tomcat runs, this shared directory may not necessarily be mapped to a drive letter, or not to the same E: drive letter. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org