0 Replies Latest reply on Sep 28, 2007 2:37 AM by alexandre russel

    No using SeamVariableResolver inside seam

    alexandre russel Newbie

      Hi, I have a seam application inside an ear in JBoss 4.0.5. I uses jbpm and everything works fine.
      Inside the ear I also have a MBean. I need this MBean to "talk" with the jbpm process.
      The error I get is the following:
      Caused by: java.lang.IllegalStateException: No application context active
      at org.jboss.seam.Component.forName(Component.java:1577)
      at org.jboss.seam.Component.getInstance(Component.java:1627)
      at org.jboss.seam.Component.getInstance(Component.java:1610)
      at org.jboss.seam.jbpm.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:12)
      at org.jbpm.jpdl.el.impl.NamedValue.evaluate(NamedValue.java:124)
      at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:264)
      at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:191)
      at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:34)
      at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentActorIdExpr(TaskMgmtInstance.java:224)
      at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:196)

      Is there a way to tell the jbpmContext or task manager not to use SeamVariableResolver when I am inside the MBean ?
      alex