[JBoss Seam] - "Cannot remove ServletRequest Parameter" when integrating Se
by gemel
I have a Seam+IceFaces application that works well.
My goal is to integrate ADF according to what is written on the developer guide on page 18 about JSF integration.
By reading the developer Guide, I understood that it is possible to integrate
other JSF libraries with IceFaces in Seam under certain conditions.
- I replaced icefaces.jar with just-ice.jar
- I defined the "Faces Servlet" and the "*.faces" mapping for this servlet
- I have a very simple xhtml page with only one <afh:outputText> tag.
- Did I forget something?
To integrate ADF with Seam, I used the "adfregistration example " on the wiki.
When I test my application, by calling "mypage.faces" I have a bug in the restoreView method of the D2DViewHandler class.
Typically the instruction below doesn't work:
public UIViewRoot restoreView(FacesContext context, String viewId) {
...
if (SeamUtilities.isSeamEnvironment() &&
( context.getExternalContext().getRequestParameterMap().remove(
PersistentFacesCommonlet.SEAM_LIFECYCLE_SHORTCUT) != null)) {
return null;
}
...
}
The D2DViewHandler class delegates the instruction remove to the RequestParameterMap class of the org.apache.myfaces.context.servlet package. This method is not supported and throws an UnsupportedOperationException.
Is it a bug?
I'd like to know if somebody already succeeded in integrating
Seam + IceFaces + ADF or another library as indicated on page 18.
Thanks for help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003379#4003379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003379
19 years, 3 months
[JBoss jBPM] - Re: TaskInstance.end() hogs CPU time
by Johan.Parent
No progress with this problem! I ran the Websale example with more success so I guess the problem resides in the way I have defined the identities or the assignment(s) then. After all the hibernate code that eat up all the time relates exactly to this.
| <identity>
| <!-- 2 doctors -->
| <user id="1" name="doc1" email="doc1work" password="crunchcrunch" />
| <user id="2" name="doc2" email="doc1@work" password="canthereyoubert,theresabananainmyear" />
|
| <!-- 2 OE people -->
| <user id="3" name="oe1" email="oe1@work" password="ernie,theresabananainyourear" />
| <user id="4" name="oe2" email="oe2@work" password="mayday mayday" />
|
| <!-- 3 groups -->
| <group name="doctors" type="hierachy" />
| <group name="oeteam" type="hierachy" />
| <group name="patients" type="organisation" />
|
| <!-- Assign groups -->
| <membership user="doc1" group="doctors" />
| <membership user="doc2" group="doctors" />
|
| <membership user="oe1" group="oeteam" />
| <membership user="oe2" group="oeteam" />
|
| </identity>
|
Any suggestion, really ANY, will be much appreciated!
Regards,
Johan
ps: the process def. in at the beginning of this thread (which is long enough already...)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003378#4003378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003378
19 years, 3 months
[JBoss Seam] - seam, pojo and a user thread...?
by smeaggie
Hi all, I'm pretty new to seam, but I managed to get it working with everything I need, except for this one! I need a very simple task executed every 10 seconds, switching on and off from the web interface, starting immediatly at deploy time and automaticly stop at undeploy or jboss shutdown. Don't worry, most parts work ;)
I use a simple java.util.Timer to accomplish this and some annotations to expose to seam. This is (somewhat simplified) my code:
| @Name("MyService")
| @Scope(ScopeType.APPLICATION)
| @Startup()
| public class MyService {
| private Timer timer;
|
| @Create()
| public void start() {
| this.timer = new Timer();
| this.timer.scheduleAtFixedRate(new MyTask(), 0, 10000);
| }
|
| @Destroy()
| public void stop() {
| this.timer.cancel();
| }
| }
|
Code works perfectly, it's started on deploy time automaticly, and the methods are callable by the web interface wich stops and starts the timer as expected. However, on undeploy or shutting down jboss, I get the following exception:
| [Contexts] Could not destroy component: MyService
| java.lang.IllegalStateException: No active event context
| <--- impressive stack trace goes here --->
|
and the timer keeps running...
Can someone help me out here? Thanks in advance,
Eric
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003376#4003376
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003376
19 years, 3 months