0 Replies Latest reply on Dec 2, 2008 8:48 PM by Felix Khazin

    Asynchronous e-mail on Startup

    Felix Khazin Newbie

      Hi,


      I'm trying to start a task that scheduled to run every hour or so that will e-mail my users.


      I've used
      @Asynchronous
           public void sendReport(@IntervalDuration long duration)
      {Renderer.instance().render("/report.xhtml");}

      and


      @Observer("org.jboss.seam.postInitialization")
      public void observe()
      {
                email.sendReport(120 * 1000l);
           }



      Problem is i keep getting this error:

      java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory


      Anyone know what could be wrong?


      I've seen this example posted here: http://relation.to/2640.lace so it should work.


      Thanks,
      Felix