[jboss-user] [JBoss Seam] - Mail rendering fails with MyFaces exception
christian.bauer@jboss.com
do-not-reply at jboss.com
Sat Mar 17 20:20:44 EDT 2007
I didn't touch that code in a while but it also didn't change, only continuous Seam CVS upgrades. I'm rendering an email template with m, h, and f namespaces:
01:11:38,863 INFO [MailSession] Creating JavaMail Session (mail.bluewin.ch:25)
01:11:38,866 INFO [MailSession] connected to mail server
01:11:38,867 INFO [STDOUT] java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
01:11:38,867 INFO [STDOUT] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
01:11:38,867 INFO [STDOUT] at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:742)
01:11:38,867 INFO [STDOUT] at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:509)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:50)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:38)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.mail.ui.UIBody.encodeChildren(UIBody.java:33)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.mail.ui.UIMessage.encodeChildren(UIMessage.java:151)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
01:11:38,867 INFO [STDOUT] at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:117)
01:11:38,868 INFO [STDOUT] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:64)
01:11:38,868 INFO [STDOUT] at org.jboss.seam.wiki.core.action.UserHome.persist(UserHome.java:119)
I have the MyFaces listener in web.xml. Before I dig any deeper, has anyone seen this before?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029083#4029083
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029083
More information about the jboss-user
mailing list