[jboss-user] [JBoss Seam] - why Seam doesnt know my session beans in Tomcat?

mnrz do-not-reply at jboss.com
Thu Jan 18 03:30:23 EST 2007


Hi

Seam version:1.1.0 GA
Tomcat: 5.5

my application is deploying in tomcat with no exception but the Seam doesnt know my session beans. 
I checked every line of all config files and there is nothing incorrect. 
the Tomcat's console displays that it only understands datasource defined in persistence.xml 

here is components.xml:

  | <components>
  |     
  |     <!-- 120 second conversation timeout -->
  |     <component name="org.jboss.seam.core.manager">
  |         <property name="conversationTimeout">120000</property>
  |     </component>
  |     
  | 	<component class="org.jboss.seam.core.Ejb" installed="true" />
  | 	<component name="org.jboss.seam.core.init">
  | 		<property name="debug">true</property>
  | 		<property name="myFacesLifecycleBug">false</property>
  | 		<!-- JNDI name pattern for JBoss EJB 3.0 -->
  | 		<property name="jndiPattern">#{ejbName}/local</property>
  | 	</component>
  | 	
  | </components>
  | 

faces-config.xml

  | <faces-config>
  | 
  | 	<!-- Phase listener needed for all Seam applications -->
  | 	
  | 	<lifecycle>
  | 		<phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
  | 	</lifecycle>
  | 
  | </faces-config>
  | 
  | 

web.xml:

  |     <listener>
  |         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  | 
  |     <!-- Propagate conversations across redirects -->
  |     <filter>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
  |     </filter>
  |     
  |     <filter-mapping>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </filter-mapping>
  | 
  |     <!-- JSF -->
  |     
  |     <context-param>
  |         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  |         <param-value>.xhtml</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>facelets.DEVELOPMENT</param-name>
  |         <param-value>true</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>
  | 
  |     <!-- MyFaces -->
  |     <listener>
  |         <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener>
  |  
  |     <!-- JSF RI -->
  |     <!--
  |     <listener>
  |         <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  |     </listener> 
  |     -->
  |  	<welcome-file-list>
  | 		<welcome-file>index.jsp</welcome-file>
  | 	</welcome-file-list>
  | 
  | 

session bean:

  | @Stateful                                                                             
  | @Scope(ScopeType.SESSION) 
  | @Name("indexSearch")
  | public class IndexSearchAction implements IndexSearch {
  | 	
  | 	   private Log log;
  | //rest of code...
  | 	
  | }
  | 

thanks so much

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

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



More information about the jboss-user mailing list