whats wrong with my web.xml folder

4 messages Options
Embed this post
Permalink
Abdellatif HAROUS

whats wrong with my web.xml folder

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
hi alll......
 
 
could some one check whats missing in my web.xml file
 
I build and deploy it but still I can not get the login page
 
 
=======================================================================

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

<context-param>

<param-name>serverName</param-name>

<param-value>http://localhost:8080</param-value>

</context-param>

<!-- The AuthenticationFilter is what detects whether a user needs to be authenticated or not.

If a user needs to be authenticated, it will redirect the user to the CAS server. -->

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

<!-- Validates tickets using the CAS 1.0 Protocol -->

<filter>

<filter-name>CAS Validation Filter</filter-name>

<filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>

<init-param>

<param-name>casServerUrlPrefix</param-name>

<param-value>http://localhost:8080/cas</param-value>

</init-param>

</filter>

<!-- Wraps an HttpServletRequest so that the getRemoteUser and getPrincipal return the CAS related entries -->

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

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

</web-app>

=====================================================================================

=====================================================================================

when I type in the http://localhost:8080/servlet1/index.jsp or http://localhost:8080/servlet1

this what I get the error message

HTTP Status 404 - /servlet1/index.jsp


type Status report
message /servlet1/index.jsp
description The requested resource (/servlet1/index.jsp) is not available.

Apache Tomcat/5.5.27

 
 
 

HTTP Status 404 - /servlet1


type Status report
message /servlet1
description The requested resource (/servlet1) is not available.

Apache Tomcat/5.5.27

 

 

 



check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages
-- 
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
Xuejin Ruan

Re: whats wrong with my web.xml folder

Reply Threaded More More options
Print post
Permalink
Abdellatif,

Did you set up Tomcat correctly? Please read the link below:

http://www.ja-sig.org/wiki/display/CASUM/Demo


