Problem is starting pageflow
fshahy Dec 10, 2008 1:27 PMHi
I have a simple pageglow named pageflow01.jpdl.xml
:
<?xml version="1.0" encoding="UTF-8"?> <pageflow-definition name="pageflow01"> <start-page name="start" view-id="/start.xhtml" redirect="true"> <transition to="decision01" name="next"></transition> </start-page> <decision name="decision01"> <transition to="even" name="even"></transition> <transition name="odd" to="odd"></transition> </decision> <page name="even"></page> <page name="odd"></page> </pageflow-definition>
I also added one Seam Conversation without changes to what Seam has provided to me:
@Scope(CONVERSATION) @Name("conversation01") public class Conversation01Bean { @Logger private Log log; private int value; @Begin public String begin() { // implement your begin conversation business logic log.info("beginning conversation"); return "success"; } public String increment() { log.info("incrementing"); value++; return "success"; } // add additional action methods that participate in this conversation @End public String end() { // implement your end conversation business logic log.info("ending conversation"); return "home"; } public int getValue() { return value; } }
And this is my pages.xml:
<?xml version="1.0" encoding="UTF-8"?> <pages xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd" no-conversation-view-id="/home.xhtml" login-view-id="/login.xhtml"> <page view-id="/start.xhtml"> <begin-conversation join="true" pageflow="pageflow01"/> </page> <page view-id="*"> <navigation> <rule if-outcome="home"> <redirect view-id="/home.xhtml"/> </rule> </navigation> </page> <exception class="org.jboss.seam.framework.EntityNotFoundException"> <redirect view-id="/error.xhtml"> <message severity="warn">Record not found</message> </redirect> </exception> <exception class="javax.persistence.EntityNotFoundException"> <redirect view-id="/error.xhtml"> <message severity="warn">Record not found</message> </redirect> </exception> <exception class="javax.persistence.EntityExistsException"> <redirect view-id="/error.xhtml"> <message severity="warn">Duplicate record</message> </redirect> </exception> <exception class="javax.persistence.OptimisticLockException"> <end-conversation/> <redirect view-id="/error.xhtml"> <message severity="warn">Another user changed the same data, please try again</message> </redirect> </exception> <exception class="org.jboss.seam.security.AuthorizationException"> <redirect view-id="/error.xhtml"> <message severity="error">You don't have permission to access this resource</message> </redirect> </exception> <exception class="org.jboss.seam.security.NotLoggedInException"> <redirect view-id="/login.xhtml"> <message severity="warn">#{messages['org.jboss.seam.NotLoggedIn']}</message> </redirect> </exception> <exception class="javax.faces.application.ViewExpiredException"> <redirect view-id="/error.xhtml"> <message severity="warn">Your session has timed out, please try again</message> </redirect> </exception> <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" logLevel="trace"> <http-error error-code="503" /> </exception> <exception> <redirect view-id="/error.xhtml"> <message severity="error">Unexpected error, please try again</message> </redirect> </exception> </pages>
Also added a link to /start.xhtml in /layout/menu.xhtml, having these in my JBoss Tools project I can run my project without any problems. But after adding tgis:
<bpm:jbpm> <bpm:pageflow-definitions> <value>pageflow01.jpdl.xml</value> </bpm:pageflow-definitions> </bpm:jbpm>
in my component.xml, my project does not anymore and JBoss says:
HTTP Status 404 - /test01/
The requested resource (/test01/) is not available.
please somebody tell what is wrong.
Thanks You