On 13/09/2011 09:47, sebudandi wrote:
hey i CASified a servlet by putting the code below in the web.xml when i run it 
it shows the cas login screen but when i enter password and username it doesnt 
redirect me to the servlet it says
The connection to localhost:8080 was interrupted while the page was loading.
  can someone tell me why .please

web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
     "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>
<display-name>process</display-name>
   <welcome-file-list>
     <welcome-file>process</welcome-file>

   </welcome-file-list>
<servlet>
  <description></description>
     <display-name>process</display-name>

           <servlet-name>process</servlet-name>
           <servlet-class>process</servlet-class>

       </servlet>


     <servlet-mapping>
                 <servlet-name>process</servlet-name>
                 <url-pattern>/process</url-pattern>
     </servlet-mapping>

      <filter>
     <filter-name>CAS Filter</filter-name>
     <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
     <init-param>
       <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
       <param-value>http://localhost:8080/cas/login</param-value>
     </init-param>
     <init-param>
       <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
       <param-value>https://localhost:8080/cas/serviceValidate</param-value>
     </init-param>
     <init-param>
       <param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
       <param-value>https://localhost:8080/menu.jsp</param-value>
     </init-param>

   </filter>

   <filter-mapping>
     <filter-name>CAS Filter</filter-name>
     <url-pattern>/*</url-pattern>
   </filter-mapping>

</web-app>
- Show quoted text -
It looks as if your using the yale.* package to access CAS, which if its a new installation, I'm guessing you might be uing the CAS3 then you need to start using the new package system. I know I had the same problem. try looking at https://wiki.jasig.org/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+in+the+web.xml this might help you

--
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