4 Replies Latest reply on Jan 21, 2009 5:46 PM by clerum

    Status of SeamMail

    clerum

      What is the current status of SeamMail?


      I'm running into


      Caused by java.lang.IllegalStateException with message: "Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory"



      When I try and render a simple email either with or without @Asynchronous. I've searched here and on JIRA and I can't tell if there are still issues or they should have been fixed by my release (Seam 2.1.1GA JBAS-5.0.0GA)


      Pastebin of my Code


      Whats the status..or where should I look to fix this. I've been converting this project up from Seam 2.0...so is there something possibly screwed up in the components.xml?


      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
                  xmlns:document="http://jboss.com/products/seam/document"
                  xmlns:core="http://jboss.com/products/seam/core"
                  xmlns:persistence="http://jboss.com/products/seam/persistence"
                  xmlns:drools="http://jboss.com/products/seam/drools"
                  xmlns:bpm="http://jboss.com/products/seam/bpm"
                  xmlns:security="http://jboss.com/products/seam/security"
                  xmlns:mail="http://jboss.com/products/seam/mail"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation=
                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd 
                       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd 
                       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
                       http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                       http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
      
         <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
       
         <core:manager concurrent-request-timeout="500" 
                       conversation-timeout="120000" 
                       conversation-id-parameter="cid"
                       parent-conversation-id-parameter="pid"/>
          
          <document:document-store use-extensions="true" />
          
              <component name="org.jboss.seam.document.documentStore"> 
              <property name="useExtensions">true</property>
              <property name="errorPage">/pdfMissing.seam</property>
          </component>
          
         <persistence:managed-persistence-context name="em"
                                           auto-create="true"
                            persistence-unit-jndi-name="java:/polarisEntityManagerFactory"/>                          
      
         <drools:rule-base name="securityRules">
            <drools:rule-files>
               <value>/security.drl</value>
            </drools:rule-files>
         </drools:rule-base>
      
         <security:rule-based-permission-resolver security-rules="#{securityRules}"/> 
         
         <security:identity-manager identity-store="#{JpaIdentityStore}"/>
         
         <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
          <security:jpa-identity-store 
          user-class="net.company.polaris.User"
          role-class="net.company.polaris.Role" />
         
         <event type="org.jboss.seam.security.notLoggedIn">
            <action execute="#{redirect.captureCurrentView}"/>
         </event>
         <event type="org.jboss.seam.security.loginSuccessful">
            <action execute="#{redirect.returnToCapturedView}"/>
         </event>
         
         <mail:mail-session host="smtp.company.net" port="25" username="test" password="test" />
              
         <!-- For use with jBPM pageflow or process management -->
         <!--  
         <bpm:jbpm>
            <bpm:process-definitions></bpm:process-definitions>
            <bpm:pageflow-definitions></bpm:pageflow-definitions>
         </bpm:jbpm>
         -->
           <component name="lead" 
                class="com.sforce.soap.enterprise.sobject.Lead" scope="event" />    
      </components>
      



      or web.xml


      <?xml version="1.0" ?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
         version="2.5">
      
         <!-- RichFaces -->
         
         <context-param>
            <param-name>org.richfaces.SKIN</param-name>
            <param-value>classic</param-value>
         </context-param>
      
         <!-- Suppress spurious stylesheets -->
      
         <context-param>
            <param-name>org.richfaces.CONTROL_SKINNING</param-name>
            <param-value>disable</param-value>
         </context-param>
      
         <context-param>
            <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
            <param-value>disable</param-value>
         </context-param>
      
         <!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs -->
      
         <context-param>
            <param-name>org.richfaces.LoadStyleStrategy</param-name>
            <param-value>ALL</param-value>
         </context-param>
      
         <context-param>
            <param-name>org.richfaces.LoadScriptStrategy</param-name>
            <param-value>ALL</param-value>
         </context-param>
       
         <!-- Seam -->
         
         <listener>
            <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
         </listener>
         
         <filter>
            <filter-name>Seam Filter</filter-name>
            <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
         </filter>
      
         <filter-mapping>
            <filter-name>Seam Filter</filter-name>
            <url-pattern>/*</url-pattern>
         </filter-mapping>
            
         <servlet>
            <servlet-name>Seam Resource Servlet</servlet-name>
            <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
         </servlet>
         
         <servlet-mapping>
            <servlet-name>Seam Resource Servlet</servlet-name>
            <url-pattern>/seam/resource/*</url-pattern>
         </servlet-mapping>
        
         <!-- Facelets development mode (disable in production) -->
        
         <context-param>
            <param-name>facelets.DEVELOPMENT</param-name>
            <param-value>true</param-value>
         </context-param>
        
         <!-- JSF -->
        
         <context-param>
            <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
            <param-value>.xhtml</param-value>
         </context-param>
      
         <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
         </servlet>
         
         <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.seam</url-pattern>
         </servlet-mapping>
                    
         <security-constraint> 
            <display-name>Restrict raw XHTML Documents</display-name>
            <web-resource-collection>
               <web-resource-name>XHTML</web-resource-name>
               <url-pattern>*.xhtml</url-pattern>
            </web-resource-collection>
            <auth-constraint/>
         </security-constraint>
        <!-- Document Store -->
             <servlet>
               <servlet-name>Document Store Servlet</servlet-name>
               <servlet-class>org.jboss.seam.document.DocumentStoreServlet</servlet-class>
           </servlet>
           <servlet-mapping>
               <servlet-name>Document Store Servlet</servlet-name>
               <url-pattern>*.pdf</url-pattern>
           </servlet-mapping>
        
      </web-app>
      



      I really don't know where to start digging...

        • 1. Re: Status of SeamMail
          clerum

          BUMP

          • 2. Re: Status of SeamMail
            kukeltje.ronald.jbpm.org

            First of all bumping within a day often does not help. Secondly, I started searching for you in google and found a Seam JiraIssue which mentiones this error. I started reading this and following some links when at the end I was surprised...Thanks for not reporting here that you already new about this issue since you added a great comment yesterday...


            Ok, now I'm of doing more important things... good luck...

            • 3. Re: Status of SeamMail
              clerum

              Sorry I didn't update this message with the info from the JIRA.


              That case has been open since OCT-08 and was previously closed. It doesn't mention anything about why it's failing. Other information I found in my searches was saying that this problem was fixed and frankly I'm confused as to the status.


              Hence the title and the post. Is there a better way to do this or to post it rather than the seam-users?


              Also once it falls off the main page with no response I give a post about 1-100 chance of getting looked at.

              • 4. Re: Status of SeamMail
                clerum

                I also posted Here