0 Replies Latest reply on Aug 16, 2011 4:39 PM by shpit

    HTTP - 404 error

    shpit

      Hi,

       

      I am gettting the following exception. I migrated from SEAM 1.2 to SEAM 2.2. This works fine when SEAM 1.2 is used.

       

      HTTP Status 404 - /PerfmWeb/home.seam


      type Status report

      message /PerfWeb/home.seam

      description The requested resource (/PErfWeb/home.seam) is not available.


       

      Web.xml :

       

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

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

      <!--  <display-name>PerfmWeb</display-name>-->

      <!--  <welcome-file-list>-->

      <!--    <welcome-file>index.html</welcome-file>-->

      <!--    <welcome-file>index.htm</welcome-file>-->

      <!--    <welcome-file>index.jsp</welcome-file>-->

      <!--    <welcome-file>default.html</welcome-file>-->

      <!--    <welcome-file>default.htm</welcome-file>-->

      <!--    <welcome-file>default.jsp</welcome-file>-->

      <!--  </welcome-file-list>-->

        <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>*.seam</url-pattern>

        </servlet-mapping>

        <context-param>

          <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>

          <param-value>Mojarra-1.2</param-value>

        </context-param>

        <context-param>

          <param-name>org.richfaces.SKIN</param-name>

          <param-value>blueSky</param-value>

        </context-param>

        <listener>

          <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>

        </listener>

        <filter>

          <filter-name>Seam Filter</filter-name>

          <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>

        </filter>

        <filter-mapping>

          <filter-name>Seam Filter</filter-name>

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

        </filter-mapping>

        <servlet>

          <servlet-name>Seam Resource Servlet</servlet-name>

          <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>

        </servlet>

        <servlet-mapping>

          <servlet-name>Seam Resource Servlet</servlet-name>

          <url-pattern>/seam/resource/*</url-pattern>

        </servlet-mapping>

        <context-param>

          <param-name>facelets.DEVELOPMENT</param-name>

          <param-value>true</param-value>

        </context-param>

        <context-param>

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

          <param-value>.xhtml</param-value>

        </context-param>

        <security-constraint>

          <display-name>Restrict raw XHTML Documents</display-name>

          <web-resource-collection>

            <web-resource-name>XHTML</web-resource-name>

            <url-pattern>*.xhtml</url-pattern>

          </web-resource-collection>

          <auth-constraint/>

        </security-constraint>

       

         <!-- Resource reference -->

       

          <resource-ref>

              <description>Connection to SQL Server, PERF DW database</description>

              <res-ref-name>jdbc/PERFWebDS</res-ref-name>

              <res-type>javax.sql.DataSource</res-type>

              <res-auth>Container</res-auth>

          </resource-ref>

       

          <resource-ref>

              <description>Connection to SQL Server, PERF database</description>

              <res-ref-name>jdbc/PERFWebDS_Updatable</res-ref-name>

              <res-type>javax.sql.DataSource</res-type>

              <res-auth>Container</res-auth>

          </resource-ref>

       

         <!-- HTTP Session timeout, in minutes -->

       

         <session-config>

             <session-timeout>240</session-timeout>

         </session-config>

       

      </web-app>