7 Replies Latest reply on Aug 2, 2007 5:00 AM by Stateless Bean

    JBoss scheduler (processor) problem on Tomcat...

    Stateless Bean Novice

      Hi,
      I got working app on JBoss 4.0.5 using Seam scheduler (also working fine). Now I try to run my app on tomcat 5.5. Everythink I think so far works, but when I try to start my scheduler i get null pointer exception on processor.
      Do I need to do some anythink special to run my scheduler on tomcat?

      here is my source code:

      @In(create=true)
      EngineProcessor processor;
      


       try {
      
       long interval = 2 * 1000;
       @SuppressWarnings("unused")
       Timer timer = processor.scheduleBuildings(new Date(), interval, null);
       }
       catch (RuntimeException e) {
       log.error("Scheduler ->engineControler - calcTasks(): " + e.getMessage());
       }
      


      and here i get processor = null


      On JBoss this works.

        • 1. Re: JBoss scheduler (processor) problem on Tomcat...
          Pete Muir Master

          I don't think thats due to scheduling, but a problem with injection. Check that your processor component exists in the Seam debug page.

          • 2. Re: JBoss scheduler (processor) problem on Tomcat...
            Stateless Bean Novice

            If i understod u well, I added debug.jar and loaded debug.seam.

            Yes it exist

             org.jboss.seam.ui.graphicImage.dynamicImageResource.component
            org.jboss.seam.ui.graphicImage.dynamicImageStore.component
            org.jboss.seam.ui.resource.webResource
            org.jboss.seam.ui.resource.webResource.component
            <b>processor.component</b>
            


            problem still exist, I get
            20:46:16,515 ERROR [EngineControler] Scheduler ->engineControler - calcTasks(): java.lang.NullPointerException
            


            • 3. Re: JBoss scheduler (processor) problem on Tomcat...
              Stateless Bean Novice

              I also tried to run your example -jboss-seam-pay and this doesn't work to on tomcat 5.5 with java 1.6,

              On JBoss 4.0.5 this works,
              In your example I get:

              javax.servlet.ServletException: Error calling action method of component with id _id15:_id32:_id47
               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
               at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
               at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
               at java.lang.Thread.run(Unknown Source)
              08:42:08,937 ERROR [ExceptionFilter] exception root cause
              javax.faces.FacesException: Error calling action method of component with id _id15:_id32:_id47
               at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
               at javax.faces.component.UICommand.broadcast(UICommand.java:106)
               at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
               at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
               at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
               at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
               at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
               at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
               at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
               at java.lang.Thread.run(Unknown Source)
              Caused by: javax.faces.el.EvaluationException: /search.xhtml @152,76 action="#{paymentHome.saveAndSchedule}": javax.ejb.EJBTransactionRolledbackException: java.lang.NullPointerException
               at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
               at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
               ... 33 more
              Caused by: javax.ejb.EJBTransactionRolledbackException: java.lang.NullPointerException
               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.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
               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.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
               at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
               at $Proxy47.scheduleInvocation(Unknown Source)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
               at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
               at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
               at org.javassist.tmp.java.lang.Object_$$_javassist_5.scheduleInvocation(Object_$$_javassist_5.java)
               at org.jboss.seam.interceptors.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:31)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
               at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
               at org.jboss.seam.example.seampay.PaymentProcessor_$$_javassist_4.schedulePayment(PaymentProcessor_$$_javassist_4.java)
               at org.jboss.seam.example.seampay.PaymentController.saveAndSchedule(PaymentController.java:32)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
               at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
               at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
               at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
               at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
               at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
               at org.jboss.seam.example.seampay.PaymentController_$$_javassist_3.saveAndSchedule(PaymentController_$$_javassist_3.java)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
               at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
               at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
               at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
               ... 34 more
              Caused by: java.lang.NullPointerException
               at org.jboss.seam.core.Dispatcher.schedule(Dispatcher.java:215)
               at org.jboss.seam.core.Dispatcher.scheduleInvocation(Dispatcher.java:205)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
               at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
               at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
               at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               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.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)
               ... 98 more
              08:42:08,953 ERROR [DebugPageHandler] redirecting to debug page
              java.lang.NullPointerException
               at org.jboss.seam.core.Dispatcher.schedule(Dispatcher.java:215)
               at org.jboss.seam.core.Dispatcher.scheduleInvocation(Dispatcher.java:205)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
               at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
               at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
               at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               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.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)
               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.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
               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.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
               at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
               at $Proxy47.scheduleInvocation(Unknown Source)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
               at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
               at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
               at org.javassist.tmp.java.lang.Object_$$_javassist_5.scheduleInvocation(Object_$$_javassist_5.java)
               at org.jboss.seam.interceptors.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:31)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
               at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
               at org.jboss.seam.example.seampay.PaymentProcessor_$$_javassist_4.schedulePayment(PaymentProcessor_$$_javassist_4.java)
               at org.jboss.seam.example.seampay.PaymentController.saveAndSchedule(PaymentController.java:32)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
               at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
               at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
               at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
               at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
               at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
               at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
               at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
               at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
               at org.jboss.seam.example.seampay.PaymentController_$$_javassist_3.saveAndSchedule(PaymentController_$$_javassist_3.java)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
               at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
               at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
               at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
               at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
               at javax.faces.component.UICommand.broadcast(UICommand.java:106)
               at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
               at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
               at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
               at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
               at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
               at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
               at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
               at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
               at java.lang.Thread.run(Unknown Source)


              • 4. Re: JBoss scheduler (processor) problem on Tomcat...
                Michael Yuan Novice

                Do you have EJB3 installed on Tomcat? I believe the seam-pay example uses EJB3 Timers.

                Also, our test coverage on JDK 1.6 is very limited.

                • 5. Re: JBoss scheduler (processor) problem on Tomcat...
                  Stateless Bean Novice

                  I think yes.

                  here is my components.xml. Maybe I should install some bean/class like processor in compoenents?

                  <?xml version="1.0" encoding="UTF-8"?>
                  <components xmlns="http://jboss.com/products/seam/components"
                   xmlns:core="http://jboss.com/products/seam/core"
                   xmlns:security="http://jboss.com/products/seam/security"
                   xmlns:drools="http://jboss.com/products/seam/drools"
                   xmlns:web="http://jboss.com/products/seam/web"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation=
                   "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
                   http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
                   http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
                   http://jboss.com/products/seam/web http://jboss.com/products/seam/web-1.2.xsd
                   http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd">
                  
                   <!-- <core:init jndi-pattern="Universum/#{ejbName}/local" debug="false"/>-->
                   <core:init jndi-pattern="#{ejbName}/local" debug="true"/>
                  
                   <core:manager conversation-timeout="120000"
                   concurrent-request-timeout="500"
                   conversation-id-parameter="cid"
                   conversation-is-long-running-parameter="clr"/>
                  
                   <core:transactionListener/>
                  
                   <core:ejb installed="true"/>
                   <core:dispatcher/>
                   <component name="org.jboss.seam.remoting.remoting">
                   <property name="debug">false</property>
                   <property name="pollTimeout">2</property>
                   <property name="pollInterval">1</property>
                   </component>
                  
                   <drools:rule-base name="securityRules">
                   <drools:rule-files><value>/META-INF/security-rules.drl</value></drools:rule-files>
                   </drools:rule-base>
                  
                   <security:identity authenticate-method="#{authenticator.authenticate}"/>
                  
                   <!-- ><component name="em" auto-create="true" class="org.jboss.seam.core.ManagedPersistenceContext">
                   <property name="persistenceUnitJndiName">java:/sguEntityManagerFactory</property>
                   </component> -->
                   <core:managed-persistence-context name="em"
                   auto-create="true"
                   persistence-unit-jndi-name="java:/sguEntityManagerFactory" />
                  
                   <factory name="remoteAddr" value="#{facesContext.externalContext.request.remoteAddr}" />
                  
                   <core:locale-selector cookie-enabled="true"/>
                  </components>


                  • 6. Re: JBoss scheduler (processor) problem on Tomcat...
                    Michael Yuan Novice

                    Can you try it with JDK 1.5?

                    Also, is it possible for you to try Seam 2.0 (or from the CVS)? We made quite a few changes to that part of the code in Seam 2.0. To run Seam 2.0 on Tomcat, you will need to install the JBoss Embedded on Tomcat first, please see the docs for more details. Thanks.

                    cheers
                    Michael

                    • 7. Re: JBoss scheduler (processor) problem on Tomcat...
                      Stateless Bean Novice

                      Instalation JDK 1.5.0_09 didn't helped.

                      I need to stay on Seam 1.2.1GA,
                      If this example seam pay works on tomcat I think this must be my problem.

                      Maybe I not installed somethink well. I tell u what I done when, moved my app from JBoss AS to Tomcat 5.5.

                      1. added components.properties,
                      2. changed components.xml to

                      <?xml version="1.0" encoding="UTF-8"?>
                      <components xmlns="http://jboss.com/products/seam/components"
                       xmlns:core="http://jboss.com/products/seam/core"
                       xmlns:security="http://jboss.com/products/seam/security"
                       xmlns:drools="http://jboss.com/products/seam/drools"
                       xmlns:web="http://jboss.com/products/seam/web"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:schemaLocation=
                       "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
                       http://jboss.com/products/seam/web http://jboss.com/products/seam/web-1.2.xsd
                       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd">
                      
                       <core:init jndi-pattern="#{ejbName}/local" debug="true"/>
                      
                       <core:manager conversation-timeout="120000"
                       concurrent-request-timeout="500"
                       conversation-id-parameter="cid"
                       conversation-is-long-running-parameter="clr"/>
                      
                       <core:transactionListener/>
                      
                       <core:ejb />
                       <core:dispatcher/>
                      
                       <component name="org.jboss.seam.remoting.remoting">
                       <property name="debug">false</property>
                       <property name="pollTimeout">2</property>
                       <property name="pollInterval">1</property>
                       </component>
                      
                       <drools:rule-base name="securityRules">
                       <drools:rule-files><value>/META-INF/security-rules.drl</value></drools:rule-files>
                       </drools:rule-base>
                      
                       <security:identity authenticate-method="#{authenticator.authenticate}"/>
                      
                       <property name="persistenceUnitJndiName">java:/sguEntityManagerFactory</property>
                       </component> -->
                       <core:managed-persistence-context name="em"
                       auto-create="true"
                       persistence-unit-jndi-name="java:/sguEntityManagerFactory" />
                      
                       <factory name="remoteAddr" value="#{facesContext.externalContext.request.remoteAddr}" />
                      
                       <core:locale-selector cookie-enabled="true"/>
                      </components>



                      3. changed jboss-beans.xml to like in booking example:

                      <?xml version="1.0" encoding="UTF-8"?>
                      <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
                       xmlns="urn:jboss:bean-deployer">
                      
                       <bean name="UniversumDatasourceBootstrap" class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
                       <property name="driverClass">org.postgresql.Driver</property>
                       <property name="connectionURL">jdbc:postgresql://localhost:5432/Universum</property>
                       <property name="userName">postgres</property>
                       <property name="password">root</property>
                       <property name="jndiName">java:/UniversumDatasource</property>
                       <property name="minSize">0</property>
                       <property name="maxSize">10</property>
                       <property name="blockingTimeout">1000</property>
                       <property name="idleTimeout">100000</property>
                       <property name="transactionManager"><inject bean="TransactionManager"/></property>
                       <property name="cachedConnectionManager"><inject bean="CachedConnectionManager"/></property>
                       <property name="initialContextProperties"><inject bean="InitialContextProperties"/></property>
                       </bean>
                      
                       <bean name="UniversumDatasource" class="java.lang.Object">
                       <constructor factoryMethod="getDatasource">
                       <factory bean="UniversumDatasourceBootstrap"/>
                       </constructor>
                       </bean>
                      
                      </deployment>


                      4. and I added mc-conf.jar and also same libs like in booking example to war file.
                      Also files structure is same like in booking example.
                      Application now works fine, for me without this scheduler.

                      Scheduler processor and whole classes are same like in seam-pay example, I just copied them to my project and little changed.

                      @Name("engineControler")
                      public class EngineControler {
                       public EngineControler() {}
                      
                       @In
                       EngineProcessor processor;
                      


                      and scheduler
                       long interval = 2 * 1000;
                       @SuppressWarnings("unused")
                       Timer timer = processor.scheduleBuildings(new Date(), interval, null);
                      


                      my method scheduleBuildings is empty, just System.out....

                      maybe I must install somethink else, I read about microcontainer, but don't know if this must be installed?
                      Any idea?