read categories information from the configuration
[pnews.git] / war / src / main / java / pnews / servlet / Pnews.java
index e254a61..63040c8 100644 (file)
@@ -199,7 +199,11 @@ public class Pnews extends HttpServlet {
                 LOG.info("Pnews servlet init " + cfg.getServletContext().getContextPath());
                 
                 config = new Config();
-                config.loadConfig();
+                try {
+                        config.loadConfig();
+                } catch (UnsupportedEncodingException e) {
+                        throw new ServletException(e);
+                }
                 
                 provider = new ArticleProvider(config);
         }