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 E1DD27102 for ; Tue, 15 Nov 2011 22:35:45 +0000 (UTC) Received: (qmail 55484 invoked by uid 500); 15 Nov 2011 22:35:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 55391 invoked by uid 500); 15 Nov 2011 22:35:42 -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 55382 invoked by uid 99); 15 Nov 2011 22:35:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 22:35:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Tue, 15 Nov 2011 22:35:35 +0000 Received: from [192.168.48.237] (89-96-138-194.ip12.fastwebnet.it [89.96.138.194]) by tor.combios.es (Postfix) with ESMTPA id CCFB4DA04B3 for ; Tue, 15 Nov 2011 23:35:10 +0100 (CET) Message-ID: <4EC2E91A.2050207@ice-sa.com> Date: Tue, 15 Nov 2011 23:35:06 +0100 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AW: Include NEtwork path into Tomcat - urgent References: <739CCB2D4BF8FD48985D6E158AD327B81EBFB3C98E@DC01.tecracerde.local> <273AFBCE7F99409E8A4E005BF8E614B6@Labs.IntelliJ.Net> <739CCB2D4BF8FD48985D6E158AD327B81EBFB3C993@DC01.tecracerde.local> <81DB34768B134FC7BBFEE7C3C1E29AAB@Labs.IntelliJ.Net> <1321366381.2655.20.camel@cleveland.mikusa.com> <739CCB2D4BF8FD48985D6E158AD327B81EBFB3C997@DC01.tecracerde.local> In-Reply-To: <739CCB2D4BF8FD48985D6E158AD327B81EBFB3C997@DC01.tecracerde.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi. Don't like top-posting, but if you all do it.. I see a difference between this : .. for (String fileName : new File("\\\\server\\share").list()) { .. and this : in terms of how many backslashes are used. I am not quite sure if and how backslashes are being escaped/unescaped on the way from the xml config file into a Java string in the Tomcat-level docbase, but maybe you want to try this : ? Alexander Diedler wrote: > Yes, > http://www.test.de/pictures/test.png throws 404 error. > > Alex > > > -----Ursprüngliche Nachricht----- > Von: Daniel Mikusa [mailto:dmikusa@vmware.com] > Gesendet: Dienstag, 15. November 2011 15:13 > An: Tomcat Users List > Betreff: RE: Include NEtwork path into Tomcat - urgent > > >> Not sure Java IO supports windows UNC. > > A quick test worked for me. I was able to list the contents of a SMB share on my network. Windows XP, Java 1.6.0_29. > > public class Test { > public static void main(String[] args) { > for (String fileName : new File("\\\\server\\share").list()) { > System.out.println(fileName); > } > } > } > > Maybe try running a quick test like this from your machine? > > >> but it throws a 404 error if I test it. > > How are you testing it? Are you directly accessing a file on that share or are you trying to get a directory listing? By default, Tomcat will not display a directory listing (it'll display a 404 error). > > Dan > > > > > On Tue, 2011-11-15 at 05:48 -0800, Ilya Kazakevich wrote: >> You need user ssesion to access windows station via SMB anyway. >> >> You can set this script as "log in script" using group policies in >> windows for the user your tomcat runs as. >> >> >> >> Ilya Kazakevich, >> Developer >> JetBrains Inc >> http://www.jetbrains.com >> "Develop with pleasure!" >> >> -----Original Message----- >> From: Alexander Diedler [mailto:adiedler@tecracer.de] >> Sent: Tuesday, November 15, 2011 5:39 PM >> To: Tomcat Users List >> Subject: AW: Include NEtwork path into Tomcat - urgent >> >> Hello, >> This is no option, this solution means, that the windows session must >> still remain opened with a logged in user. >> >> Alex >> >> >> -----Ursprüngliche Nachricht----- >> Von: Ilya Kazakevich [mailto:Ilya.Kazakevich@JetBrains.com] >> Gesendet: Dienstag, 15. November 2011 14:32 >> An: 'Tomcat Users List' >> Betreff: RE: Include NEtwork path into Tomcat - urgent >> >> Not sure Java IO supports windows UNC. >> >> Try to do the following: >> 1) mount this share as disk: (in cmd type "net use z: >> \\storage\share\pictures") >> 2) configure tomcat to work with "z:\" >> >> >> Ilya Kazakevich, >> Developer >> JetBrains Inc >> http://www.jetbrains.com "Develop with >> pleasure!" >> >> >> >> >> _____ >> >> From: Alexander Diedler [mailto:adiedler@tecracer.de] >> Sent: Tuesday, November 15, 2011 5:27 PM >> To: users@tomcat.apache.org >> Subject: Include NEtwork path into Tomcat - urgent >> >> >> >> Hello, >> >> I have a Tomcat 6.0 application, that references their pictures as >> http://www.test.de/pictures/test.png. >> >> /pictures is a network path on a storage, so I try to make it as a >> Context within the server.xml Host Tag >> >> but >> it throws a 404 error if I test it. Has somebody any idea to get out >> of this troube? >> >> >> >> Greetings >> >> Alexander >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org