HelloWorld Problem

Scott Battaglia scott.battaglia at gmail.com
Tue Jan 29 12:36:26 EST 2008


Three things immediately jump to mind.  You've haven't configured a
Validation Filter, nor have you configured your service url to point to a
url that actually exists in your application.  Finally there is no filter
mapping.

-Scott

On Jan 29, 2008 12:12 PM, Wilson França <wilsonrf at gmail.com> wrote:

> Hi,
> I'm using cas-client-3.1-RC1
>
> here is my web.xml
>
> <?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>HelloWorldWithCAS</display-name>
>     <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>
>     <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://gar12-rj:8443/cas/login</param-value>
>         </init-param>
>         <init-param>
>             <param-name>service</param-name>
>             <param-value>http://vmidunico1:8080/HelloWorldWithCAS
> </param-value>
>         </init-param>
>             <init-param>
>             <param-name>serverName</param-name>
>             <param-value>vmidunico1:8080</param-value>
>         </init-param>
>     </filter>
>
>     <servlet>
>         <servlet-name>HelloWorld</servlet-name>
>         <servlet-class>
>             com.buscape.desenv.wilson.HelloWorld
>         </servlet-class>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>HelloWorld</servlet-name>
>         <url-pattern>/helloWorld</url-pattern>
>     </servlet-mapping>
> </web-app>
>
> What's wrong??
>
> Thanx!
>
>
> On Jan 29, 2008 12:23 PM, Scott Battaglia <scott.battaglia at gmail.com>
> wrote:
>
> > Wilson,
> >
> > When you are redirected to the CAS server, is there a service parameter
> > in the url?  If not, then the CAS client that is redirecting you from the
> > HelloWorld app is not configured correctly.
> >
> > -Scott
> >
> > On Jan 29, 2008 8:35 AM, Wilson França <wilsonrf at gmail.com> wrote:
> >
> > >  Hi,
> > >
> > > I have checked out CAS 3.1 and deployed on Tomcat with JDBC
> > > authentication. Then, put in another machine an "HelloWorld" app
> > > authenticating with CAS. When i'm redirected to auth page and authenticate,
> > > i only recieve the "Log in Successful", but not see the "HelloWorld"
> > > servlet.
> > >
> > > What i'm doing wrong?
> > >
> > > Thnx
> > >
> > > PS: sorry the poor english.
> > >
> > > _______________________________________________
> > > Yale CAS mailing list
> > > cas at tp.its.yale.edu
> > > http://tp.its.yale.edu/mailman/listinfo/cas
> > >
> > >
> >
> >
> > --
> > -Scott Battaglia
> >
> > LinkedIn: http://www.linkedin.com/in/scottbattaglia
> > _______________________________________________
> > Yale CAS mailing list
> > cas at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080129/b7ca3bee/attachment.html 


More information about the cas mailing list