diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2007-10-31 18:01:41 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2007-10-31 18:01:41 +0000 |
commit | 2e2d2c619636884058000a6efa8544a693dccab0 (patch) | |
tree | 5a1cd6671ef694222f6179c1ea7a5d53f44280a1 /src | |
parent | e45ff287f78483139e1db0695a2ba63626a02e70 (diff) | |
download | vaadin-framework-2e2d2c619636884058000a6efa8544a693dccab0.tar.gz vaadin-framework-2e2d2c619636884058000a6efa8544a693dccab0.zip |
Using proper logging method instead of System.err..
svn changeset:2646/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java index e6c8cd1400..2fffb1161d 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java @@ -422,19 +422,13 @@ public class ApplicationServlet extends HttpServlet { if (is == null) { // try if requested file is found from classloader try { - // ClassLoader cld = Thread.currentThread() - // .getContextClassLoader(); - // if (cld == null) - // throw new ClassNotFoundException( - // "Could not create ClassLoader."); - // is = cld.getResourceAsStream(filename); is = this.classLoader.getResourceAsStream(filename); } catch (Exception e) { - System.err - .println("Requested resource [" + // cannot serve requested file + Log + .warn("Requested resource [" + filename + "] not found from filesystem or through class loader."); - // cannot serve requested file response.setStatus(404); return; } |