6 Replies Latest reply on Oct 9, 2008 1:03 AM by tubiluki

    Problems Seam Remoting and Asynchronous Email

    tubiluki

      I have an application using seam remoting to send emails asynchronously, but I get the error:


      java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory


      When I try to use the same asynchronous method without a remote invocation it works fine.

        • 1. Re: Problems Seam Remoting and Asynchronous Email
          pmuir

          Please file an issue in JIRA with a simple example to reproduce.

          • 2. Re: Problems Seam Remoting and Asynchronous Email
            tubiluki

            Hi,


            It seens to be the same problem here: http://www.seamframework.org/Community/AccessingRendererFromAMDB


            I tried Seam 2.1.0.CR1


            but now I'm getting another exception:


            Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
                 at java.io.File.<init>(File.java:363)
                 at org.jboss.seam.mock.MockServletContext.<init>(MockServletContext.java:44)
                 at org.jboss.seam.ui.facelet.MockServletContextManager.create(MockServletContextManager.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:597)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                 at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:126)
                 at org.jboss.seam.Component.callComponentMethod(Component.java:2154)
                 at org.jboss.seam.Component.callCreateMethod(Component.java:2077)
                 at org.jboss.seam.Component.newInstance(Component.java:2037)
            



            I'm running on glassfish v2 server.


            Thanks

            • 3. Re: Problems Seam Remoting and Asynchronous Email
              pmuir

              Please report both bugs in JIRA with examples to reproduce. Many have reported the first issue, but no one has managed to show me how to reproduce it yet!

              • 4. Re: Problems Seam Remoting and Asynchronous Email
                jamesl

                you appear to have got further along than I.
                I get the same exception, but it can't find the viewid ie: resource not found.


                Where are you putting your xhtml templates?


                Do you use a path to a seam resource? for example, myemail.seam

                • 5. Re: Problems Seam Remoting and Asynchronous Email
                  tubiluki

                  I tested the mail example application in both jboss and in glassfish v2.


                  In jboss it works fine, but in glassfish v2 the same problem described in a previous post.


                  I can send the example application with libs I used to test in glassfish.

                  • 6. Re: Problems Seam Remoting and Asynchronous Email
                    tubiluki

                    issue reported in Jira.