Have you made sure that your self-signed certificate is in your JVM's
cacerts file?

Cheers,
Scott


2009/7/21 Abdellatif HAROUS <[email protected]>

>  hi all ....
>
> I did what scott asked me to do is to move to https instead of http in
> order to get SSO , so I followed this link
> to obtain this
> http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
>
> then I modified my two web.xml files of my two java servlets
> by changing (http://localhost:8080) to (https://localhost:8443)
>
> but when I tried to run the servlets I could not get the login page for my
> servlet I just got the CAS login page and after I login I get this
> error
>
> ==============================================================================================
> HTTP Status 500 -
> ------------------------------
> *type* Exception report
> *message* **
> *description* *The server encountered an internal error () that prevented
> it from fulfilling this request.*
> *exception*
>
> javax.servlet.ServletException: The CAS server returned no response.
>       
> org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:155)
>       
> org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
>
>
> *root cause*
>
> org.jasig.cas.client.validation.TicketValidationException: The CAS server 
> returned no response.
>       
> org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:181)
>       
> org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:132)
>       
> org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
>
>
> *note* *The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.27 logs.*
> ------------------------------
> Apache Tomcat/5.5.27
> ===================================================================================================
> the 2 web.xml files
>
> ===================================================================================================
> <?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>
>       &nbsp <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>
>       &nbsp <welcome-file>default.htm</welcome-file>
>         <welcome-file>default.jsp</welcome-file>
>     </welcome-file-list>
>
>     <context-param>
>         <param-name>serverName</param-name>
>         <param-value>https://localhost:8443</param-value>
>     </context-param>
>
>     <filter>
>         <filter-name>CAS Authentication Filter</filter-name>
>
>
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
>
>         <init-param>&nbsp
>             <param-name>casServerLoginUrl</param-name>
>             <param-value>https://localhost:8443/cas/login</param-value>
>         </init-param>
>     </filter>
>
>     <filter>
>         <filter-name>CAS Validation Filter</filter-name>
>
> <filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>
>                     &nbsp <init-param>
>
> <param-name>casServerUrlPrefix</param-name>
>                                   <param-value>https://localhost:8443/cas
> </param-value>
>                       </init-param>
>     </filter>
>
>     <filter>
>         <filter-name>CAS HttpServletRequest Wrapper
> Filter</filter-name>
>       &nbsp
> <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 Wrappe 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>servelt1</display-name>
>     <servlet>
>         <description>my first servelt</description>
>         <display-name>Greeting</display-name>
>       &nbsp <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>
>       &nbsp <welcome-file>default.htm</welcome-file>
>         <welcome-file>default.jsp</welcome-file>
>     </welcome-file-list>
>
>     <context-param>
>         <param-name>serverName</param-name>
>         <param-value>https://localhost:8443</param-value>
>     </context-param>
>
>     <filter>
>         <filter-name>CAS Authentication Filter</filter-name>
>
>
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
>
>         <init-param>&nbsp
>             <param-name>casServerLoginUrl</param-name>
>             <param-value>https://localhost:8443/cas/login</param-value>
>         </init-param>
>     </filter>
>
>     <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>https://localhost:8443/cas</param-value>
>   </init-param>
> </filter>
>
>     <filter>
>       &nbsp <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>
>
>   &nbsp <filter-mapping>
>         <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>
>
>
>
>
>
> </web-app>
>
> ------------------------------
> Share your memories online with anyone you want anyone you 
> want.<http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1>
>
> --
> 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