Deploying Seam app: resource not available (no stack trace)
kwutzke Jan 4, 2012 6:47 AMHello,
I'm porting a Seam 2 app (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 calling any of the real .seam pages a message is shown in the browser:
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
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:
<?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>
Does anyone know what might be wrong here? Any suggestions on what to try are welcome.
Thanks
Karsten