web.xml file

1 message Options
Embed this post
Permalink
Abdellatif HAROUS

web.xml file

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
This is my web.xml file , but actually when I build and deploy , I get no errors when I get the login page of my servlet ,
 I enter a random username and password
and it moves to the next page , so whats wrong with my web.xml  file
I included the three filters and there mappings , thats whats explained in the wiki , but it is not working

===================================================================
<?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.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>

Invite your mail contacts to join your friends list with Windows Live Spaces It's easy! Try it!
-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user