[JBoss Seam] - Re: Business process variables duplicted when updated.
by aggtecnologia
Thank you Gavin for your PROMPT (yes in capitals :-) ) response.
I would like to verify if I am interpreting the right way what´s going on. Here is a snippet from my code:
@Stateful
@Name("verifyData")
public class verificarDatosBean implements verificarDatos {
@In
@Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
@EndTask
public String saveModifiedData() {
return "/home.seam";
}
@Remove @Destroy public void destroy(){}
public String getUnDato() {
return unDato;
}
public void setUnDato(String unDato) {
this.unDato = unDato;
}
}
1. When seam finds:
@In
private String unDato;
injects the the BUSSINESS_PROCESS variable unDato. (The variable was already created elsewere with BUSSINESS_PROCESS scope AND I already called a method annotated with @StartTask, so I am inside a BUSSINESS_PROCESS)
2. As soon as any method inside the object is executed (I think in my case it is the getter because this EJB is acting as a Backing Bean) Seams finds:
private String unDato;
@Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
and creates the new variable with the same name (unDato) and scope (unDato) but with different Id.
3. When I execute:
@EndTask
public String saveModifiedData()
Seam sees that the task is completed and updates the original variable.
Forgive my verbosity but I want to be sure I am conceptually right. (So I learn once for good)
Claudio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054995#4054995
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054995
19Â years
[JBoss Seam] - Seam 1.2.0 with Jboss 4.2.0
by pdpantages
Hello forum:
I am trying to upgrade to Seam 1.2.0.GA and Jboss 4.2.0.GA, from
1.1.6/4.0.5.
I saw M.Yuan's instructions "Seam Example Apps for Jboss AS 4.2.0.GA"
and have followed these. I also took a look at the code provided
under seambook_examples_for_jboss4.2.0/*. Everything looks quite
straightforward. I tried a few of the examples, which were OK.
Two differences I have from the examples:
(1) I still use tomahawk 1.1.3
(2) I am using drools. I had setup drools as per the example in
1.1.6 distribution and did not change this.
I noticed that M.Yuan did not include the drools example in the
exmaples in seambook_examples_for_jboss4.2.0.
One of the problems I have is the exception below:
NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl
The only com/sun/el/ExpressionFactoryImpl.class I can find is in
el-ri..jar, which, of course, has been removed as per the
instructions.
Is this happening because I am using drools?
Any ideas would be appreciated, as I am a bit stuck at this point.
Thanks, PdP
| java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl
| at org.jboss.seam.util.UnifiedELValueBinding.<init>(UnifiedELValueBinding.java:18)
| at org.jboss.seam.security.Identity.evaluateExpression(Identity.java:506)
| at org.jboss.seam.security.Identity.checkRestriction(Identity.java:149)
| at org.jboss.seam.pages.Page.enter(Page.java:206)
| at org.jboss.seam.core.Pages.enterPage(Pages.java:276)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:276)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:214)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054991#4054991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054991
19Â years