web.xml 4.33 KB
Newer Older
Bill Lynch's avatar
Bill Lynch committed
1
<?xml version="1.0" encoding="ISO-8859-1"?>
Bill Lynch's avatar
Bill Lynch committed
2

3
<web-app
Derek DeMoro's avatar
Derek DeMoro committed
4 5 6 7
        xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
Bill Lynch's avatar
Bill Lynch committed
8

9
    <display-name>Openfire</display-name>
Bill Lynch's avatar
Bill Lynch committed
10 11 12

    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
13
        <param-value>openfire_i18n</param-value>
Bill Lynch's avatar
Bill Lynch committed
14 15 16 17 18
    </context-param>

    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.locale</param-name>
        <param-value>zh_CN</param-value>
Bill Lynch's avatar
Bill Lynch committed
19
    </context-param>
20

Bill Lynch's avatar
Bill Lynch committed
21 22 23 24 25
    <filter>
        <filter-name>AuthCheck</filter-name>
        <filter-class>org.jivesoftware.admin.AuthCheckFilter</filter-class>
        <init-param>
            <param-name>excludes</param-name>
Derek DeMoro's avatar
Derek DeMoro committed
26
            <param-value>
27 28
                login.jsp,index.jsp?logout=true,setup/index.jsp,setup/setup-,.gif,.png,error-serverdown.jsp
            </param-value>
Bill Lynch's avatar
Bill Lynch committed
29 30 31
        </init-param>
    </filter>

32 33 34 35 36 37
    <filter>
        <filter-name>PluginFilter</filter-name>
        <filter-class>org.jivesoftware.admin.PluginFilter</filter-class>
    </filter>

    <filter>
38 39 40 41
        <filter-name>Set Character Encoding</filter-name>
        <filter-class>org.jivesoftware.util.SetCharacterEncodingFilter</filter-class>
    </filter>

Derek DeMoro's avatar
Derek DeMoro committed
42
    <filter>
Bill Lynch's avatar
Bill Lynch committed
43 44 45
        <filter-name>LocaleFilter</filter-name>
        <filter-class>org.jivesoftware.util.LocaleFilter</filter-class>
    </filter>
Derek DeMoro's avatar
Derek DeMoro committed
46

47 48 49 50
    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
    </filter>
Bill Lynch's avatar
Bill Lynch committed
51

Bill Lynch's avatar
Bill Lynch committed
52 53 54 55
    <filter-mapping>
        <filter-name>AuthCheck</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
56

57 58 59 60
    <filter-mapping>
        <filter-name>PluginFilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
Bill Lynch's avatar
Bill Lynch committed
61

62 63 64 65 66
    <filter-mapping>
        <filter-name>Set Character Encoding</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>

Bill Lynch's avatar
Bill Lynch committed
67 68 69 70 71
    <filter-mapping>
        <filter-name>LocaleFilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>

72 73 74 75
    <filter-mapping>
        <filter-name>AuthCheck</filter-name>
        <servlet-name>PluginServlet</servlet-name>
    </filter-mapping>
76 77 78 79 80

    <filter-mapping>
        <filter-name>PluginFilter</filter-name>
        <servlet-name>PluginServlet</servlet-name>
    </filter-mapping>
Derek DeMoro's avatar
Derek DeMoro committed
81

82 83 84 85
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
86

87 88 89 90 91 92
    <filter-mapping>
        <filter-name>AuthCheck</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
    </filter-mapping>


93
    <listener>
94
        <listener-class>org.jivesoftware.openfire.XMPPContextListener</listener-class>
95 96
    </listener>

97 98
    <servlet>
        <servlet-name>PluginServlet</servlet-name>
99
        <servlet-class>org.jivesoftware.openfire.container.PluginServlet</servlet-class>
Bill Lynch's avatar
Bill Lynch committed
100
        <load-on-startup>1</load-on-startup>
101 102
    </servlet>

103 104 105 106 107 108
    <servlet>
        <servlet-name>FaviconServlet</servlet-name>
        <servlet-class>org.jivesoftware.util.FaviconServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

Derek DeMoro's avatar
Derek DeMoro committed
109 110 111 112
    <servlet>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
    </servlet>
113

114 115
    <servlet>
        <servlet-name>PluginIconServlet</servlet-name>
116
        <servlet-class>org.jivesoftware.openfire.container.PluginIconServlet</servlet-class>
117 118
    </servlet>

Derek DeMoro's avatar
Derek DeMoro committed
119

Derek DeMoro's avatar
Derek DeMoro committed
120 121
    <!--@@JSPC-SERVLETS@@-->

122 123 124 125 126
    <servlet-mapping>
        <servlet-name>PluginServlet</servlet-name>
        <url-pattern>/plugins/*</url-pattern>
    </servlet-mapping>

127 128 129 130 131
    <servlet-mapping>
        <servlet-name>FaviconServlet</servlet-name>
        <url-pattern>/getFavicon</url-pattern>
    </servlet-mapping>

132
    <servlet-mapping>
133 134 135 136
        <servlet-name>PluginIconServlet</servlet-name>
        <url-pattern>/geticon</url-pattern>
    </servlet-mapping>

Derek DeMoro's avatar
Derek DeMoro committed
137 138 139 140 141
    <servlet-mapping>
        <servlet-name>dwr-invoker</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>

142 143 144 145 146 147 148
    <jsp-config>
        <taglib>
            <taglib-uri>admin</taglib-uri>
            <taglib-location>/WEB-INF/admin.tld</taglib-location>
        </taglib>
    </jsp-config>

Matt Tucker's avatar
Matt Tucker committed
149 150
</web-app>

Derek DeMoro's avatar
Derek DeMoro committed
151