Replaced Servlet with ServletContextListener in webapp packaging

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@138 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2008-10-01 11:40:36 +00:00
parent bbdd1ae5d9
commit 9784c6608d
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public class DavGatewayServletContextListener implements ServletContextListener
public void contextInitialized(ServletContextEvent event) {
InputStream settingInputStream = null;
try {
settingInputStream = DavGatewayServlet.class.getClassLoader().getResourceAsStream("davmail.properties");
settingInputStream = DavGatewayServletContextListener.class.getClassLoader().getResourceAsStream("davmail.properties");
Settings.load(settingInputStream);
DavGateway.start();
} catch (IOException e) {