11 Replies Latest reply on Feb 1, 2008 8:09 PM by Stefano Zaccaria

    JBPM, mail and ws

    Stefano Zaccaria Newbie

      First off, hello to all!

      Today I've another problem with seam and its jbpm integration.

      I have a business process where there are some tasks.
      In particular, through a method called by my web service,

      public boolean setReadTaskInstanceFromId(TaskInstance ti) {
       if (ti == null)
       return false;
      
       if (ti.getStart() == null)
       ti.start();
       if (ti.getEnd() == null)
       ti.end("letto");
       else
       return false;
       return true;
      }
      



      Now, in some tasks of the definition's process, I put a action that starts when the task is assigned
      <task-node name="account">
       <task name="account" description="#{messages.controlladata}">
       <assignment actor-id="#{document.clifor}"></assignment>
       <event type="task-assign">
       <action class="InfoNewTask" config-type="field"></action>
       </event>
       </task>
       <transition name="confirm" to="test"></transition>
       <transition name="deny" to="deny"></transition>
      </task-node>
      

      Everything works, but if I try to use the seam mail,

      public class InfoNewTask implements ActionHandler {
       private static final long serialVersionUID = 1L;
       public void execute(ExecutionContext arg0) throws Exception {
      
       [...
       do something without problem
       ...]
      
       // exception javax.faces.application.ApplicationFactory.
       try {
       Renderer.instance().render("/testmail.xhtml");
       } catch (RuntimeException e) {
       e.printStackTrace();
       }
      
       }
      }
      

      I get exception's javax.faces.application.ApplicationFactory.

      I read about this problem in the forum, in particolar on http://www.jboss.com/index.html?module=bb&op=viewtopic&t=122523
      and on http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116377.

      I supose that my problem is the same.

      I tried stripped my mail's template so that it has no variables,
      <m:message xmlns="http://www.w3.org/1999/xhtml"
       xmlns:m="http://jboss.com/products/seam/mail"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       importance="high" requestReadReceipt="false">
       <m:header name="X-Sent-From" value="WFCoin" />
       <m:from name="Stefano" address="stefano@localhost" />
       <m:to name="Stefano" address="stefano@localhost"
       <m:subject>WORK FLOW</m:subject>
       <m:body>
       <html>
       <body>
       <p>hello word</p>
       </body>
       </html>
       </m:body>
      </m:message>
      

      but the problem persist.

      The problem is in the jsf's conversation? I must put it in the event context? And if yes, how?

      I use Seam 2.0GA and JBoss AS4.2.2GA

      Thanks in advance

        • 2. Re: JBPM, mail and ws
          Pete Muir Master

          Post the full exception and stack trace.

          • 3. Re: JBPM, mail and ws
            Stefano Zaccaria Newbie

            Thanks, Pete, for yours answer.
            I hoped in your response, because I read really good about yours. Hour are unfortunately not in my office.
            Then tomorrow morning will be the first thing that I will do

            Thanks again

            • 4. Re: JBPM, mail and ws
              Stefano Zaccaria Newbie

              As I promised, post the full exception and stack trace.
              Thanks in advance

              java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
              09:24:37,535 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:60)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:95)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:77)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
              

              Here is the problem
              09:24:37,535 ERROR [STDERR] at org.thezak3.wf.bpm.InfoNewTask.execute(InfoNewTask.java:75)
              

              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.Action.execute(Action.java:122)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.bpm.SeamUserCodeInterceptor$1.process(SeamUserCodeInterceptor.java:80)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAction(SeamUserCodeInterceptor.java:74)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:262)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.setActorId(TaskInstance.java:298)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.setActorId(TaskInstance.java:268)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentActorIdExpr(TaskMgmtInstance.java:244)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:204)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance_$$_javassist_19.performAssignment(TaskMgmtInstance_$$_javassist_19.java)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:204)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:154)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance_$$_javassist_19.createTaskInstance(TaskMgmtInstance_$$_javassist_19.java)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.Node.enter(Node.java:319)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.Node_$$_javassist_59.enter(Node_$$_javassist_59.java)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.Transition.take(Transition.java:151)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:394)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.def.Node_$$_javassist_59.leave(Node_$$_javassist_59.java)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:195)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:166)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
              09:24:37,535 ERROR [STDERR] at org.jbpm.graph.exe.Token_$$_javassist_74.signal(Token_$$_javassist_74.java)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:488)
              09:24:37,535 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:427)
              

              Here with the web service method the task take end
              09:24:37,535 ERROR [STDERR] at org.thezak3.wf.manager.WsGestione.setReadTaskInstanceFromId(WsGestione.java:725)
              09:24:37,535 ERROR [STDERR] at org.thezak3.wf.manager.WsGestione.setReadTaskInstanceFromId(WsGestione.java:740)
              

              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:48)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:56)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
              09:24:37,535 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:206)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:119)
              09:24:37,535 ERROR [STDERR] at $Proxy165.setLettoTaskInstanceFromId(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:40)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
              09:24:37,535 ERROR [STDERR] at org.javassist.tmp.java.lang.Object_$$_javassist_11.setLettoTaskInstanceFromId(Object_$$_javassist_11.java)
              09:24:37,535 ERROR [STDERR] at org.thezak3.wf.webservice.WfWebService.setLettoTaskInstanceFromId(WfWebService.java:60)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              09:24:37,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
              09:24:37,535 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
              09:24:37,535 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,535 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
              09:24:37,551 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
              09:24:37,551 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,551 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
              09:24:37,551 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,551 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
              09:24:37,551 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              09:24:37,551 ERROR [STDERR] at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103)
              09:24:37,551 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220)
              09:24:37,551 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408)
              09:24:37,551 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
              09:24:37,551 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
              09:24:37,551 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
              09:24:37,551 ERROR [STDERR] at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
              09:24:37,551 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              09:24:37,551 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              09:24:37,551 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
              09:24:37,551 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              09:24:37,551 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              09:24:37,551 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
              09:24:37,551 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              09:24:37,551 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
              09:24:37,551 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
              09:24:37,551 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
              


              • 5. Re: JBPM, mail and ws
                Pete Muir Master

                Ok, please file a bug in JIRA for this...

                • 6. Re: JBPM, mail and ws
                  Stefano Zaccaria Newbie

                  Hi Pete,
                  I done it!
                  Look at http://jira.jboss.org/jira/browse/JBSEAM-2507

                  PS: I try with a test application, where there is only a action that send a e-mail in asynchronous mode, but the problem persist

                  • 7. Re: JBPM, mail and ws
                    Stefano Zaccaria Newbie

                    Hi Pete,
                    I looked today as "mail" example working, that can be found in the seam's package.
                    And i've find a difference respect my test. This difference is the file jboss-web.xml;

                     <!DOCTYPE jboss-web PUBLIC
                     "-//JBoss//DTD Web Application 4.2//EN"
                     "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
                    
                    <jboss-web>
                     <class-loading java2ClassLoadingCompliance="false">
                     <loader-repository>
                     seam.jboss.org:loader=org.thezak3.wf
                     <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                     </loader-repository>
                     </class-loading>
                    </jboss-web>
                    
                    


                    if i delete this file my test make good... but i don't know if this is the right way...
                    Can you help me?
                    It seem that the problem is in the classpath.
                    Thanks in advance

                    • 8. Re: JBPM, mail and ws
                      Pete Muir Master

                      Seam Mail doesn't work if you use java2ParentDelefation=false

                      • 9. Re: JBPM, mail and ws
                        Stefano Zaccaria Newbie

                        Why?
                        You can explain the why?
                        Thanks

                        • 10. Re: JBPM, mail and ws
                          Pete Muir Master

                          Classloading.

                          • 11. Re: JBPM, mail and ws
                            Stefano Zaccaria Newbie

                            ok, but why this file is of default put on "seam" project, (created with "jboss tool")? This may not generate any misunderstanding?
                            And if i put to true the "java2ParentDelegation" flag, what real difference made to my project?

                            Why the problem is only when I send an email asynchronously?

                            I tried to read http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration but I was not very clear


                            Sorry for my continual requests
                            Thanks in advance