[Design of JBoss Portal] - Re: logout from my portal instance
by psalvadori
Hi Julien
first of all thanks for your quick response. I tried what you said but nothing better. I didn't understand who intercept the signout request. I suppose that there must be a servlet that do it or something similar but I didn't find it in the source code.
I made an attempt to resolve my problem but I didn't receive any results. I tried to extend the class PageCustomizerInterceptor, the one that insert the logout html code in every logged pages. In my implementation, in the method "injectDashboardNav", I inserted the following code:
|
| SignOutCommand cmd = new SignOutCommand("portal/GFPortal/default");
| URLContext urlContext = controllerCtx.getServerInvocation().getServerContext().getURLContext();
| String logoutURL = controllerCtx.renderURL(cmd, urlContext.asNonAuthenticated(), null);
instead of the original code:
| SignOutCommand cmd = new SignOutCommand();
| URLContext urlContext = controllerCtx.getServerInvocation().getServerContext().getURLContext();
| String logoutURL = controllerCtx.renderURL(cmd, urlContext.asNonAuthenticated(), null);
the string "portal/GFPortal/default" is the page where I want to redirect when I signout.
But even in this case nothing happens.
I hope You can help me because it is very urgent for me.
Thanks in advance,
Paolo.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033641#4033641
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033641
17 years, 11 months
[Other JBoss Development Design] - possible bug in run.sh on Solaris
by quentena
We've been using jboss 4.0.5.GA and we think we've found a bug with run.sh on Solaris (9 or 10).
This link is the patch that seems to have introduced this problem:
http://jira.jboss.com/jira/browse/JBAS-3748
This link is where the patch was discussed:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=92156
To trigger the bug, you need to set LAUNCH_JBOSS_IN_BACKGROUND. Then start the jboss server normally. Once it's started stop the server. The JVM stops, however the run.sh script hangs around consuming 100% of a single CPUs resources.
The problem seems to be this bit of script, plus the fact that the script shebang is #!/bin/sh
| while [ "$WAIT_STATUS" -ne 127 ]; do
| JBOSS_STATUS=$WAIT_STATUS
| wait $JBOSS_PID 2>/dev/null
| WAIT_STATUS=$?
| done
|
On Solaris, #!/bin/sh is *real* bourne shell and the wait shell built-in for /bin/sh on Solaris returns 0 (not 127) if the PID (passed as an argument) doesn't exist. The man page for wait states that this is the correct behaviour.
Anyway, wait returns 0 and the while loop continues for ever burning up CPU resources (until you kill it with one of the signals not being trapped).
We've thought of two possible fixes for this:
1) change the shebang to be #!/bin/bash. This works OK on Linux & Solaris (provided you've installed bash) but I can't speak for other OS's.
2) test and alias wait to the program version if it exists.
Something like this near the top of the script:
| if [ -x /bin/wait ]; then
| alias wait='/bin/wait'
| fi
|
Has anyone else run across this problem? Can anyone think of a better solution?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033567#4033567
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033567
17 years, 11 months