14 Replies Latest reply on Dec 3, 2009 1:19 PM by Craig

    JBoss 5.1 with Seam and Asynchronous problems

    Daniel Wachter Newbie

      Hello together


      As mentioned in JBoss 5 post every part of seam should be working fine with JBoss 5.1!


      My problem is, that I don't get a asynchronous function call to work with JBoss 5.1.
      Every time I call my asynchronous function i get this errors:



      11:32:06,909 ERROR [JobRunShell] Job DEFAULT.-527d1e28:122df971be6:-7f79 threw an unhandled Exception: 
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: mailStatAction
           at org.jboss.seam.Component.newInstance(Component.java:2144)
           at org.jboss.seam.Component.getInstance(Component.java:2021)
           at org.jboss.seam.Component.getInstance(Component.java:1983)
           at org.jboss.seam.Component.getInstance(Component.java:1977)
           at org.jboss.seam.Component.getInstance(Component.java:1972)
           at org.jboss.seam.async.AsynchronousInvocation$2.process(AsynchronousInvocation.java:83)
           at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)
           at org.jboss.seam.async.AsynchronousInvocation.handleException(AsynchronousInvocation.java:78)
           at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:247)
           at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
           at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@1870cfc{vfszip:/opt/jboss/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/}]
           at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)
           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)
           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
           at javax.naming.InitialContext.lookup(InitialContext.java:392)
           at org.jboss.seam.Component.instantiateSessionBean(Component.java:1400)
           at org.jboss.seam.Component.instantiate(Component.java:1364)
           at org.jboss.seam.Component.newInstance(Component.java:2122)
           ... 10 more
      Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@1870cfc{vfszip:/opt/jboss/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/}
           at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:343)
           at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)
           at org.jboss.ejb3.proxy.impl.objectfactory.session.stateful.StatefulSessionProxyObjectFactory.getProxy(StatefulSessionProxyObjectFactory.java:64)
           at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)
           at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
           at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)
           at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)
           ... 16 more
      Caused by: java.lang.ClassNotFoundException: com.solarmax.maxcontrol.action.report.MailStatAction from BaseClassLoader@1870cfc{VFSClassLoaderPolicy@16592ec{name=vfszip:/opt/jboss/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/ domain=ClassLoaderDomain@17cfd38{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@b1c5fa} roots=[MemoryContextHandler@26268686[path= context=vfsmemory://3j001-yayd28-fxx01ffl-1-fxx01xsb-23 real=vfsmemory://3j001-yayd28-fxx01ffl-1-fxx01xsb-23], DelegatingHandler@22152912[path=quartz-ra.rar context=file:/opt/jboss/jboss-5.1.0.GA/server/default/deploy/ real=file:/opt/jboss/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar], DelegatingHandler@4019674[path=quartz-ra.rar/quartz-ra.jar context=file:/opt/jboss/jboss-5.1.0.GA/server/default/deploy/ real=file:/opt/jboss/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/quartz-ra.jar]]  delegates=null exported=[org.jboss.resource.adapter.quartz.inflow, META-INF] <IMPORT-ALL>NON_EMPTY}}
           at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:247)
           at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:339)
           ... 22 more



      I've found some other users with similar problems, but nowhere a serious causation of this error!
      Can it be, that I have some invalid configuration/deployment settings?


      Note: With JBoss 4.2x everything works smooth!
      Thank you for your help!


        • 1. Re: JBoss 5.1 with Seam and Asynchronous problems
          Benito Juarez Newbie

          I'm using asynchronous calls at 5.1, so its works generally.
          Please post the class annotations of the mailStatAction bean.

          • 2. Re: JBoss 5.1 with Seam and Asynchronous problems
            Daniel Wachter Newbie

            Hello benito,
            thank you for your quick answer!


            My interface:


            @Local
            public interface MailStatAction {
               @Asynchronous
               public void resendStatisticJob(String receiverAddress);
               ...
            



            My bean:


            @Name("mailStatAction")
            @Stateful
            @Scope(ScopeType.CONVERSATION)
            @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
            @TransactionTimeout(5400)
            public class MailStatActionImpl implements MailStatAction {
               public void resendStatisticJob(String p_receiverAddress) 
               {
                  ...
               }
               ...
            }
            

            • 3. Re: JBoss 5.1 with Seam and Asynchronous problems
              Benito Juarez Newbie

              in my case a had some trouble with calls to APPLICATION-scoped beans (but as i remember it was a different exception). Now i use SESSION scope and it works.
              Is where something wrong with your local interface? Maybe its in another jar file?

              • 4. Re: JBoss 5.1 with Seam and Asynchronous problems
                Daniel Wachter Newbie

                If I remove the @Asynchronous annotation from the interface method definition, the function call is working!

                I have no clue, it's somewhat of weird for me...

                • 5. Re: JBoss 5.1 with Seam and Asynchronous problems
                  Nikolay Elenkov Master

                  Please show your components.xml. It looks like you are using the Quartz dispatcher, are you?
                  You might be getting those errors because you haven't included the Quartz jar in your
                  application and it tries to use the libs bundled with JBoss. (quartz-ra.rar).

                  • 6. Re: JBoss 5.1 with Seam and Asynchronous problems
                    Daniel Wachter Newbie

                    Hi Nikolay,
                    thanks for joining this thread!


                    Yes I use the Quartz dispatcher in my application!

                    But the quartz.jar comes from the server lib, not? (It's placed under common/lib in JBoss 5.1)


                    For JBoss 4.2 this setup works very well, do I have to register quartz.jar in my application to run in JBoss 5.1?


                    Thank you for your help

                    Greetings




                    components.xml:


                    <?xml version="1.0" encoding="UTF-8"?>
                    <components xmlns="http://jboss.com/products/seam/components"
                                xmlns:core="http://jboss.com/products/seam/core"
                                xmlns:persistence="http://jboss.com/products/seam/persistence"
                                xmlns:async="http://jboss.com/products/seam/async"
                                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/components http://jboss.com/products/seam/components-2.1.xsd
                                   http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
                                   http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.1.xsd"> 
                    
                      <!-- The debug mode has to been disabled on productional release -->
                      <core:init jndi-pattern="@jndiPattern@" debug="false"/>
                    
                      <core:manager conversation-timeout="120000" />
                      
                      <component name="org.jboss.seam.core.resourceLoader">
                        <property name="bundleNames">
                            <value>messages</value>
                            <value>maxcontrol-settings</value>
                        </property>
                      </component>
                    
                    
                      <!-- Loading Entity-Manager -->
                      <persistence:managed-persistence-context name="entityManager"
                                                               auto-create="true"
                                                               persistence-unit-jndi-name="java:/maxcontrolEntityManagerFactory" />
                                                               
                      <!-- Loading quartz-dispatcher for the jobs -->                                         
                      <async:quartz-dispatcher />
                      
                    </components>



                    • 7. Re: JBoss 5.1 with Seam and Asynchronous problems
                      Nikolay Elenkov Master

                      Daniel Wachter wrote on Aug 04, 2009 09:16:


                      Yes I use the Quartz dispatcher in my application!

                      But the quartz.jar comes from the server lib, not? (It's placed under common/lib in JBoss 5.1)

                      For JBoss 4.2 this setup works very well, do I have to register quartz.jar in my application to run in JBoss 5.1?


                      From your stack trace above, it looks like that the jar common/lib doesn't get loaded. I haven't actually used
                      JBoss 5.1, so can't say for sure, but maybe the classloading has changed somehow. In any case, it is better not
                      to rely on the Quartz library shipped with JBoss, and bundle it in your application. You should setup classload
                      isolation as well, to avoid any nasty ClassCastException's. Cf. ClassLoadingConfiguration


                      HTH

                      • 8. Re: JBoss 5.1 with Seam and Asynchronous problems
                        Daniel Wachter Newbie

                        The common/lib gets loaded, i placed my mySQL connector there which is used by my application.

                        I also tried to bundle quartz.jar with my application, but without any success!

                        • 9. Re: JBoss 5.1 with Seam and Asynchronous problems
                          Nikolay Elenkov Master

                          Could you be a little more specific:



                          1. what version of Quartz are you using?

                          2. do you deploy as WAR or EAR?

                          3. where did you put the quartz.jar? (in your deployment archive)

                          4. did you get the same error when you bundled the jar in your application? If not, what error?


                          • 10. Re: JBoss 5.1 with Seam and Asynchronous problems
                            Daniel Wachter Newbie

                            hello nikolay


                            Sorry for my late answer, i had to play arround with quartz.
                            now, if i bundle the quartz.jar with my application everything is fine now!

                            thanks for that


                            now i have another problem:

                            are there still problems with sending email from a asynchronous job with jboss51?

                            if i try to render an email from my asynchronous job ig get this error:



                            08:50:44,405 ERROR [STDERR] java.lang.IllegalArgumentException: resource doesn't exist: incl/availability_email_template.xhtml
                            08:50:44,405 ERROR [STDERR]      at org.jboss.seam.ui.facelet.RendererRequest.faceletForViewId(RendererRequest.java:123)
                            08:50:44,405 ERROR [STDERR]      at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:103)
                            08:50:44,405 ERROR [STDERR]      at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43)
                            08:50:44,405 ERROR [STDERR]      at com.solarmax.maxcontrol.action.report.MailStatActionImpl.createEmail(MailStatActionImpl.java:974)
                            08:50:44,405 ERROR [STDERR]      at com.solarmax.maxcontrol.action.report.MailStatActionImpl.startStatisticJob(MailStatActionImpl.java:306)
                            08:50:44,405 ERROR [STDERR]      at com.solarmax.maxcontrol.action.report.MailStatActionImpl.resendStatisticJob(MailStatActionImpl.java:202)
                            08:50:44,405 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            08:50:44,406 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            08:50:44,406 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            08:50:44,406 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:597)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor$InvocationContext.proceed(InvocationContextInterceptor.java:138)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:29)
                            08:50:44,406 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:30)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
                            08:50:44,407 ERROR [STDERR]      at sun.reflect.GeneratedMethodAccessor859.invoke(Unknown Source)
                            08:50:44,407 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            08:50:44,407 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:597)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:83)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:70)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:59)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
                            08:50:44,407 ERROR [STDERR]      at sun.reflect.GeneratedMethodAccessor375.invoke(Unknown Source)
                            08:50:44,407 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            08:50:44,407 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:597)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
                            08:50:44,407 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_32807273.invoke(InvocationContextInterceptor_z_fillMethod_32807273.java)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_32807273.invoke(InvocationContextInterceptor_z_setup_32807273.java)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:60)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,408 ERROR [STDERR]      at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:261)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,409 ERROR [STDERR]      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:176)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:216)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
                            08:50:44,410 ERROR [STDERR]      at $Proxy800.resendStatisticJob(Unknown Source)
                            08:50:44,410 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            08:50:44,410 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            08:50:44,410 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            08:50:44,410 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:597)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                            08:50:44,410 ERROR [STDERR]      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:43)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
                            08:50:44,411 ERROR [STDERR]      at org.javassist.tmp.java.lang.Object_$$_javassist_seam_6.resendStatisticJob(Object_$$_javassist_seam_6.java)
                            08:50:44,411 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            08:50:44,411 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            08:50:44,411 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            08:50:44,411 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:597)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                            08:50:44,411 ERROR [STDERR]      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                            08:50:44,412 ERROR [STDERR]      at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:62)
                            08:50:44,412 ERROR [STDERR]      at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)
                            08:50:44,412 ERROR [STDERR]      at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:44)
                            08:50:44,412 ERROR [STDERR]      at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:243)
                            08:50:44,412 ERROR [STDERR]      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
                            08:50:44,412 ERROR [STDERR]      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)



                            • 11. Re: JBoss 5.1 with Seam and Asynchronous problems
                              Daniel Wachter Newbie

                              i now found out, that it works if i put the emailtorender.xhtml to the web-inf/classes instead of the webroot.

                              why does it not work with the webroot like id worked with jboss 4.x?


                              another problem is, that if i place the emailtorender.xhtml to the web-inf/classes, i cannot reach the messages from the emailtorender.xhtml...


                              any hints?

                              • 12. Re: JBoss 5.1 with Seam and Asynchronous problems
                                Nikolay Elenkov Master

                                What version of Seam are you using? Sending asynchronous email has been problematic for a while, and I think it was fixed recently.
                                The fix, AFAIK, is a bit hackish (replacing classloaders and such), so I wouldn't be surprised if there are problems with it.
                                Ah, here:  JBSEAM-3555, should be fixed in 2.1.2.


                                If you need reliable email from asynchronous jobs and/or JMS, I'd advise you not to use Seam mail. Use Javamail directly,
                                if you need simple templating you can get away with regular expressions, if you need anything more fancy, try Velocity or some
                                other templating engine.


                                No idea about the classloading problems, sorry. Placing everything in WEB-INF/classes should be a safe bet, I think.
                                What do you mean by 'cannot reach the messages'?

                                • 13. Re: JBoss 5.1 with Seam and Asynchronous problems
                                  Daniel Wachter Newbie

                                  Hi Nikolay, sorry for my late post!

                                  (I was in holidays and had forget to register myself for the email notification of this thread...)



                                  With cannot reach the messages I meant, that the email template has no access to the messages.properties files which
                                  I use for translations...

                                  • 14. Re: JBoss 5.1 with Seam and Asynchronous problems
                                    Craig  Newbie

                                    I had the same issue.


                                    You need to add




                                        <module>
                                            <ejb>quartz.jar</ejb>
                                        </module>





                                    to you application.xml