I forget to say an importtant thing. I use seam1.0.0CR3 and JBOSS4.0.4GA.

I set up seam setting in faces-config.xml, web.xml and ejb-jar.xml.
faces-cconfig.xml is

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <!DOCTYPE faces-config 
  |     PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
  |   "http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>
  | 
  | <faces-config>
  | 
  | 
  | 
  |     <!-- Same for all Seam applications -->
  | 
  |     <application>
  |         
<variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
  |     </application>
  |     
  |     <!-- Select one of the three standard persistence lifecycle models for 
the Seam application -->
  | 
  |     <lifecycle>
  |         
<phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
  |     </lifecycle>
  |     
  | 
  | </faces-config>
  | 

web.xml is

  | <?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>
  |         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  | 
  |     <!-- Global JNDI name pattern for JBoss EJB3 (change for other servers) 
-->
  | 
  |     <context-param>
  |         <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
  |         <param-value>SeamTest01/#{ejbName}/local</param-value>
  |     </context-param>
  | 
  | 
  |     
  |     <!-- MyFaces -->
  | 
  |     <listener>
  |         
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener>
  |     
  |     <context-param>
  |         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>
  |     </context-param>
  | 
  |     <servlet>
  |             <servlet-name>Faces Servlet</servlet-name>
  |             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |             <load-on-startup>1</load-on-startup>
  |     </servlet>
  | 
  |     <!-- Faces Servlet Mapping -->
  |     <servlet-mapping>
  |             <servlet-name>Faces Servlet</servlet-name>
  |             <url-pattern>*.seam</url-pattern>
  |     </servlet-mapping>
  | 
  | 
  | </web-app>
  | 

ejb-jar.xml is

  | <ejb-jar>
  |    <assembly-descriptor>
  |       <interceptor-binding>
  |          <ejb-name>*</ejb-name>
  |          
<interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
  |       </interceptor-binding>
  |    </assembly-descriptor>
  | </ejb-jar>
  | 

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

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

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to