3 Replies Latest reply on May 30, 2006 9:48 PM by siv ram

    JSF problem: Has any one seen this issue?

    siv ram Newbie


      I was trying to add a method in the HomeBean.java to send mail. I created the commandbutton to action this method from home.jsp. I compiled the jbpm using ant clean and ant and there is no error.

      When I clicked this link I get this servlet exception. your help is much appreciated.


      17:03:03,890 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet t
      hrew exception
      javax.faces.FacesException: Error calling action method of component with id _id
      14
      at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
      nListenerImpl.java:74)
      at javax.faces.component.UICommand.broadcast(UICommand.java:106)
      at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:9
      0)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
      64)
      at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(Lifecycl
      eImpl.java:271)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
      :86)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFi
      lter.java:55)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.faces.el.EvaluationException: Exception while invoking expressi
      on #{homeBean.sendMail}
      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java
      :165)
      at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
      nListenerImpl.java:63)
      ... 34 more
      Caused by: java.lang.NoSuchMethodException: org.jbpm.webapp.bean.HomeBean.sendMa
      il()
      at java.lang.Class.getMethod(Class.java:1581)
      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java
      :118)
      ... 35 more

        • 1. Re: JSF problem: Has any one seen this issue?
          Ronald van Kuijk Master

          Caused by: java.lang.NoSuchMethodException: org.jbpm.webapp.bean.HomeBean.sendMa
          il()

          java is so simple

          • 2. Re: JSF problem: Has any one seen this issue?
            siv ram Newbie

            Yes I agree.

            However the method is in the HomeBean.java file and as I have mentioned it compiled fine when used with ant clean and ant. Do I need package or deploy specifically? Or restarting the jboss server would do the job? Clearly the newer bean class is not effective - which is same problem I reported before.

            In Tomcat server deployment compliing the new bean file and packaging it into the webapps direcroy works correct.

            Thanks for your help.
            -Siv

            • 3. Re: JSF problem: Has any one seen this issue?
              siv ram Newbie

              As you advised I tried enabling the cacheinvalidation service in cache-invalidation-service.xml file :

              I am not sure if it would help to resolve the new bean activation issue, if I am able to eliminate these error messages.

              --- MBeans waiting for other MBeans ---
              ObjectName: jboss.cache:service=InvalidationBridge,type=JavaGroups
              State: FAILED
              Reason: javax.naming.NameNotFoundException: ConnectionFactory not bound
              I Depend On:
              jboss.cache:service=InvalidationManager
              jboss.mq.destination:service=Topic,name=JMSCacheInvalidationBridge

              --- MBEANS THAT ARE THE ROOT CAUSE OF THE

              PROBLEM ---
              ObjectName: jboss.cache:service=InvalidationBridge,type=JavaGroups
              State: FAILED
              Reason: javax.naming.NameNotFoundException: ConnectionFactory not bound
              I Depend On:
              jboss.cache:service=InvalidationManager
              jboss.mq.destination:service=Topic,name=JMSCacheInvalidationBridge




              Thanks
              Regards
              -Shiv