Return-Path: X-Original-To: apmail-struts-commits-archive@minotaur.apache.org Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B4E5E1F0 for ; Tue, 19 Feb 2013 10:14:19 +0000 (UTC) Received: (qmail 684 invoked by uid 500); 19 Feb 2013 10:14:18 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 529 invoked by uid 500); 19 Feb 2013 10:14:17 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 474 invoked by uid 99); 19 Feb 2013 10:14:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 10:14:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 10:14:13 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D46D523888CD; Tue, 19 Feb 2013 10:13:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1447654 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java Date: Tue, 19 Feb 2013 10:13:53 -0000 To: commits@struts.apache.org From: lukaszlenart@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130219101353.D46D523888CD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: lukaszlenart Date: Tue Feb 19 10:13:53 2013 New Revision: 1447654 URL: http://svn.apache.org/r1447654 Log: WW-3984 Adds additional logging to check what is wrong Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java?rev=1447654&r1=1447653&r2=1447654&view=diff ============================================================================== --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java Tue Feb 19 10:13:53 2013 @@ -73,6 +73,9 @@ public class JBossFileManager extends De LOG.debug("Creating revision for URL: " + fileName); } URL normalizedUrl = normalizeToFileProtocol(fileUrl); + if (LOG.isDebugEnabled()) { + LOG.debug("Normalized URL for [#0] is [#1]", fileName, normalizedUrl.toString()); + } Revision revision; if ("file".equals(normalizedUrl.getProtocol())) { revision = FileRevision.build(normalizedUrl); @@ -133,6 +136,9 @@ public class JBossFileManager extends De protected URL getJBossPhysicalUrl(URL url) throws IOException { Object content = url.openConnection().getContent(); String classContent = content.getClass().toString(); + if (LOG.isDebugEnabled()) { + LOG.debug("Reading physical URL for [#0]", url.toString()); + } if (classContent.startsWith("class org.jboss.vfs.VirtualFile")) { // JBoss 7 and probably 6 File physicalFile = readJBossPhysicalFile(content); return physicalFile.toURI().toURL();