[JBoss Seam] - Re: Gotchas (so far)
by tony.herstellï¼ gmail.com
>From the .xhtml file...
| <!--
| <div class="right">
| <h:commandButton type="submit" value="Back" action="#{zoneSubscriptionManager.scancel}"/>
| </div>
| -->
|
this gives
| An Error Occurred:
| Bean: $Proxy89, property: scancel
| +- Stack Trace
|
| javax.el.PropertyNotFoundException: Bean: $Proxy89, property: scancel
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:146)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
| at com.sun.facelets.el.ELText$ELTextVariable.toString(ELText.java:174)
| at com.sun.facelets.el.ELText$ELTextComposite.toString(ELText.java:115)
| at com.sun.facelets.compiler.CommentInstruction.write(CommentInstruction.java:38)
| at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
|
|
As its commented out this is VERY weired... Not a SEAM bug though I think.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985335#3985335
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985335
19Â years, 7Â months
[JBoss Seam] - Re: Gotchas (so far)
by tony.herstellï¼ gmail.com
1. I cannot now reproduce this... (I feel silly)
2. Ok, On Firefox nothing happens with the close, IE7 comes up with a question asking if I want to close the window, which I agree to and then it doesn't close it. (Go Figure...). I guess my javascript must be wrong.
Both come up with the before and after alerts.
| <td class="rightTop" width="25%">
| <form>
| <table class="rightTop" border="0" width="100%">
| <tr>
| <td class="right">
| <label>
| username:
| </label>
| John Doe
| </td>
| </tr>
| <tr>
| <td class="right">
| <input type="button" value="Logout" onclick="javascript:alert('before');window.close();alert('after');" />
| </td>
| </tr>
| </table>
| </form>
| </td>
|
3. Humm.. Outside of the \<h:form\> If I have a command button then it wont let me have it outide the form; if I use a html input type of button then it can't figure out the bean reference for the action...
| <h:commandButton type="submit" value="Back" action="#{zoneSubscriptionManager.cancel}"/>
|
Please advise....
I just don't want to do a browser - back button trigger.. I want to clean up things...
5. Hope some nice ones appear as you suggest they will. Tree is very useful! roll on Trinidad.
6. I will look this up.
I will of course upgrade to 1.1.0.Beta2... I would be on Beta1 but I never got the examples to work wheras 1.0.1 did :/
Now I know more and may be able to solve more problems if it didn't work out of the box.
Thanks to you and Michael Yuan for helpful and prompt replies.
I have booking example broken into xxx.ear, xxx.jar and xxx.war J2EE inter-related projects working well in MyEclipse and with most of the addons of MyEclipse working well. Deploy through the JBoss MyEclipse Plugin works beatufilly as an exploded archive.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985331#3985331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985331
19Â years, 7Â months
[JBoss jBPM] - Re: understand asynchronous continuations
by gujing01ï¼ gmail.com
now i am continue to my test.
i want to know how to activate a message executor?
| <process-definition name="sub">
| <start-state name="start">
| <transition to='auto' />
| </start-state>
| <node name="auto" async='true' >
| <action class="example.processmodel.NodeExecuteHandler" />
| <transition name="endtran" to='end' />
| </node>
| <end-state name="end" />
| </process-definition>
|
|
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| jbpmContext.deployProcessDefinition(processDefinition);
|
|
| /////////////////////////////////
| Token token= processInstance.getRootToken();
| System.out.println(token.getNode().getName());//START
|
| token.signal();
| System.out.println(token.getNode().getName());//AUTO
| jbpmContext.save(processInstance);
| jbpmContext.close();
|
| public class NodeExecuteHandler implements ActionHandler {
|
|
| public void execute(ExecutionContext executionContext) throws Exception {
| // TODO Auto-generated method stub
| System.out.println("NodeExecuteHandler");
| executionContext.setVariable("bianliang","value1");
| executionContext.leaveNode("endtran");
| }
|
| }
|
It seems the example.processmodel.NodeExecuteHandler has not been execute as i could not see the system out.And i looked up in the database table jbpm.jbpm_message and saw
1, 'N', 'CMD_EXECUTOR', '', 0, 1, '', , 2, '',
the config:
| static JbpmConfiguration jbpmConfiguration = null;
|
| static {
| // An example configuration file such as this can be found in
| // 'src/config.files'. Typically the configuration information is in the
| // resource file 'jbpm.cfg.xml', but here we pass in the configuration
| // information as an XML string.
|
| // First we create a JbpmConfiguration statically. One JbpmConfiguration
| // can be used for all threads in the system, that is why we can safely
| // make it static.
|
| jbpmConfiguration = JbpmConfiguration.parseXmlString(
| "<jbpm-configuration>" +
|
| // A jbpm-context mechanism separates the jbpm core
| // engine from the services that jbpm uses from
| // the environment.
|
| " <jbpm-context>" +
| " <service name='persistence' " +
| " factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />" +
| " <service name='message' " +
| " factory='org.jbpm.msg.db.DbMessageServiceFactory' />" +
| " </jbpm-context>" +
|
| // Also all the resource files that are used by jbpm are
| // referenced from the jbpm.cfg.xml
|
| " <string name='resource.hibernate.cfg.xml' " +
| " value='hibernate.cfg.xml' />" +
| " <string name='resource.business.calendar' " +
| " value='org/jbpm/calendar/jbpm.business.calendar.properties' />" +
| " <string name='resource.default.modules' " +
| " value='org/jbpm/graph/def/jbpm.default.modules.properties' />" +
| " <string name='resource.converter' " +
| " value='org/jbpm/db/hibernate/jbpm.converter.properties' />" +
| " <string name='resource.action.types' " +
| " value='org/jbpm/graph/action/action.types.xml' />" +
| " <string name='resource.node.types' " +
| " value='org/jbpm/graph/node/node.types.xml' />" +
| " <string name='resource.varmapping' " +
| " value='org/jbpm/context/exe/jbpm.varmapping.xml' />" +
| "</jbpm-configuration>"
| );
| }
|
but how to config a command executor?both in pure java application and in
application server. thanks for help~
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985329#3985329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985329
19Â years, 7Â months
[EJB 3.0] - Re: JBoss Unified ClassLoader Hell? even with EJB3 ?
by xnuandax
Thanks guys - no luck tho - trying two EAR deployments sounded hopeful (with one EAR just being a skin for the WAR) - surely that would give classloader isolation!?!? However even with settings for Pass-by-Value everywhere, using isolated loader-repositories in the jboss-app.xml's, trying java2ParentDelegation=false , ensuring Serializable and serialVersionUID set, etc. all it would give when I tried to cast the remote object retrieved via JNDI back into the original interface was the ClassCastException that I have now seen more times than I've had hot breakfasts. JBoss simply will not marshall/unmarshall the object as its passes between archives as it is supposed to.
So I have had to relent and just package the WAR inside the original EAR, where the code instantly works (of course). JBoss classloader is hereby victorious over me... if I try tangling with that evil ba*#@rd classloader again I will involve a priest and copious amounts of holy water.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985325#3985325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985325
19Â years, 7Â months