Below is an example of web.xml config for CAS:
~~~~~~~~~~~~~~~~~~~~~~~~~~
<context-param>  
        <param-name>serverName</param-name>  
        <param-value>http://myClientApplicationServer: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>https://mycasserver:8443/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>https://mycasserver:8443/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>/servlets/servlet/HelloWorldExample</url-pattern>  
    </filter-mapping>  
 
    <filter-mapping>  
        <filter-name>CAS Validation Filter</filter-name>  
        <url-pattern>/servlets/servlet/HelloWorldExample</url-pattern>  
    </filter-mapping>  
 
    <filter-mapping>  
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>  
        <url-pattern>/*</url-pattern>  
    </filter-mapping>  
~~~~~~~~~~~~~~~~~~~~~

Hope this helps.

Xuejin


Abdellatif HAROUS wrote:
hi alll......

 

 

could some one check whats missing in my web.xml file

 

I build and deploy it but still I can not get the login page

 

 

=======================================================================

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

<context-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8080</param-value>
</context-param>



<!-- The AuthenticationFilter is what detects whether a user needs to be authenticated or not.
If a user needs to be authenticated, it will redirect the user to the CAS server. -->

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



<!-- Validates tickets using the CAS 1.0 Protocol -->

<filter>
<filter-name>CAS Validation Filter</filter-name>
<filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>http://localhost:8080/cas</param-value>
</init-param>

</filter>




<!-- Wraps an HttpServletRequest so that the getRemoteUser and getPrincipal return the CAS related entries -->

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




<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>
</web-app>
=====================================================================================
=====================================================================================
when I type in the http://localhost:8080/servlet1/index.jsp or http://localhost:8080/servlet1
this what I get the error message
HTTP Status 404 - /servlet1/index.jsp


type Status report

message /servlet1/index.jsp

description The requested resource (/servlet1/index.jsp) is not available.



Apache Tomcat/5.5.27
 

 

 

HTTP Status 404 - /servlet1


type Status report

message /servlet1

description The requested resource (/servlet1) is not available.



Apache Tomcat/5.5.27
 
 
 
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

--
You are currently subscribed to cas-user@lists.jasig.org as: lists@nabble.com
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
Scott Battaglia-2

Re: whats wrong with my web.xml folder

Reply Threaded More More options
Print post
Permalink
In reply to this post by Abdellatif HAROUS
Have you tried looking in your logs at all for the error message?



2009/7/8 Abdellatif HAROUS <[hidden email]>
hi alll......
 
 
could some one check whats missing in my web.xml file
 
I build and deploy it but still I can not get the login page
 
 
=======================================================================

<?

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>

<context-param>

<param-name>serverName</param-name>

<param-value>http://localhost:8080</param-value>

</context-param>

<!-- The AuthenticationFilter is what detects whether a user needs to be authenticated or not.

If a user needs to be authenticated, it will redirect the user to the CAS server. -->

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

<!-- Validates tickets using the CAS 1.0 Protocol -->

<filter>

<filter-name>CAS Validation Filter</filter-name>

<filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>

<init-param>

<param-name>casServerUrlPrefix</param-name>

<param-value>http://localhost:8080/cas</param-value>

</init-param>

</filter>

<!-- Wraps an HttpServletRequest so that the getRemoteUser and getPrincipal return the CAS related entries -->

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

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

</

web-app>

=====================================================================================

=====================================================================================

when I type in the http://localhost:8080/servlet1/index.jsp or http://localhost:8080/servlet1

this what I get the error message

HTTP Status 404 - /servlet1/index.jsp


type Status report
message /servlet1/index.jsp
description The requested resource (/servlet1/index.jsp) is not available.

Apache Tomcat/5.5.27

 
 
 

HTTP Status 404 - /servlet1


type Status report
message /servlet1
description The requested resource (/servlet1) is not available.

Apache Tomcat/5.5.27

 

 

 



check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages
-- 
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

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

Re: whats wrong with my web.xml folder

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Re: [cas-user] whats wrong with my web.xml folder Agreed, check out your cas.log file.  Also, unless you are deploying your application to the same server that hosts CAS, I would suggest changing “localhost” to the DNS hostname of the CAS server.


On 7/8/09 8:32 PM, "Scott Battaglia" <scott.battaglia@...> wrote:

Have you tried looking in your logs at all for the error message?



2009/7/8 Abdellatif HAROUS <harous89@...>
hi alll......
 
 
could some one check whats missing in my web.xml file
 
I build and deploy it but still I can not get the login page
 
 
=======================================================================

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

<context-param>

<param-name>serverName</param-name>

<param-value>http://localhost:8080</param-value>

</context-param>

<!-- The AuthenticationFilter is what detects whether a user needs to be authenticated or not.

If a user needs to be authenticated, it will redirect the user to the CAS server. -->

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

<!-- Validates tickets using the CAS 1.0 Protocol -->

<filter>

<filter-name>CAS Validation Filter</filter-name>

<filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>

<init-param>

<param-name>casServerUrlPrefix</param-name>

<param-value>http://localhost:8080/cas</param-value>

</init-param>

</filter>

<!-- Wraps an HttpServletRequest so that the getRemoteUser and getPrincipal return the CAS related entries -->

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

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

</
web-app>

=====================================================================================

=====================================================================================

when I type in the http://localhost:8080/servlet1/index.jsp or http://localhost:8080/servlet1

this what I get the error message
HTTP Status 404 - /servlet1/index.jsp

type Status report
message /servlet1/index.jsp
description The requested resource (/servlet1/index.jsp) is not available.

Apache Tomcat/5.5.27
 
 
 
HTTP Status 404 - /servlet1

type Status report
message /servlet1
description The requested resource (/servlet1) is not available.

Apache Tomcat/5.5.27
 

 

 


check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages <http://www.microsoft.com/windows/windowslive/>

--
Andrew Feller, Analyst
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 [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user