Never mind, the culprit is my typo in the xml config file...... Shame on me! 

Thanks for your attention, Scott!


scott_battaglia wrote:
> 
> If you're not using Firefox, try loading the page in Firefox, it should
> show
> you the stack trace.  If you're getting a 404 error, then you have a
> deployment error which generally means a problem with the web.xml
> 
> Cheers,
> Scott
> 
> 
> On Thu, May 14, 2009 at 2:51 PM, Xuejin Ruan <[email protected]>
> wrote:
> 
>>
>> Hi Scott,
>>
>> Yes, both you and Marvin told me that it was not a bug, but a WARNING.
>> That
>> is true. But my problem is that I got "Page could not be displayed error"
>> in
>> the browser insteading of the CAS login page whenever I hit the resource
>> link, , while I could get it working with older version of
>> cas-client2.1.1
>> (which means CAS server is working fine).
>>
>> Since I didn't get other error message from the log file, it is hard to
>> figure out what went wrong, that is why I asked nicksydney about the
>> testing
>> environment.
>>
>> By looking at the following xml configuration, could you detect anything
>> suspicious?
>>
>> Thanks,
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> <context-param>
>>         <param-name>serverName</param-name>
>>         <param-value>https://DPRG110.co.pierce.wa.us: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://DPRG110.co.pierce.wa.us: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://DPRG110.co.pierce.wa.us: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>
>> ~~~~~~~~~~~~~~~~~~~~~
>>
>> Thanks,
>>
>> Xuejin
>>
>>
>> scott_battaglia wrote:
>> >
>> > As I believe I've already mentioned that's not a bug, or error.  Its a
>> > WARNING (if you look at the log statement) as its one of the checks
>> that
>> > are
>> > done for your parameters.  We've toned down the WARNING so that it
>> doesn't
>> > look so scary in future versions but it is not, and continues to not be
>> > the
>> > cause of any problems you're having.
>> >
>> > Cheers,
>> > Scott
>> >
>> >
>> > On Thu, May 14, 2009 at 12:41 PM, Xuejin Ruan <[email protected]>
>> > wrote:
>> >
>> >>
>> >> 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
>> >>
>> >
>> > --
>> > 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
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/2-WebApp-Problem-tp23166612p23546610.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
>>
> 
> -- 
> 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
> 
:blush::blush:
-- 
View this message in context: 
http://www.nabble.com/2-WebApp-Problem-tp23166612p23548367.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

Reply via email to