mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-04 14:52:24 -05:00
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:
parent
bbdd1ae5d9
commit
9784c6608d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user