| Author |
WAS 6.1 SRVE0232E ClassCastException from ibm_security_logout
|
|
|
| Hello
I'm running WAS 6.1.0.5.
The stack trace below comes up when trying to log out of the application.
I don't have any problems on WAS 5.1.
Thank you for any help.
HTML logout code:
<p>
<form method=post action=ibm_security_logout>
<table bgcolor="#0090DD" width="100%" cellpadding="2" cellspacing="0">
<th align=right><input type=submit class="formButton" value=Logout></th>
</table>
<input type=hidden name=logoutExitPage value=/html/login.html></form>
<p>
Stack Trace:
[7/15/07 13:05:33:111 EDT] 0000002d WebContainer E SRVE0232E: Internal Server Error. <br> Exception Message: [java.lang.ClassCastException: com.ibm.ejs.csi.DefaultComponentMetaData incompatible with com.ibm.wsspi.wswebcontainer.metadata.WebCompon
entMetaData
at com.ibm.ws.wswebcontainer.webapp.WebAppDispatcherContext. isSecurityEnabledForApplication(WebAppDi
spatcherContext.java:91)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.getRemoteUser(SRTServletRequest.java:1148)
at com.ibm.ws.security.web.FormLogoutExtensionProcessor.formLogout(FormLogoutExtensionProcessor.java:231)
at com.ibm.ws.security.web.FormLogoutExtensionProcessor. handleRequest(FormLogoutExtensionProcess
or.java:174)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3146)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:254)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:100)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener. futureCompleted(AioReadCompletionListene
r.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture. fireCompletionActions(AbstractAsyncFutur
e.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
| |
| Brian S Paskin 2007-07-15, 7:28 pm |
| Hi,
I just tried it on 6.1.0.5 and it works fine for me. You may want to try the example I am including on the IBM Forum on DeveloperWorks. It is a simple test to logon and logoff.
Brian
| |
|
| Thank you Brian.
The example you gave produced the same error.
j_security_check works fine although the session never terminates even after closing IE.
| |
| Brian S Paskin 2007-07-16, 7:22 pm |
| Hi, You will have to open a problem report with IBM to solve this one.
Brian
| |
|
| Thanks for your suggestion Brian.
One other odd thing is that the ibm_security_logout works fine in the Admin Console.
Is the ibm_security_logout something that can be defined when installing a new application?
| |
| Brian S Paskin 2007-07-18, 1:26 pm |
| Hi, There is no way I know of to define the security logout besides the way it is currently implemented.
Brian
| |
|
| This ended up being something wrong with the security on Web Sphere.
We had it enabled at the server level but not the Web Sphere level.
After turning it on at the Web Sphere level the app was able to use ibm_security_logout.
|
|
|
|