This is what my web.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="
http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Tiles Servlet</servlet-name>
<servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>control</servlet-name>
<servlet-class>privatedata.web.ControlServlet</servlet-class>
<load-on-startup>3</load-on-startup>
<init-param>
<param-name>connection.path</param-name>
<param-value>jdbc:mysql://localhost:3307/privatedata?autoReconnect=true</param-value>
</init-param>
<init-param>
<param-name>connection.driver</param-name>
<param-value>com.mysql.jdbc.Driver</param-value>
</init-param>
<init-param>
<param-name>connection.username</param-name>
<param-value>privatedata</param-value>
</init-param>
<init-param>
<param-name>connection.password</param-name>
<param-value>privatedata</param-value>
</init-param>
<init-param>
<param-name>connection.cryptpassword</param-name>
<param-value>privatedata</param-value>
</init-param>
<init-param>
<param-name>connection.characterencoding</param-name>
<param-value>cp1251</param-value>
</init-param>
<init-param>
<param-name>connection.useunicode</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>connection.count</param-name>
<param-value>10</param-value>
</init-param>
<init-param>
<param-name>configData</param-name>
<param-value>/WEB-INF/schedule.xml</param-value>
</init-param>
<init-param>
<param-name>configRules</param-name>
<param-value>/WEB-INF/schedule-rules.xml</param-value>
</init-param>
<init-param>
<param-name>log.property.file</param-name>
<param-value>/WEB-INF/log.properties</param-value>
</init-param>
<init-param>
<param-name>application.property.file</param-name>
<param-value>/WEB-INF/application.properties</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>control</servlet-name>
<url-pattern>/privatedata874932849ac</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>privatedata_dev_startup</servlet-name>
<servlet-class>privatedata_dev.StartupServlet</servlet-class>
<load-on-startup>4</load-on-startup>
</servlet>
<servlet>
<servlet-name>StickyCaptcha</servlet-name>
<servlet-class>nl.captcha.servlet.SimpleCaptchaServlet</servlet-class>
<init-param>
<param-name>width</param-name>
<param-value>150</param-value>
</init-param>
<init-param>
<param-name>height</param-name>
<param-value>50</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>StickyCaptcha</servlet-name>
<url-pattern>/stickyImg.captcha</url-pattern>
</servlet-mapping>
<!--
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jsf</param-value>
</context-param>
-->
<!--
<filter>
<filter-name>LocaleFilter</filter-name>
<filter-class>privatedata.web.filters.LocaleFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LocaleFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>Cp1251</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Set Character Encoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>MenuForwardFilter</filter-name>
<filter-class>privatedata.web.filters.MenuForwardFilter</filter-class>
<init-param>
<param-name>Supported Locales</param-name>
<param-value>uk,ru</param-value>
</init-param>
<init-param>
<param-name>Default Locale</param-name>
<param-value>uk</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MenuForwardFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>AdminControl</filter-name>
<filter-class>
privatedata.web.filters.AdminControlFilter
</filter-class>
<init-param>
<param-name>loginPage</param-name>
<param-value>/auth.faces</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>AdminControl</filter-name>
<url-pattern>/admin/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>AuthControl</filter-name>
<filter-class>
eset.web.filters.AuthControlFilter
</filter-class>
<init-param>
<param-name>loginFailedPage</param-name>
<param-value>/authfailed.faces</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>AuthControl</filter-name>
<url-pattern>/auth.faces</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/notfound.jsp</location>
</error-page>
</web-app>
[Message sent by forum member 'd_jm' (dens.business_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=382402