1 Reply Latest reply on Feb 10, 2011 12:19 PM by Ilya Shaikovsky

    Problem deploying an application on tomcat 7

    Romeo Zdrite Newbie

      Hey,

       

      I'm using Richfaces 3.3.0. During the development, I used to deploy the application on glassfish 3.0, as that was the default web server that came with Netbeans, but now I need to deploy it on a tomcat 7 web server.

      When I try to deploy the application I get the following error:

       

      Feb 10, 2011 3:38:08 PM org.apache.catalina.core.StandardContext startInternal

      SEVERE: Error filterStart

       

      While browsing on different forums I've read several posts what wanted to see the web.xml file, but no real solution came out. My web.xml looks like this:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="3.0" 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_3_0.xsd">

          <welcome-file-list>

              <welcome-file>faces/anunturiMain.jsp</welcome-file>

          </welcome-file-list>

          <context-param>

              <param-name>javax.faces.PROJECT_STAGE</param-name>

              <param-value>Development</param-value>

          </context-param>

          <filter>

              <display-name>RichFaces Filter</display-name>

              <filter-name>richfaces</filter-name>

              <filter-class>org.ajax4jsf.Filter</filter-class>

          </filter>

          <filter-mapping>

              <filter-name>richfaces</filter-name>

              <servlet-name>Faces Servlet</servlet-name>

              <dispatcher>REQUEST</dispatcher>

              <dispatcher>FORWARD</dispatcher>

              <dispatcher>INCLUDE</dispatcher>

          </filter-mapping>

          <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

              <load-on-startup>1</load-on-startup>

          </servlet>

          <servlet>

              <servlet-name>displayImage</servlet-name>

              <servlet-class>servlets.displayImage</servlet-class>

          </servlet>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>/faces/*</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>displayImage</servlet-name>

              <url-pattern>/displayImage</url-pattern>

          </servlet-mapping>

          <session-config>

              <session-timeout>

                  30

              </session-timeout>

          </session-config>

      </web-app>

       

      The file was automatically generated by Netbeans 6.9.1. and only filter tag comes from the Richfaces configuration. What are my options now, to be able to deploy the application on Tomcat.