From 108135a586097eb0a8823f3ab59d0c26ce46f7c8 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Fri, 30 Sep 2011 13:33:18 +0000 Subject: [PATCH] Another fix for #7692 for JBoss 5+ and possibly other servers/class loaders. svn changeset:21477/svn branch:6.6 --- .../gwt/server/AbstractApplicationServlet.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java index 54d2264691..65c902bc10 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java @@ -1369,9 +1369,9 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements logger.fine("Accepted access to a JAR entry using a class loader: " + resourceUrl); return true; - } else if ("file".equals(resourceUrl.getProtocol())) { - // Some servers such as GlassFish extract files from JARs. In such - // cases, the class loader sees them as file URLs. + } else { + // Some servers such as GlassFish extract files from JARs (file:) + // and e.g. JBoss 5+ use protocols vsf: and vfsfile: . // Check that the URL is in a VAADIN directory and does not contain // "/../" @@ -1384,10 +1384,6 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements + resourceUrl); return true; } - - // when using the class loader fall-back, other protocols than jar: and - // file: are not supported - return false; } /** -- 2.39.5