aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java')
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java10
1 files 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;
}
/**