1 Reply Latest reply on Jan 6, 2012 1:47 PM by kwutzke

    Resource not available (no stack trace)

    kwutzke

      Hello,

       

      I'm deploying a Seam 2 app (JSF 1.2, Seam 2.2.1, Richfaces 3.3.3, Hibernate 3.6.5) to JBoss AS 7.1.CR1. The webapp is up, as I can execute my test HTTP servlet (which confirms the context and persistence is working).

       

      When loading any of the real .seam pages a message is shown in the browser:

       

      {code}HTTP Status 404 - /bbstats/season-home.seam

       

      type Status report

       

      message /bbstats/season-home.seam

       

      description The requested resource (/bbstats/season-home.seam) is not available.

      JBoss Web/7.0.7.Final{code}

       

      However, there's no stack trace. I checked the deploy dir, all .xhtml files are present, as well as web.xml, components.xml etc.

       

      This is my web.xml:

       

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

      <web-app version="2.5" 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">

       

      <description>Basketball Stats Web Application</description>

      <display-name>Basketball Stats</display-name>

       

      <context-param>

        <param-name>com.sun.faces.displayConfiguration</param-name>

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

      </context-param>

       

      <context-param>

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

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

      </context-param>

       

      <context-param>

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

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

      </context-param>

       

      <context-param>

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

        <param-value>#{skinBean.skin}</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>

       

      <listener>

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

      </listener>

       

      <servlet>

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

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

      </servlet>

       

      <servlet-mapping>

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

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

      </servlet-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>

       

      <servlet>

        <servlet-name>Basketball Stats Servlet</servlet-name>

        <servlet-class>com.kawoolutions.bbstats.servlet.BasketballStatsServlet</servlet-class>

      </servlet>

       

      <servlet-mapping>

        <servlet-name>Basketball Stats Servlet</servlet-name>

        <url-pattern>/home</url-pattern>

      </servlet-mapping>

       

      <session-config>

        <session-timeout>300</session-timeout>

      </session-config>

      </web-app>{code}

      Does anyone know what might be wrong here? Any suggestions on what to try are welcome.

       

      Thanks

      Karsten

        • 1. Re: Resource not available (no stack trace)
          kwutzke

          Eclipse project re-setup caused the default suffix to be erased. Re-entering

          {code}<context-param>

            <param-name>javax.faces.DEFAULT SUFFIX</param-name>

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

          </context-param>{code}

          ...  into web.xml. Usually javax.faces.DEFAULT_SUFFIX defaults to .jsp. Nice one.

           

          Karsten