I hope you've got your problem solved. If you don't mind, I am wondering whether you could shed some lights on how to get your http://localhost:8080/sampleweb working. Which version of cas-server and Tomcat did you use?
I was trying to casify the HelloWorld example. I could get it working with cas-client2.1.1.jar, however, I got problem with cas-client-core-3.1.5 jar. The error message I got is not informative (javax.naming.NameNotFoundException: Name cas is not bound in this Context, which according to the community, is not a malicious bug). My testing environment is as follows: JDK1.6.0_10 Tomcat6.0.18 cas-server-3.3.2 cas-client-core-3.1.5 (I also tried cas-client-core-3.1.3) , dependency file commons-logging-1.1.jar was in place A self-authored server certificate was created using keytool I tried different ways to configure web.xml file, I even tried exactly the same filter configuration as yours, it wouldn't work. If you could explain a bit about your testing environment and how you got it working, it would be greatly appreciated. Thanks, Xuejin nicksydney wrote: > > Hi, > > I'm have 2 webapp sampleweb and sampleweb1 and both are configured using > cas-client-core-3.1.5.jar and following are the web.xml configuration > > ----------- > sampleweb1 > ----------- > <?xml version="1.0" encoding="ISO-8859-1"?> > > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > > <display-name>Tomcat Examples</display-name> > <description> > Tomcat Example servlets and JSP pages. > </description> > > <listener> > > <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> > </listener> > > > <filter> > <filter-name>CAS Ticket Validator Filter</filter-name> > > <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> > <init-param> > <param-name>redirectAfterValidation</param-name> > <param-value>false</param-value> > </init-param> > <init-param> > <param-name>casServerUrlPrefix</param-name> > <param-value>https://localhost:8443/cas</param-value> > </init-param> > <init-param> > <param-name>serverName</param-name> > <param-value>localhost:8080</param-value> > </init-param> > <init-param> > <param-name>exceptionOnValidationFailure</param-name> > <param-value>false</param-value> > </init-param> > > > <init-param> > <param-name>acceptAnyProxy</param-name> > <param-value>true</param-value> > </init-param> > > <init-param> > <param-name>serviceParameterName</param-name> > <param-value>serviceValidate</param-value> > </init-param> > > <init-param> > <param-name>proxyReceptorUrl</param-name> > > <param-value>http://localhost:8443/sampleweb1/</param-value> > </init-param> > > </filter> > > > > <filter-mapping> > <filter-name>CAS Ticket Validator Filter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > > <filter> > <filter-name>CAS Single Sign Out Filter</filter-name> > > <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> > </filter> > > <filter-mapping> > <filter-name>CAS Single Sign Out Filter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > > <filter> > <filter-name>CAS Filter</filter-name> > > <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> > <init-param> > <param-name>casServerLoginUrl</param-name> > <param-value>https://localhost:8443/cas/login</param-value> > </init-param> > > <init-param> > <param-name>serverName</param-name> > <param-value>localhost:8080</param-value> > </init-param> > > <init-param> > <param-name>renew</param-name> > <param-value>true</param-value> > </init-param> > > > > </filter> > > > > > > <filter-mapping> > <filter-name>CAS Filter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > </web-app> > > > > > ---------- > sampleweb > ---------- > > <?xml version="1.0" encoding="ISO-8859-1"?> > > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > > <display-name>Tomcat Examples</display-name> > <description> > Tomcat Example servlets and JSP pages. > </description> > > <listener> > > <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> > </listener> > > > <filter> > <filter-name>CAS Ticket Validator Filter</filter-name> > > <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> > <init-param> > <param-name>redirectAfterValidation</param-name> > <param-value>false</param-value> > </init-param> > <init-param> > <param-name>casServerUrlPrefix</param-name> > <param-value>https://localhost:8443/cas</param-value> > </init-param> > <init-param> > <param-name>serverName</param-name> > <param-value>localhost:8080</param-value> > </init-param> > <init-param> > <param-name>exceptionOnValidationFailure</param-name> > <param-value>false</param-value> > </init-param> > > > <init-param> > <param-name>acceptAnyProxy</param-name> > <param-value>true</param-value> > </init-param> > > <init-param> > <param-name>serviceParameterName</param-name> > <param-value>serviceValidate</param-value> > </init-param> > > > > <init-param> > <param-name>proxyReceptorUrl</param-name> > > <param-value>http://localhost:8443/sampleweb/</param-value> > </init-param> > > </filter> > > > > <filter-mapping> > <filter-name>CAS Ticket Validator Filter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > > <filter> > <filter-name>CAS Single Sign Out Filter</filter-name> > > <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> > </filter> > > <filter-mapping> > <filter-name>CAS Single Sign Out Filter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > > <filter> > <filter-name>CAS Filter</filter-name> > > <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> > <init-param> > <param-name>casServerLoginUrl</param-name> > <param-value>https://localhost:8443/cas/login</param-value> > </init-param> > > <init-param> > <param-name>serverName</param-name> > <param-value>localhost:8080</param-value> > </init-param> > > <init-param> > <param-name>renew</param-name> > <param-value>true</param-value> > </init-param> > > > > </filter> > > > > > > <filter-mapping> > <filter-name>CAS Filter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > </web-app> > > > When I access http://localhost:8080/sampleweb I was redirected to the > login page which is as expected but when I try > http://locahost:8080/sampleweb1 it does not go to the page but it goes to > the login which is not expected. I'm not having this problem when I'm > using casclient-2.1.1.jar , is there any configuration that I may have > missed ? > > This is done on my local machine. > > Thanks > > -- View this message in context: http://www.nabble.com/2-WebApp-Problem-tp23166612p23544372.html Sent from the CAS Users mailing list archive at Nabble.com. -- 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
