Abdellatif,

Okay, I will ask this simple question for the third time: Are you hosting
these servlets on the same server that is hosting CAS?

Depending on your answer, I will follow up accordingly.

A-


On 7/20/09 3:27 PM, "Abdellatif HAROUS" <[email protected]> wrote:

> It really a simple question ... and I dont know why , no one is answering ?
> 
> From the morning I am waiting an answer , and no one even answered
> 
> Hopefully this time some one will answer
> 
> my question is : do I need to write my own piece of code to connect two java
> servlets in order when I enter
> credentials in one web application I dont need to enter the same credentials
> in the second java servlet...or does the three filters which I added
> do this function ( which I dont think so ) ?
> 
> 
> 
> http://www.ja-sig.org/wiki/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+
> Java+in+the+web.xml
> 
> this the link which I followed and its working the web application is
> connected with CAS and CAS with LDAP
> 
> hope some one replies.....
> 
> here are the two web.xml files of the two we apps
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="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";>
>     <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.Cas10TicketValidationFilter</fil
> ter-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</filte
> r-class>  
>     </filter>  
>   
>     <filter-mapping>
>         <filter-name>CAS Authentication Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>   
>     <filter-mapping>
>         <filter-name>CAS Validation Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>   
>     <filter-mapping>
>         <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>        
> </web-app>
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="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";>
>     
>     <display-name>servlet2</display-name>
>     
>     <servlet>
>         <description> my second servlet</description>
>         <display-name>Greeting2</display-name>
>         <servlet-name>Greeting2</servlet-name>
>         <servlet-class>com.mycompany.servlet.Greeting2</servlet-class>
>     </servlet>
>     
>     <servlet-mapping>
>         <servlet-name>Greeting2</servlet-name>
>         <url-pattern>/Greeting2</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 Validatio Filter</filter-name>
>         
> <filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</fil
> ter-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</filte
> r-class>  
>     </filter>  
>   
>     <filter-mapping>
>         <filter-name>CAS Authentication Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>   
>     <filter-mapping>
>         <filter-name>CAS Validation Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>   
>     <filter-mapping>
>         <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>     
>     
>     
> </web-app>
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> ==============================================================================
> ==================
> 
> thanx in advance
> 
> 
> See all the ways you can stay connected to friends and family
> <http://www.microsoft.com/windows/windowslive/default.aspx>

-- 
Andrew Feller, Business System Programmer
LSU University Information Services
200 Frey Computing Services Center
Baton Rouge, LA 70803
Office: 225.578.3737
Fax: 225.578.6400



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