aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-10-31 18:01:41 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-10-31 18:01:41 +0000
commit2e2d2c619636884058000a6efa8544a693dccab0 (patch)
tree5a1cd6671ef694222f6179c1ea7a5d53f44280a1 /src
parente45ff287f78483139e1db0695a2ba63626a02e70 (diff)
downloadvaadin-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.java12
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;
}