[JBoss Seam] - Problem running the seamdiscs example
by kingcu
Hi,
I am getting the following exceptions when running the seamdiscs example on JBoss AS 4.2.0 GA. What I did are:
1. Download and install JBoss AS 4.2.0 GA;
2. Check out the jboss-seam module from CVS;
3. Run ant under the project folder;
4. Run ant under jboss-seam\trinidad;
5. Modify build.properties under jboss-seam\trinidad\example\seamdiscs to point to the correct location of JBoss AS 4.2;
6. Run ant under jboss-seam\trinidad\example\seamdiscs;
Thanks,
Tong
javax.servlet.ServletException: java.lang.IllegalArgumentException: Stack must not be null
| org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:97)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:66)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| org.jboss.seam.web.AbstractAjax4jsfFilter.doFilter(AbstractAjax4jsfFilter.java:35)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:127)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| java.lang.IllegalArgumentException: Stack must not be null
| org.jboss.seam.core.ConversationEntry.<init>(ConversationEntry.java:40)
| org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:52)
| org.jboss.seam.core.Manager.createConversationEntry(Manager.java:685)
| org.jboss.seam.core.Manager.beforeRedirect(Manager.java:834)
| org.jboss.seam.core.Manager.beforeRedirect(Manager.java:852)
| org.jboss.seam.exceptions.DebugPageHandler.handle(DebugPageHandler.java:24)
| org.jboss.seam.core.Exceptions.handle(Exceptions.java:78)
| org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:85)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:66)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| org.jboss.seam.web.AbstractAjax4jsfFilter.doFilter(AbstractAjax4jsfFilter.java:35)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
| org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:127)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053205#4053205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053205
18Â years, 11Â months
[JBoss jBPM] - Updating processdefinition.xml
by warmonga
Hi all,
I am trying to update an existing processdefinition.xml by adding a decision-node to it. Accesing it and adding the node works fine but I do not find a way how to transform the process definition from the java object model back to the XML representation. Unfortunately there is no method like processDefinition.saveAsXml(String location) or similar.
My current code looks like this:
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(new FileInputStream("src/main/jpdl/DecisionProcess/processdefinition.xml"));
|
| Node creationNode = proDefinition.getNode("Creation");
| Node appNode = proDefinition.getNode("Approvement");
|
| Decision decisionNode = new Decision("check");
|
|
| Transition toCheck = creationNode.getDefaultLeavingTransition();
| Transition toNext = new Transition();
|
| toCheck.setTo(decisionNode);
| toNext.setTo(appNode);
| decisionNode.addLeavingTransition(toNext);
| decisionNode.addArrivingTransition(toCheck);
| appNode.addArrivingTransition(toNext);
| processDefinition.addNode(decisionNode);
|
Does anyone have an idea how to save the process definition to processdefinition.xml again? And, if so, maybe you also have a clue how to then make the belonging process picture (processimage.jpg) being updated so that the newly inserted decision node will be visible on it?
Many Thanks in advance!
Best regards,
Maurice
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053203#4053203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053203
18Â years, 11Â months
[JBoss Portal] - Problems with accessing to Management portlet
by tex321
Problem:
I am starting with JBoss portal usage and have one basic question about Management portal appearance. I started to read User Guide for JBoss portsl 2.6 CR2 and in Chapter 2.2.1 "Managing portal instances", there is description of Management Portlet. On screen shot there is treeview on the left and details page on the right (Manage: portal, instances, portlets) all within Management Portlet.
But when I run JBoss portal (started with $JBOSS_HOME/bin/run.sh) and try to access the same page: I first login as admin/admin, then click on Admin link and then click on Home tab. Appearance of Management portal is completely different. On the left I don't have treeview but have portlet Pages, on the right I have Management Portlet with three tabs (Portal Objects, Portlet Instances, Portlet Definitions).
Am I accessing the same Management portlet or not?
So I guess there are two possible reasis for this. First is that I am not accessing correct Management Portlet and the other is that if documentation is outdated or maybe I have some problems with installation of JBoss portal. I had same problem with quick start guide.
Thanks for your help. I know that this is really basic question but I must be sure that I am on the right path.
Environment:
JBoss Portal Version: JBoss Portal 2.6 CR2 Ninja (downloaded from JBoss in bundle Jboss AS + portal)
JBoss AS Version: 4.0.5 GA
Database Vendor and Version: default
JDBC Connector and Version: default
OS Platform: (server = Fedora Core 7; client = Windows XP)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053201#4053201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053201
18Â years, 11Â months
[JBoss AOP] - annotation
by system.out
I am trying to tag the intercepted methods individually using annotation as described in userguide 4.1. Methods and annotations.
I created a sample code and it is working fine (similar to Method Interception Sample). However when I tried to apply similar approach to intercept the session bean, interception didn't happen:
Here is the jboss-aop.xml:
<aop>
| <aspect class="OnewayAspect" />
| <bind pointcut="execution(void *->@Oneway(..))">
| <advice name="oneway" aspect="OnewayAspect" />
| </bind>
| </aop>
all methods in session bean have Oneway annotation !!
After that I modified the jboss-aop.xml with the following:
<typedef name="MySessionBeans" expr="class($instanceof{javax.ejb.SessionBean}) AND class(org.jboss.injbossaop.ejb.*)" />
| <bind pointcut="execution(* $typedef{MySessionBeans}->getValue(..))">
| <interceptor class="org.jboss.injbossaop.lib.SimpleInterceptor"/>
| </bind>
It was intercepted!
Can anybody tell me what is wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053200#4053200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053200
18Â years, 11Â months
[JBoss Seam] - Prevent Multiple Clicks in PageFlow
by djeverson
We have implemented a pageflow that walks a user through a "wizard" to accomplish a task.
We have discovered that the users sometimes double click on the "next >" button. On some of the steps in the wizard, the database is getting duplicate data inserted.
We have implemented some short-term/stop-gap measures to prevent the duplicate data in the service layer of our app.
However, we were curious if there is a best practice that others have used to solve this problem?
We are particularly interested if anyone has addressed this issue on a credit card payment screen. We would like to remove the button after the user clicks on it and replace it with a progress bar.
Is ajax4jsf suited for this task? If so, does anyone have any examples?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053197#4053197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053197
18Â years, 11Â months