[jboss-user] [JBoss Seam] - Re: Getting error trying to deploy the CRUD application gene

jbosspatni do-not-reply at jboss.com
Tue Aug 14 10:11:01 EDT 2007


This is he components.xml
<?xml version="1.0" encoding="utf-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- Seam -->
    
        <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
    
    
        <filter-name>Seam Exception Filter</filter-name>
        <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
    
    <filter-mapping>
        <filter-name>Seam Exception Filter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
<!-- MyFaces -->
    
        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>
    
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
</web-app>

faces-config.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<!-- navigation rules for com.test.planner.Category -->
    <navigation-rule>
        <navigation-case>
            <from-outcome>editCategory</from-outcome>
            <to-view-id>/editCategory.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>selectCategory</from-outcome>
            <to-view-id>/findCategory.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>findCategory</from-outcome>
            <to-view-id>/findCategory.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/editCategory.jsp</from-view-id>
        <navigation-case>
            <from-outcome>find</from-outcome>
            <to-view-id>/findCategory.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
<!-- Same for all Seam applications -->
    
        <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
    
    
        <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
    
</faces-config>

web.xml
<?xml version="1.0" encoding="utf-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- Seam -->
    
        <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
    
    
        <filter-name>Seam Exception Filter</filter-name>
        <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
    
    <filter-mapping>
        <filter-name>Seam Exception Filter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
<!-- MyFaces -->
    
        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>
    
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
</web-app>


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074032#4074032

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074032



More information about the jboss-user mailing list