Ok, i have the resolution. In WAS, using servlet api 2.4, when you forward a
request to an url, you can't receive the original Query String using
request.getQueryString() but using the "javax.servlet.forward.query_string"
request attribute. So I have added following code to casLoginView.jsp:
<%
String queryString = request.getQueryString();
if(queryString==null) queryString = (String)
request.getAttribute("javax.servlet.forward.query_string");
if(queryString==null) queryString="";
else
queryString.replaceAll("&locale=[A-Za-z][A-Za-z]|^locale=[A-Za-z][A-Za-z]", "");
%>
and used queryString variable instead request.getQueryString().
Does work.
Mario Buonopane
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 17 gennaio 2007 12.01
To: [email protected]
Subject: RE: CAS server on WAS 6.1
I have resolved the error but now i have another problem. After I have
successfully authenticated, I'm not redirect to the cas client application
because request.getQueryString() return null. Any suggestions?
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 17 gennaio 2007 09.56
To: [email protected]
Subject: CAS server on WAS 6.1
Is there anyone successfully used CAS server on IBM WebSphere 6.1?
I'm trying to do it but after login, I'm not redirect on the cas client
application.
This is the error I receive:
[17/01/07 9.51.51:980 CET] 0000002d I UOW=null
source=com.ibm.isclite.SessionListener class=SessionListener
method=sessionDestroyed(HttpSessionEvent event) org=null prod=null
component=null thread=[Non-deferrable Alarm : 2]
session with session ID=ZD-w9bwpGQD8AsYma_6oe4Cgetting destroyed
[17/01/07 9.51.51:980 CET] 0000002d W UOW=null
source=com.ibm.websphere.management.application.client.ArchiveDeploymentInfo
org=IBM prod=WebSphere component=Application Server thread=[Non-deferrable
Alarm : 2]
ADMA0142W: Si sta tentando di chiudere l'archivio mentre è già chiuso.
[17/01/07 9.54.24:867 CET] 00000023 I UOW=null
source=org.springframework.webflow.conversation.impl.ConversationContainer
class=org.apache.commons.logging.impl.Jdk14Logger method=info org=null
prod=null component=null thread=[WebContainer : 1]
Creating new conversation '[EMAIL PROTECTED] name = 'login-webflow']' with id
'3811C826-C706-1291-AB78-0AF7FFF4C525' and adding it to conversation container
[17/01/07 9.54.24:976 CET] 00000023 A UOW=null
source=com.ibm.ws.webcontainer.webapp.WebApp org=IBM prod=WebSphere
component=Application Server thread=[WebContainer : 1]
SRVE0180I: [aEAR#a.war] [/a] [Servlet.LOG]: Error page exception The server
cannot use the error page specified for your application because of the
exception printed below.
[17/01/07 9.54.24:992 CET] 00000023 A UOW=null
source=com.ibm.ws.webcontainer.webapp.WebApp org=IBM prod=WebSphere
component=Application Server thread=[WebContainer : 1]
SRVE0181I: [aEAR#a.war] [/a] [Servlet.LOG]: Error Page Exception: :
com.ibm.ws.webcontainer.webapp.WebAppErrorReport: SRVE0190E: File non trovato:
{0}
at
com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:536)
at
com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:942)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:530)
at
com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:2720)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:622)
at
com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3168)
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:96)
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(AioReadCompletionListener.java:152)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at
com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
[17/01/07 9.54.28:211 CET] 00000023 I UOW=null
source=org.jasig.cas.authentication.AuthenticationManagerImpl
class=org.apache.commons.logging.impl.Jdk14Logger method=info org=null
prod=null component=null thread=[WebContainer : 1]
AuthenticationHandler:
it.accenture.cas3.authentication.DummyCasAuthenticationHandler successfully
authenticated the user which provided the following credentials: a
[17/01/07 9.54.28:211 CET] 00000023 I UOW=null
source=org.springframework.webflow.conversation.impl.ConversationContainer
class=org.apache.commons.logging.impl.Jdk14Logger method=info org=null
prod=null component=null thread=[WebContainer : 1]
Removing conversation with id '3811C826-C706-1291-AB78-0AF7FFF4C525'
[17/01/07 9.54.28:289 CET] 00000023 A UOW=null
source=com.ibm.ws.webcontainer.webapp.WebApp org=IBM prod=WebSphere
component=Application Server thread=[WebContainer : 1]
SRVE0180I: [aEAR#a.war] [/a] [Servlet.LOG]: Error page exception The server
cannot use the error page specified for your application because of the
exception printed below.
[17/01/07 9.54.28:289 CET] 00000023 A UOW=null
source=com.ibm.ws.webcontainer.webapp.WebApp org=IBM prod=WebSphere
component=Application Server thread=[WebContainer : 1]
SRVE0181I: [aEAR#a.war] [/a] [Servlet.LOG]: Error Page Exception: :
com.ibm.ws.webcontainer.webapp.WebAppErrorReport: SRVE0190E: File non trovato:
{0}
at
com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:536)
at
com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:942)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:530)
at
com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:2720)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:622)
at
com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3168)
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:96)
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(AioReadCompletionListener.java:152)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at
com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Please help me.
Mario Buonopane
This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the email by you is prohibited.
This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the email by you is prohibited.
This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the email by you is prohibited.
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas