Abdellatif,

It is obvious you are unfamiliar with Java servlet containers and web
applications due to the frequency and level of the questions being asked.  I
hope that you would have taken to heart the advice everyone has offered, but
it seems that is not the case.  You really should listen as there have been
numerous people trying to help you and your repeated efforts to get everyone
to do your work is only hurting your case.

In your configuration below, there are several problems:

   1. You are using “localhost” for the DNS hostname of the CAS server;
   change this to the actual hostname such as “www.example.com”
   2. You declare a servlet for “/Greeting” but you configure your filters
   to look for “/servelt1”; change all filters to “/*”

Try changing these and see how they work, but I beseech you to actually
spend some time researching and understanding Java servlet containers and
web application structure.


2009/7/9 Sander Bos <[email protected]>

>
>
> Hello Abdellatif,
>
> in your web.xml you have configured the new CAS client already, with
> org.jasig.cas.client.authentication.*, so then you do not need to use the
> old CAS client (edu.yale.its.tp.cas.client.filter.*).
>
> Please note that in your web.xml, you use /servelt1 in your mappings. Apart
> from the spelling of servlet, maybe you want to filter on something else
> there (perhaps /Greeting, or start with /* to see if that works better).
>
> Kind regards,,
>
> Sander Bos
>
> Abdellatif HAROUS schreef:
>
> should this filter be included in the web,xml or no need
>
>
> <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>http://localhost:8080/cas/serviceValidate
> </param-value>
>
>         </init-param>
>
>         <init-param>
>
>
> <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
>
>           <param-value>http://localhost:8080</param-value>
>
>         </init-param>
>
>       </filter>
>
>
>
>
>
>       <filter-mapping>
>
>         <filter-name>CAS Filter</filter-name>
>
>         <url-pattern>/servlet1</url-pattern>
>
>       </filter-mapping>
>
>
> ==============================================================
> ===============================================================
> this is my web file
> ================================================================\
>  <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4" xmlns=
> "http://java.sun.com/xml/ns/j2ee"; <http://java.sun.com/xml/ns/j2ee>xmlns:xsi=
> "http://www.w3.org/2001/XMLSchema-instance";<http://www.w3.org/2001/XMLSchema-instance>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";<http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd>
> >
>     <display-name>
>     servelt1</display-name>
>     <servlet>
>         <description>my first servelt</description>
>         <display-name>
>         Greeting</display-name>
>         <servlet-name>Greeting</servlet-name>
>         <servlet-class>
>         com.mycompany.servlet.Greeting</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Greeting</servlet-name>
>         <url-pattern>/Greeting</url-pattern>
>     </servlet-mapping>
>     <welcome-file-list>
>         <welcome-file>index.html</welcome-file>
>         <welcome-file>index.htm</welcome-file>
>         <welcome-file>index.jsp</welcome-file>
>         <welcome-file>default.html</welcome-file>
>         <welcome-file>default.htm</welcome-file>
>         <welcome-file>default.jsp</welcome-file>
>     </welcome-file-list>
>
>     <context-param>
>         <param-name>serverName</param-name>
>         <param-value>http://localhost:8080</param-value>
>     </context-param>
>
>     <filter>
>         <filter-name>CAS Authentication Filter</filter-name>
>
>
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
>
>         <init-param>
>             <param-name>casServerLoginUrl</param-name>
>             <param-value>http://localhost:8080/cas/login</param-value>
>         </init-param>
>     </filter>
>
>     <filter>
>         <filter-name>CAS Validation Filter</filter-name>
>
>
> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
>
>         <init-param>
>             <param-name>casServerUrlPrefix</param-name>
>             <param-value>http://localhost:8080/cas</param-value>
>         </init-param>
>     </filter>
>
>     <filter>
>         <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
>
> <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
>
>     </filter>
>
>     <filter-mapping>
>         <filter-name>CAS Authentication Filter</filter-name>
>         <url-pattern>/servelt1</url-pattern>
>     </filter-mapping>
>
>     <filter-mapping>
>         <filter-name>CAS Validation Filter</filter-name>
>         <url-pattern>/servelt1</url-pattern>
>     </filter-mapping>
>
>     <filter-mapping>
>         <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>   </web-app>
>
>  ------------------------------
> See all the ways you can stay connected to friends and 
> family<http://www.microsoft.com/windows/windowslive/default.aspx>
>
> --
> 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
>
>
>  --
> 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
>
>

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