1 2 3 Previous Next 63 Replies Latest reply on Dec 11, 2007 4:57 AM by pmuir

    Seam Email - IllegalStateException: No Factories configured.

      Hello,

      I am trying to build up an email template - as shown here:

      <m:message xmlns="http://www.w3.org/1999/xhtml"
       xmlns:m="http://jboss.com/products/seam/mail"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       >
       <m:from name="#{mailConfiguration.accountName}" address="#{mailConfiguration.emailFrom}" />
       <m:to name="#{accessRequestUser.name}">#{accessRequestUser.email}</m:to>
       <m:subject>Access Request Requires Your Approval</m:subject>
       <m:body>
       <p><h:outputText value="Dear #{accessRequestUser.manager.name}" />,</p>
       <p>
       An Access Request for Employee #{accessRequestUser.userid}, #{accessRequestUser.name},
       requires your approval.
      
       Please login to <a href="#">http://someurl.com/</a> and review your Work Queue
       to approve or reject this request.
       </p>
       </m:body>
      
      </m:message>
      


      when I render the email template,
       @In(create = true)
       private Renderer renderer;
      
       ...
      
       public String sendEmailMessage(String templateFile) {
       try {
       renderer.render(templateFile);
       return "success";
      
       } catch (Exception e) {
       log.error(e,e);
       }
       return null;
       }
      


      I get this exception:
      11:41:56,045 ERROR com.evergreen.accesscontrol.impl.MailSenderBean - java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not wo
      rk 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 w
      eb 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>
       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
      </listener>
      
      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 set
      tings 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>
       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
      </listener>
      
       at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
       at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:742)
       at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:509)
       at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
       at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
       at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:50)
       at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:38)
       at org.jboss.seam.mail.ui.UIBody.encodeChildren(UIBody.java:34)
       at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)
       at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
       at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
       at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
       at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:106)
       at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:54)
       at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:38)
       at com.evergreen.accesscontrol.impl.MailSenderBean.sendEmailMessage(MailSenderBean.java:175)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
       at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
       at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
       at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
       at sun.reflect.GeneratedMethodAccessor747.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
       at sun.reflect.GeneratedMethodAccessor745.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
       at sun.reflect.GeneratedMethodAccessor744.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:51)
       at sun.reflect.GeneratedMethodAccessor743.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
       at sun.reflect.GeneratedMethodAccessor742.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
       at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
       at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
       at sun.reflect.GeneratedMethodAccessor785.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
       at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
       at $Proxy565.sendEmailMessage(Unknown Source)
       at com.evergreen.accesscontrol.impl.AccessRequestManagerBean.sendRequest(AccessRequestManagerBean.java:317)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
       at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
       at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
       at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
       at sun.reflect.GeneratedMethodAccessor747.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
       at sun.reflect.GeneratedMethodAccessor745.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
       at sun.reflect.GeneratedMethodAccessor744.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:51)
       at sun.reflect.GeneratedMethodAccessor743.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:83)
       at sun.reflect.GeneratedMethodAccessor748.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
       at sun.reflect.GeneratedMethodAccessor742.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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
       at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
       at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
       at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
       at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
       at $Proxy599.sendRequest(Unknown Source)
       at com.evergreen.accesscontrol.AccessRequestManager$$FastClassByCGLIB$$64e7314d.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
       at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
       at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:31)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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:18)
       at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
       at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
       at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
       at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:83)
       at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
       at com.evergreen.accesscontrol.AccessRequestManager$$EnhancerByCGLIB$$d6783274.sendRequest(<generated>)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
       at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
       at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
       at javax.faces.component.UICommand.broadcast(UICommand.java:106)
       at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
       at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at com.evergreen.filter.RequestDumper.doFilter(RequestDumper.java:78)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at com.evergreen.fastpass.catalina.CASSSOAuthenticatorValve.invoke(CASSSOAuthenticatorValve.java:373)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      


      Here is the contents of my .ear:

      bash-2.05b$ jar tvf access-control-1.0.ear
       0 Wed Feb 14 11:37:36 EST 2007 META-INF/
       126 Wed Feb 14 11:37:34 EST 2007 META-INF/MANIFEST.MF
      231048 Wed Feb 14 11:37:36 EST 2007 access-control-ejbs-1.0.jar
      130275 Wed Feb 14 11:37:36 EST 2007 access-control-schema-1.0.jar
      2791250 Wed Feb 14 11:37:36 EST 2007 access-control-webapp-1.0.war
       24432 Wed Feb 14 11:37:36 EST 2007 el-api-2.1wFacelets1.1.4.jar
       97471 Wed Feb 14 11:37:36 EST 2007 el-ri-2.1wFacelets1.1.4.jar
       6972 Wed Feb 14 11:37:36 EST 2007 evg-jaas-components-1.0.jar
       1102 Wed Feb 14 11:37:36 EST 2007 gpd.xml
      679480 Wed Feb 14 11:37:36 EST 2007 jboss-seam-1.1.6.jar
       20176 Wed Feb 14 11:37:36 EST 2007 jboss-seam-mail-1.1.6.jar
       98411 Wed Feb 14 11:37:36 EST 2007 jboss-seam-ui-1.1.6.jar
      603060 Wed Feb 14 11:37:36 EST 2007 jbpm-3.1.4.jar
       9456 Wed Feb 14 11:37:36 EST 2007 jbpm-hibernate.cfg.xml
       1107 Wed Feb 14 11:37:36 EST 2007 jbpm.cfg.xml
      291366 Wed Feb 14 11:37:36 EST 2007 jsf-facelets-1.1.11.jar
       23630 Wed Feb 14 11:37:36 EST 2007 jsr173-1.0.jar
       1370 Wed Feb 14 11:37:34 EST 2007 META-INF/application.xml
       285 Wed Feb 14 11:37:36 EST 2007 META-INF/jboss-app.xml
      249563 Wed Feb 14 11:37:36 EST 2007 myfaces-api-1.1.4.jar
      524089 Wed Feb 14 11:37:36 EST 2007 myfaces-impl-1.1.4.jar
      459988 Wed Feb 14 11:37:36 EST 2007 ostermiller-1.06.00.jar
       3380 Wed Feb 14 11:37:36 EST 2007 processdefinition.xml
       42884 Wed Feb 14 11:37:36 EST 2007 processimage.jpg
      2637587 Wed Feb 14 11:37:36 EST 2007 xbean-2.1.0.jar
      


      Help? ;-D

      Thanks,
      Brad Smith

        • 1. Re: Seam Email - IllegalStateException: No Factories configu
          pmuir

          What environment are you in?

          • 2. Re: Seam Email - IllegalStateException: No Factories configu

            jboss 4.0.4 EJBRC8

            • 3. Re: Seam Email - IllegalStateException: No Factories configu
              pmuir

              myfaces or ri? portal or normal?

              • 4. Re: Seam Email - IllegalStateException: No Factories configu

                Sorry I was too brief in my earlier reply.

                Here is some info about the server:

                bash-2.05b$ pwd
                /c/jboss-4.0.4.EJB.3RC8/server/default/deploy/jbossweb-tomcat55.sar
                bash-2.05b$ ls -l jsf-libs/
                total 1249
                -rwxrwxrwx 1 Administrators ???????? 118669 May 15 2006 commons-beanutils.jar
                -rwxrwxrwx 1 Administrators ???????? 29226 May 15 2006 commons-codec-1.2.jar
                -rwxrwxrwx 1 Administrators ???????? 165304 May 15 2006 commons-collections.jar
                -rwxrwxrwx 1 Administrators ???????? 168664 May 15 2006 commons-digester-1.6.jar
                -rwxrwxrwx 1 Administrators ???????? 20682 Apr 10 2006 jstl-1.1.2.jar
                -rwxrwxrwx 1 Administrators ???????? 249563 Oct 13 08:24 myfaces-api-1.1.4.jar.off
                -rwxrwxrwx 1 Administrators ???????? 524089 Oct 13 08:24 myfaces-impl-1.1.4.jar.off
                


                no portal involved (who needs it with seam ;-) ? ).

                in addition to the ear dump above, here is a dump of the war libs in the ear:

                bash-2.05b$ jar tvf access-control-webapp-1.0.war | grep lib
                 0 Wed Feb 14 13:38:02 EST 2007 WEB-INF/lib/
                188671 Mon Apr 10 15:38:52 EDT 2006 WEB-INF/lib/commons-beanutils-1.7.0.jar
                175426 Thu Apr 20 14:09:46 EDT 2006 WEB-INF/lib/commons-collections-2.1.1.jar
                559366 Wed Apr 19 09:54:16 EDT 2006 WEB-INF/lib/commons-collections-3.1.jar
                139966 Mon Apr 10 15:38:34 EDT 2006 WEB-INF/lib/commons-digester-1.7.jar
                 31909 Mon Oct 02 11:11:54 EDT 2006 WEB-INF/lib/commons-fileupload-1.1.1.jar
                207723 Wed May 31 14:36:38 EDT 2006 WEB-INF/lib/commons-lang-2.1.jar
                 72770 Tue Jul 18 15:40:52 EDT 2006 WEB-INF/lib/evg-sso-client-adapter-0.6.jar
                 5091 Thu Feb 08 06:45:46 EST 2007 WEB-INF/lib/jboss-seam-debug-1.1.6.jar
                1281201 Fri Oct 13 08:24:08 EDT 2006 WEB-INF/lib/tomahawk-1.1.3.jar
                109318 Mon Apr 10 14:45:26 EDT 2006 WEB-INF/lib/xml-apis-1.0.b2.jar
                 15656 Mon Oct 02 08:28:36 EDT 2006 WEB-INF/tomahawk-taglib.xml
                


                This layout and the deployment of myfaces with the ear, with myfaces commented out in in the server (see .off files) is a holdover from older problems we had from the Seam-annotated EJB's in the earliest days of our project. I've recently moved the Seam-UI, and facelets jars to the ear level for the Seam email functionality.

                Thanks,
                Brad Smith

                • 5. Re: Seam Email - IllegalStateException: No Factories configu
                  pmuir

                  Hmm. I have to say I haven't seen this before.

                  Can you get the mail example working?

                  I would suggest following it's layout - jboss-seam-mail.jar and jboss-seam-ui.jar, jsf-facelets.jar in WEB-INF/lib rather than the ear (and really myfaces-api/impl as well)

                  Otherwise, I would suggest wrapping the EL in the body inside h:outputText to see if that makes any difference.

                  Otherwise, can I'll need you to submit a testcase to JIRA.

                  • 6. Re: Seam Email - IllegalStateException: No Factories configu

                    continued email problems

                    16:07:56,796 ERROR [STDERR] Feb 15, 2007 4:07:56 PM com.sun.facelets.compiler.Compiler initialize
                    SEVERE: Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar
                    


                    I made sure my jars (Seam-mail, seam-ui, facelets, etc... are in the correct artifacts in my .ear (like your example)).

                    Also, I looked at the MANIFEST.MF file the version of facelets you're using - it's 1.1.12. Have you tested the Seam email with 1.1.11 (the stable release of Facelets)?



                    • 7. Re: Seam Email - IllegalStateException: No Factories configu
                      pmuir

                      No, I've only tested with the version that Seam is currently including (1.1.12).

                      If you've worked through my above suggestions, please put a simple example that shows the problem in JIRA and I'll work through it.

                      Btw, sorry about being terse yesterday ;)

                      • 8. Re: Seam Email - IllegalStateException: No Factories configu

                        I've tried two variants

                        1.) put the seam-mail.jar and dependencies in the .war as you have done in the example.

                        2.) put the same set of jars in the .ear

                        I'm convinced that the issue I'm running into is related to class loading. Reviewing the .ear created by your seam-email example, I'm guessing you have myfaces in the tomcat jsf-libs dir on your test environment - in my case, the myfaces jars are in the .ear due to some class loading issues we had earlier in the project around DataModel and friends. That's the remaining difference between our two .ear projects. I can try putting the myfaces jars back in tomcat and out of the ear - dang this class loading stuff is a PITA! ;-) I was really looking forward to using the Seam email stuff in this project - we have a lot of dynamic email to generate.

                        If I could make one request to the Seam project now, it would be to review the whole JSF, Myfaces, Facelets, EAR layout, WAR layout, etc... and come up with explicit instructions for how to package a project based on desired functionality. Things like - "should Myfaces be in tomcat, or in your .ear?" etc... right now the answers to these things involves a lot of trial and error and forum digging (not necessarily a bad thing).

                        Anyways, thanks for the help with this.

                        Brad Smith

                        • 9. Re: Seam Email - IllegalStateException: No Factories configu
                          pmuir

                          I agree its classloading related. As I said, I can take a look, but i'm not convinced I would have any more luck than you!

                          So, this is how I lay it out:

                          1) Use the default JBoss (4.0.5.GA) install (so myfaces in jsf-libs)
                          2) Put everything I can, especially the jars that provide UI (so jsf-facelets, trinidad, seam-ui, seam-mail, seam-pdf - specifically anything with a faces-config.xml in it I suppose) in the war/WEB-INF/lib
                          3) Put all the rest in the ear and reference from application.xml (so now I have drools, jbpm, el, jboss-seam.jar and then internal shared stuff there)

                          • 10. Re: Seam Email - IllegalStateException: No Factories configu
                            pmuir

                            Also, specifically, I would make sure you have facelets and myfaces-impl not in the ear root but either in jsf-libs or WEB-INF/lib

                            • 11. Re: Seam Email - IllegalStateException: No Factories configu

                              If I move myfaces to jsf-lib or the .war, then an old problem reemerges in the UI:

                              java.lang.ClassNotFoundException: No ClassLoaders found for: com.evergreen.accesscontrol.RealmManager
                               at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
                               at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
                               at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
                               at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                               at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
                               at java.lang.Class.forName0(Native Method)
                               at java.lang.Class.forName(Class.java:242)
                               at java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:657)
                               at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1500)
                               at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463)
                               at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
                               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                               at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
                               at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
                               at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                               at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                               at java.util.HashMap.readObject(HashMap.java:1067)
                               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                               at java.lang.reflect.Method.invoke(Method.java:585)
                               at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                               at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
                               at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                               at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                               at java.util.HashMap.readObject(HashMap.java:1067)
                               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                               at java.lang.reflect.Method.invoke(Method.java:585)
                               at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                               at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
                               at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                               at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                               at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                               at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
                               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                               at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                               at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:305)
                               at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:241)
                               at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getComponentStateToRestore(HtmlResponseStateManager.java:221)
                               at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:186)
                               at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:287)
                               at org.jboss.seam.jsf.SeamStateManager.restoreView(SeamStateManager.java:49)
                               at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
                               at org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:64)
                               at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:310)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at com.evergreen.filter.RequestDumper.doFilter(RequestDumper.java:88)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                               at com.evergreen.fastpass.catalina.CASSSOAuthenticatorValve.invoke(CASSSOAuthenticatorValve.java:373)
                               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              


                              and it's been a while since I looked into this issue but I believe it's related to our use of javax.faces.convert.Converter in our UI. At the time, Gavin suggested I put Myfaces in the .ear which solved the problem.

                              Unfortunately, it looks like I can put MyFaces in the EAR and completely recover my UI but lose 'robust' seam email functionality. I say robust, cuz sometimes the seam email was working with Myfaces, Seam-email, and seam-ui in the .ear but sometimes it wasn't. What's even weirder is that when it fails, it doesn't give an error message.

                              I was reluctant to do this, but I'm going to probably have to hack some kind of custom email templating functionality together :-(

                              Thanks

                              • 12. Re: Seam Email - IllegalStateException: No Factories configu

                                I'm back with my Seam email issue - the saga gets weirder cuz in one case, the seam email component works, in a different case (should be identical execution context....), the seam email component does not work.

                                In this first case, the seam email component is not working - Facelets complains about not finding the tag libraries:

                                15:57:29,343 INFO [WorkFlowManagerBean] Notifying manual provisioner
                                15:57:29,796 INFO [MailSenderBean] sending email: mail/access-request-assign-to-dsa-for-provision.xhtml
                                15:57:29,796 INFO [MailSenderBean] ClassLoader -> org.jboss.mx.loading.UnifiedClassLoader3@1907d1{ url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0
                                .ear ,addedOrder=45}
                                15:57:29,796 INFO [MailSenderBean] renderer -> org.jboss.seam.ui.facelet.FaceletsRenderer@e09b95
                                15:57:30,125 ERROR [STDERR] Feb 22, 2007 3:57:30 PM com.sun.facelets.compiler.Compiler initialize
                                SEVERE: Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar
                                15:57:30,140 INFO [MailSenderBean] ...mail sent(?)
                                


                                A few clicks later, the email goes out just fine...

                                15:58:48,921 INFO [WorkItemManagerBean] accessRequestUser reported email address -> BSmith@EvergreenInvestments.com
                                15:58:48,921 INFO [WorkItemManagerBean] Notifying requested
                                15:58:48,921 INFO [WorkItemManagerBean] dsaProvision() - about to send email...
                                15:58:48,921 INFO [MailSenderBean] sending email: mail/access-request-complete-user.xhtml
                                15:58:48,921 INFO [MailSenderBean] ClassLoader -> org.jboss.mx.loading.UnifiedClassLoader3@1907d1{ url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0
                                .ear ,addedOrder=45}
                                15:58:48,921 INFO [MailSenderBean] renderer -> org.jboss.seam.ui.facelet.FaceletsRenderer@12eba22
                                15:58:49,359 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                                INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
                                .1.12.jar!/META-INF/jsf-core.taglib.xml
                                15:58:49,375 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                                INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jboss-seam-mai
                                l-1.1.6.jar!/META-INF/seam-mail.taglib.xml
                                15:58:49,375 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                                INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
                                .1.12.jar!/META-INF/jsf-ui.taglib.xml
                                15:58:49,390 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                                INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jboss-seam-ui-
                                1.1.6.jar!/META-INF/seam-ui.taglib.xml
                                15:58:49,390 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                                INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
                                .1.12.jar!/META-INF/jsf-html.taglib.xml
                                15:58:49,406 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                                INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
                                .1.12.jar!/META-INF/jstl-core.taglib.xml
                                15:58:49,406 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                                INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
                                .1.12.jar!/META-INF/jstl-fn.taglib.xml
                                15:58:49,484 INFO [MailConfigurationEditorBean] @Factory("mailConfiguration") method invoked...
                                15:58:51,265 INFO [MailSenderBean] ...mail sent(?)
                                


                                notice - same class loader, but this time the email works. The execution 'context' is identical - MailSenderBean is invoked by another SLSB .

                                ?
                                Thanks.

                                • 13. Re: Seam Email - IllegalStateException: No Factories configu
                                  pmuir

                                  As I've said before, this problem is subtle and so to be able to help any further I need a simple example (ideally built on seam-gen) showing the problem. Thanks

                                  • 14. Re: Seam Email - IllegalStateException: No Factories configu

                                    I'm not sure how to give you a simple example of this. I'm definitely not going to mess with seam-gen (don't see how it's relevant to this).

                                    1 2 3 Previous Next