I've upgraded from SEAM 2.0.0 to SEAM 2.0.2, and at the same time changed from a EAR to a WAR package.
I also upgraded to JBOSS 4.2.2GA
The problem is that in the previous version I could send asynchronous mail messages, but now I get the following error:
17:49:08,453 ERROR [STDERR] java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory 17:49:08,453 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256) 17:49:08,453 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:60) 17:49:08,453 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:96) 17:49:08,453 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:78) 17:49:08,453 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:170) 17:49:08,453 ERROR [STDERR] at com.rmemoria.rproj.SystemConfigHome.sendEmail(SystemConfigHome.java:69) 17:49:08,453 ERROR [STDERR] at com.rmemoria.rproj.SystemConfigHome.sendLocalizedEmail(SystemConfigHome.java:98) 17:49:08,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
The workaround was to romeve all @Asynchronous anotations, but it's far from being the ideal solution.
The most strange is that it was working quite fine in version 2.0.0.
I've alread tryed SEAM 2.0.3CR1, but with no success.
I saw some solutions like including @duration in the async method but I got the same error.
Any tip is welcome.