JBoss Seam 2.2.1.Final mail exaple on Jboss 5.1.0 AS
pepelara Dec 23, 2011 7:37 AMHi,
I have been reading the forum thred My Link and since I have been trying the mail example I have been getting some troubles to deploy the webapp on JBoss 5.1.0 AS from Eclipse Helios SR1 IDE. I get the following exception,
12:30:42,296 WARN ClassLoaderManager Unexpected error during load of:org.jboss.seam.example.mail.AsynchronousMailProcessor
java.lang.UnsupportedClassVersionError: Bad version number in .class file
12:30:42,312 WARN ClassLoaderManager Unexpected error during load of:org.jboss.seam.example.mail.Lists
java.lang.UnsupportedClassVersionError: Bad version number in .class file
12:30:42,312 WARN ClassLoaderManager Unexpected error during load of:org.jboss.seam.example.mail.MailExample
java.lang.UnsupportedClassVersionError: Bad version number in .class file
12:30:45,437 WARN PersistentPermissionResolver no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
12:30:45,593 ERROR SeamMail StandardWrapper.Throwable
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
About the version of the source files there is no problem, I can resolve by my self. But my question is about java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory.
In this point what I have understood from the thread is that only can send plaint-text type mails and it musts be send asynchronously. But the exception show that this is not correct.
Here is my code,
public class AsynchronousMailProcessor
{
private static final LogProvider log = Logging.getLogProvider(AsynchronousMailProcessor.class);
@Asynchronous
public void scheduleSend(@Duration long delay, Person person) {
try {
Contexts.getEventContext().set(person
, person);
Renderer.instance().render(/plain.xhtml
);
} catch (Exception e) {
log.error(Error scheduling send #0
,e);
}
}
}
You can see in the AsynchronousMailProcessor class that I send a plain-text template.
It is taking me a lot time to resolve this project.
Any help or suggestion?
Thnaks,
Jose