[jboss-user] [JBoss Seam] - Quartz question

mladen.babic do-not-reply at jboss.com
Fri Aug 17 08:34:23 EDT 2007


Hi,
I have action which send e-mail to user. I've tried  to add Quartz action to do same action  with interval. Quartz action works fine but when I  added method  which sending mail  in this action it trows me  this error
 java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
  | 14:32:34,791 ERROR [STDERR]     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
  | 14:32:34,792 ERROR [STDERR]     at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:58)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:58)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:109)
  | 14:32:41,125 ERROR [STDERR]     at com.elbsolutions.eorder.bean.MessageAction.sendOrderEmailToBuyer(MessageAction.java:58)
  | 14:32:41,125 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor1174.invoke(Unknown Source)
  | 14:32:41,125 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 14:32:41,125 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:43)
  | 14:32:41,125 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  | 14:32:41,126 ERROR [STDERR]     at com.elbsolutions.eorder.bean.MessageAction_$$_javassist_264.sendOrderEmailToBuyer(MessageAction_$$_javassist_264.java)
  | 14:32:41,126 ERROR [STDERR]     at com.elbsolutions.eorder.bean.QuartzTriggerAction.schedule(QuartzTriggerAction.java:45)
  | 14:32:41,126 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor1158.invoke(Unknown Source)
  | 14:32:41,126 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 14:32:41,126 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
  | 14:32:41,126 ERROR [STDERR]     at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  | 14:32:41,127 ERROR [STDERR]     at com.elbsolutions.eorder.bean.QuartzTriggerAction_$$_javassist_262.schedule(QuartzTriggerAction_$$_javassist_262.java)
  | 14:32:41,127 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor1157.invoke(Unknown Source)
  | 14:32:41,127 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 14:32:41,127 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
  | 14:32:41,127 ERROR [STDERR]     at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242)
  | 14:32:41,127 ERROR [STDERR]     at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
  | 14:32:41,127 ERROR [STDERR]     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
  | 14:32:41,127 ERROR [MessageAction] ERROR while sending e-mail
  | java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
  |         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
  |         at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:58)
  |         at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:58)
  |         at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:109)
  |         at com.elbsolutions.eorder.bean.MessageAction.sendOrderEmailToBuyer(MessageAction.java:58)
  |         at sun.reflect.GeneratedMethodAccessor1174.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:21)
  |         at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |         at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:43)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |         at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  |         at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  |         at com.elbsolutions.eorder.bean.MessageAction_$$_javassist_264.sendOrderEmailToBuyer(MessageAction_$$_javassist_264.java)
  |         at com.elbsolutions.eorder.bean.QuartzTriggerAction.schedule(QuartzTriggerAction.java:45)
  |         at sun.reflect.GeneratedMethodAccessor1158.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:21)
  |         at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |         at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  |         at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
  |         at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |         at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |         at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  |         at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  |         at com.elbsolutions.eorder.bean.QuartzTriggerAction_$$_javassist_262.schedule(QuartzTriggerAction_$$_javassist_262.java)
  |         at sun.reflect.GeneratedMethodAccessor1157.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:21)
  |         at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
  |         at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
  |         at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
  |         at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
  |         at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242)
  |         at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
  |         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
  | 

tnx,
mb

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

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



More information about the jboss-user mailing list