14 Replies Latest reply on Sep 28, 2006 11:21 AM by Galo

    Could not find Stateful bean

    Carolina Rojas Newbie

      Hi, I get this exception


      17:28:57,272 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
      javax.servlet.ServletException: Error calling action method of component with id buscarBeneficiario:_id37
       at javax.faces.webapp.FacesServlet.service (FacesServlet.java:121)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173)
       at src.co.com.ficitec.fachada.AutorizacionSMCFilter.doFilter(AutorizacionSMCFilter.java:254)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at src.co.com.ficitec.fachada.RevisarSesionesActivasFilter.doFilter(RevisarSesionesActivasFilter.java:56)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
       at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java :175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      17:28:57,274 INFO [SeamExceptionFilter] killing transaction
      17:28:57,275 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.FacesException: Error calling action method of component with id buscarBeneficiario:_id37
       at org.apache.myfaces.application.ActionListenerImpl.processAction (ActionListenerImpl.java:74)
       at javax.faces.component.UICommand.broadcast(UICommand.java:106)
       at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
       at javax.faces.component.UIViewRoot.processApplication (UIViewRoot.java:164)
       at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
       at src.co.com.ficitec.fachada.AutorizacionSMCFilter.doFilter(AutorizacionSMCFilter.java:254)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at src.co.com.ficitec.fachada.RevisarSesionesActivasFilter.doFilter(RevisarSesionesActivasFilter.java :56)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java :96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java :664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run (Thread.java:595)
      Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{fachada.srvRegistrarAvance}
       at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
       ... 36 more
      Caused by: javax.ejb.EJBTransactionRolledbackException: javax.ejb.EJBNoSuchObjectException : Could not find Stateful bean: 5c4o02m-g7qjuy-esaqbih2-1-esaulv2e-12a
       at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
       at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java :130)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke (TxPropagationInterceptor.java:76)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java :81)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext (MethodInvocation.java:101)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java :101)
       at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
       at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
       at $Proxy1603.srvRegistrarAvance(Unknown Source)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
       ... 37 more
      Caused by: javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5c4o02m-g7qjuy-esaqbih2-1-esaulv2e-12a
       at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:266)
       at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke (StatefulInstanceInterceptor.java:59)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java :78)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext (MethodInvocation.java:101)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java :101)
       at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
       at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
       at $Proxy1609.getExample(Unknown Source)
       at src.co.com.ficitec.fachada.FachadaServicios.srvRegistrarAvance(FachadaServicios.java:2577)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext (MethodInvocation.java:112)
       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java :56)
       at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64)
       at sun.reflect.GeneratedMethodAccessor779.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
       at org.jboss.seam.interceptors.Interceptor.aroundInvoke (Interceptor.java:90)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
       at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java :21)
       at sun.reflect.GeneratedMethodAccessor778.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke (Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
       at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed (SeamInvocationContext.java:60)
       at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
       at sun.reflect.GeneratedMethodAccessor777.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java :13)
       at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
       at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent (BijectionInterceptor.java:33)
       at sun.reflect.GeneratedMethodAccessor776.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
       at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
       at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82)
       at sun.reflect.GeneratedMethodAccessor775.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke (Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
       at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed (SeamInvocationContext.java:60)
       at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
       at sun.reflect.GeneratedMethodAccessor774.invoke (Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke (Reflections.java:13)
       at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
       at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
       at sun.reflect.GeneratedMethodAccessor773.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
       at org.jboss.seam.interceptors.Interceptor.aroundInvoke (Interceptor.java:90)
       at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
       at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:73)
       at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:45)
       at sun.reflect.GeneratedMethodAccessor729.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
       at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke (EJB3InterceptorsInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke (ExtendedPersistenceContextPropagationInterceptor.java:57)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke (TransactionScopedEntityManagerInterceptor.java:54)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java :47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
       ... 57 more
      



      How can I avoid this exception?

      Thanks,

      Carolina

        • 1. Re: Could not find Stateful bean
          Todd Main Newbie

          Probably want to include the target bean java code plus the portion of your page where you reference the action.

          Also, check your logs for a reference to your target bean.

          I assume other parts of your application are working with Seam?

          • 2. Re: Could not find Stateful bean
            Carolina Rojas Newbie

            my application works with Seam.

            • 3. Re: Could not find Stateful bean
              Todd Main Newbie

              sounds good - we still need to see the code

              • 4. Re: Could not find Stateful bean
                Carolina Rojas Newbie

                ok, but what part of code???

                I have editors, selectors, finders, JSPs, a facade ...

                Can you help me with the exception?

                • 5. Re: Could not find Stateful bean
                  Todd Main Newbie

                  Maybe some other folks are familiar with this sort of exception, , but it doesn't mean anything to me except that it appears that you invoked some action and JSF couldn't find the EJB session where the action was implemented.

                  I was hoping to see the JSP code including the reference to the action, and the Java code for the action class (EJB session?)

                  • 6. Re: Could not find Stateful bean
                    Carolina Rojas Newbie

                    This is the JSP

                    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
                    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
                    
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
                    <f:view>
                    <f:loadBundle basename="messages" var="msg"/>
                     <head>
                     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                     <title><h:outputText value="#{msg.CrearColombia}"/></title>
                     <style type="text/css" media="all">
                     @import "style/default/screen.css";
                     </style>
                     </head>
                     <body>
                     <h:form>
                    
                    
                    
                    
                     <f:subview id="header">
                     <table width="988" border="0" align="center" cellpadding="0" cellspacing="0">
                     <tr>
                     <td valign="middle"><div align="center"><img src="style/default/img/cabe.jpg" width="984" height="170"/>
                     </div>
                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
                     <tr align="center">
                     <td width="141" height="23" class="boton_menu"><a href="beneficiariosOferente.jsf">Beneficiarios</a></td>
                     <td width="141" height="23" class="boton_menu"><a href="convocatoriasOferente.jsf">Convocatorias</a></td>
                     <td width="141" height="23" class="boton_menu"><a href="portafoliosOferente.jsf">Portafolios</a></td>
                     <td width="141" height="23" class="boton_menu"><a href="casoExitoOferente.jsf">Casos de éxito</a></td>
                     <td width="141" height="23" class="boton_menu"><a href="evaluacionesOferente.jsf">Evaluaciones</a></td>
                     <td width="141" height="23" class="boton_menu"><a href="salir.jsf" class="boton_menu">Salir</a></td>
                     <td width="142" class="txt_label">
                     <!--<select name="select" >
                     <option class="txt_titulo2" value=<h:commandLink value="#{msg.Create} #{msg.Convocatoria}" action="#{fachada.srvEditarConvocatoria}"/> > </option>
                     <option class="txt_titulo2" value=<h:commandLink value="#{msg.VerConvocatorias}" action="#{fachada.srvConsultarConvocatoriaOferente}"/> ></option>
                    
                     </select>
                     </td>
                    
                     --><h:selectOneMenu value="#{fachada.opcion}" >
                     <f:selectItem itemValue="crearConvocatoria" itemLabel="#{msg.Create} #{msg.Convocatoria}" />
                     <f:selectItem itemValue="convocatoriaOferente" itemLabel="#{msg.VerConvocatorias}" />
                     </h:selectOneMenu>
                    
                     </td>
                     <td>
                     <h:commandButton value="Ir" action="#{fachada.srvOpcion}"></h:commandButton>
                     </td>
                     </tr>
                     </table></td>
                     </tr>
                     </table>
                    </f:subview>
                    <div align="right" class="txt_titulo"> <h:outputLabel value="#{msg.ConvocatoriasDisponibles}"></h:outputLabel> </div>
                    
                    
                    
                    
                     <DIV align="center">
                    
                     <br />
                     <br />
                     <table width="580px" border="0" cellspacing="0" cellpadding="0" class="table_border" >
                    
                     <tr>
                     <td>
                    
                     <table width="100%" border="0" cellspacing="3" cellpadding="0">
                    
                     <tr><td colspan="3"><span class="error"><h:messages id="mensajesCreacion"/></span> </td></tr>
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_nombre}" /> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputText value="#{fachada.convocatoriaEditor.instance.nombre}" id="nombre"/>
                    
                    
                     </div></td>
                     </tr>
                    
                    
                    
                     <!-- Propósito -->
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_proposito}" /> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputTextarea rows="7" cols="70" value="#{fachada.convocatoriaEditor.instance.proposito}" id="proposito"/>
                    
                    
                     </div></td>
                    
                     </tr>
                    
                     <!-- Dirigido a -->
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_dirigido}"/> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputText value="#{fachada.convocatoriaEditor.instance.dirigido}" id="dirigido"/>
                    
                    
                     </div></td>
                    
                    
                    
                    
                    
                     </tr>
                     <!-- Fecha y hora -->
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_fechahora}"/> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputText value="#{fachada.convocatoriaEditor.instance.fechahora}" id="fechahora">
                     <f:convertDateTime pattern="dd.MM.yyyy" type="both" />
                     </h:inputText>
                    
                     </div></td>
                    
                    
                    
                     </tr>
                    
                     <!-- Fecha y hora -->
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_hora}"/> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputText value="#{fachada.convocatoriaEditor.instance.hora}" id="hora">
                    
                     </h:inputText>
                    
                     </div></td>
                    
                    
                    
                     </tr>
                     <!-- Lugar -->
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_lugar}" /> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputText value="#{fachada.convocatoriaEditor.instance.lugar}" id="lugar"/>
                    
                    
                     </div></td>
                    
                    
                    
                     </tr>
                    
                    
                    
                    
                    
                     <!-- Nombre de contacto -->
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_contacto}" /> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputText value="#{fachada.convocatoriaEditor.instance.contacto}" id="contacto"/>
                    
                    
                     </div></td>
                    
                    
                    
                    
                    
                    
                    
                     </tr>
                     <!-- Teléfono de contacto -->
                     <tr>
                     <td width="19%">
                     <h:outputText value="#{msg.Convocatoria_telefonodecontacto}" /> </td>
                     <td width="13%"><div align="right" class="txt_label">
                    
                     <h:inputText value="#{fachada.convocatoriaEditor.instance.telefonodecontacto}" id="telefonodecontacto"/>
                    
                    
                     </div></td>
                    
                    
                    
                     </tr>
                     <tr>
                    
                    
                    
                    
                     <td colspan=2><table width="50%" border="0" cellspacing="0" cellpadding="0">
                     <tr>
                     <td> <br/> <br/><table width="100" border="0" align="center" cellpadding="0" cellspacing="0">
                     <tr onMouseOver="swap_boton('img_a_2', 'img_b_2', 'celda_2')" onMouseOut="restore_boton('img_a_2', 'img_b_2', 'celda_2')">
                     <td width="3px"><img src="style/default/img/bot_1.gif" id="img_a_2" width="3" height="22"></td>
                     <td width="100%" background="style/default/img/bot_2.gif" id="celda_2" class="txt_button" align="center">
                    
                     <span align="center"> <h:commandLink value="#{msg.Create}" action="#{fachada.srvCrearConvocatoria}" /></span>
                    
                    
                    
                     </td>
                    
                    
                     <td width="3px"><img src="style/default/img/bot_3.gif" id="img_b_2" width="3" height="22"></td>
                     </tr>
                     </table></td>
                    
                     </tr>
                     </table></td>
                     </tr>
                    
                     </table>
                    
                     </td>
                     </tr>
                    
                     </table>
                    
                     <br/>
                    
                     </DIV>
                    
                    
                    
                    
                     </h:form>
                    
                     </body>
                     </f:view>
                    </html>



                    and this is a part of the java code for the action


                    
                    public String srvCrearConvocatoria()
                     {
                    
                     long time=System.currentTimeMillis();
                     Date fechaHoy = new Date(time);
                    
                    
                     if(convocatoriaEditor.getInstance().getNombre().equals("") || convocatoriaEditor.getInstance().getNombre()==null
                     || convocatoriaEditor.getInstance().getContacto().equals("") || convocatoriaEditor.getInstance().getContacto() == null
                     || convocatoriaEditor.getInstance().getTelefonodecontacto().equals("") || convocatoriaEditor.getInstance().getTelefonodecontacto()== null
                     || convocatoriaEditor.getInstance().getProposito().equals("") || convocatoriaEditor.getInstance().getProposito()== null
                     || convocatoriaEditor.getInstance().getDirigido().equals("") || convocatoriaEditor.getInstance().getDirigido() == null
                     || convocatoriaEditor.getInstance().getLugar().equals("") || convocatoriaEditor.getInstance().getLugar() == null
                     || convocatoriaEditor.getInstance().getFechahora().equals("") || convocatoriaEditor.getInstance().getFechahora() == null
                     || convocatoriaEditor.getInstance().getHora().equals("") || convocatoriaEditor.getInstance().getHora() == null)
                     {
                     FacesContext.getCurrentInstance().addMessage(
                     null,
                     new FacesMessage(messages.get("DatosIncompletos") + " "
                     ));
                    
                     return null;
                     }
                     else
                     {
                    
                     if(convocatoriaEditor.getInstance().getFechahora().after(fechaHoy))
                     {
                    
                     if(convocatoriaEditor.create()!= null)
                     {
                    
                     FacesContext.getCurrentInstance().addMessage(
                     null,
                     new FacesMessage(messages.get("ConvocatoriaCreada") + " "
                     ));
                     convocatoriaEditor.create();
                    
                     }
                     else
                     {
                     FacesContext.getCurrentInstance().addMessage(
                     null,
                     new FacesMessage(messages.get("ErrorConvocatoria") + " "
                     ));
                    
                     }
                     }
                     else
                     {
                     FacesContext.getCurrentInstance().addMessage(
                     null,
                     new FacesMessage(messages.get("FechaInvalida") + " "
                     ));
                    
                     return null;
                     }
                     return null;
                     }
                    
                     }
                    
                    



                    Can you help me????


                    • 7. Re: Could not find Stateful bean
                      Carolina Rojas Newbie

                      Can somebody help me with this exception???

                      • 8. Re: Could not find Stateful bean
                        Carolina Rojas Newbie

                        Hi,
                        I need help with this. Can somebody help me?

                        • 9. Re: Could not find Stateful bean
                          Stephan Bublava Newbie

                          Check how you set "jndiPattern" in components.xml. I would also suggest to look into the JMX-console to find out how your session beans are registered in JNDI.

                          Thanks,
                          Stephan

                          • 10. Re: Could not find Stateful bean
                            Carolina Rojas Newbie

                            this is de components.xml

                            <?xml version="1.0" encoding="utf-8"?>
                            <components>
                             <component name="org.jboss.seam.core.init">
                             <property name="myFacesLifecycleBug">true</property>
                             <property name="jndiPattern">ficitec/#{ejbName}/local</property>
                             </component>
                             <component name="entityManager" class="org.jboss.seam.core.ManagedPersistenceContext">
                             <property name="persistenceUnitJndiName">java:/seamappEntityManagerFactory</property>
                             </component>
                            <!--
                             <component name="org.jboss.seam.core.manager">
                             <property name="conversationTimeout">120000</property>
                             </component>
                            
                             <component class="org.jboss.seam.core.Ejb" installed="false"/>
                             -->
                            </components>
                            




                            • 11. Re: Could not find Stateful bean
                              Carolina Rojas Newbie

                              the problem can be in the seam.properties????

                              this is de seam.properties.

                              # seam.properties
                              #org.jboss.seam.core.init.managedPersistenceContexts entityManager
                              #org.jboss.seam.core.manager.conversationTimeout 30000
                              #org.jboss.seam.core.init.jndiPattern ficitec/#\{ejbName\}/local
                              




                              • 12. Re: Could not find Stateful bean
                                Stephan Bublava Newbie

                                Maybe this is a silly question, but are you deploying your application as ficitec.ear?

                                • 13. Re: Could not find Stateful bean
                                  Carolina Rojas Newbie

                                  yes, I am deploying my application as ficitec.ear

                                  • 14. Re: Could not find Stateful bean
                                    Galo Newbie

                                    I had the same exception in a different context but I think it might help.

                                    I was using a Stateful bean in a servlet. It was initialized in the init() method and the reference kept in a static variable. I was running my app normally, but i let my session expire and when i tried accessing the servlet again, the exception popped up.

                                    Being a stateful bean, is it possible that the container destroyed that instance but the servlet kept the reference? When a new request was sent it was trying to use the old instance even though this was a new session, and thus the error.

                                    It is a stateful bean, so it didn't make sense to share it for all the instances of the servlet. I'm now loading the bean for each session, and everything works fine.

                                    Could you have a similar problem somewhere?