Actually, I only want to install the server but I have seen that in the 
cas-server-webapp pom.xml there is a dependency to the client and pherhaps it 
needs to be adapted to the tomcat 7 jars. 

   <dependency>
      <groupId>org.jasig.cas.client</groupId>
      <artifactId>cas-client-core</artifactId>
      <version>3.2.1</version>
   </dependency>

I suppose as well that it is necessary because the /services url makes the 
server acting as a client.

However, when I have to casify the applications that are going to use the SSO I 
will have to configure those applications as a client and some of them (not too 
many) are running in Tomcat and in the documentation there is no mention about 
the case of tomcat 7.

Regarding the authenticationToken. It is possible that the thread architecture 
of tomcat requires any tweak to make the authentication token available in any 
part of the flow? I'm getting null in my authenticationHandler and it is 
supposed that the AnonymousAuthenticationFilter has already executed in that 
stage.
In fact, in jboss 4 it is working as expected.

Another difference regarding Jboss is that if I try to do a 
redirection to a page in a FlowExecutionListener with:

HttpUtils.forward("/WEB-INF/view/jsp/default/ui/casAccountTemporalyDisabledView.jsp");

where 

  public static void forward (String relativeUrl)
  {

                                HttpServletRequest request=getCASHttpRequest();
                                HttpServletResponse 
response=getCASHttpResponse();
                                
                                RequestDispatcher rd = 
request.getRequestDispatcher(relativeUrl);
                        try {
                                if (response.isCommitted())
                                   rd.include(request, response);
                                else
                                           rd.forward(request, response);
                                } catch (ServletException e1) {
                                        // TODO Auto-generated catch block
                                        e1.printStackTrace();
                                }
                                //redirect to warning page
                    catch (IOException e) {
                                        // TODO Auto-generated catch block
                                        e.printStackTrace();
                                }
  }

I get the following error message in tomcat but not in jboss. So I wonder if 
I'm missing something:

2014-05-26 10:26:02,224 DEBUG 
[org.jasig.cas.web.FlowExecutionExceptionResolver] - <Ignoring the received 
exception due to a type mismatch>
java.lang.IllegalStateException: No puedo llamar a sendRedirect() tras llevar a 
cabo la respuesta
        at 
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:482)
        at 
org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.sendRedirect(FlowHandlerAdapte
r.java:324)
        at 
org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.sendExternalRedirect(FlowHandl
erAdapter.java:408)
        at 
org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handleFlowExecutionResult(Flow

Any help would be appreciated.

Thank you in advance!
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to