I am very new to setup CAS. So, I am following demo from 
http://www.ja-sig.org/wiki/display/CASUM/Demo.

I use two PCs to setup.

First PC whose name is "edwardcwin.wri.wolfram.com", from setp 1 to step 
9, it works fine.
The second machine whose name is "herb.wri.wolfram.com" and this PC is 
to use wireless network to connect.

step 10, OK
step 11, In herb.wri.wolfram.com, I edit web.xml from C:\Program 
Files\Apache Software Foundation\Tomcat 
5.5\webapps\servlets-examples\WEB-INF as follow

<filter>
 <filter-name>CAS Filter</filter-name>
 <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
  <init-param>
   <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
   <param-value>https://edwardcwin.wri.wolfram.com:8443/cas/login</param-value>
  </init-param>
  <init-param>
   <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
   
<param-value>https://edwardcwin.wri.wolfram.com:8443/cas/serviceValidate</param-value>
  </init-param>
  <init-param>
   <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
   <param-value>herb.wri.wolfram.com:8080</param-value>
  </init-param>
  <init-param>
   <param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
   <param-value>true</param-value>
  </init-param>
</filter>

<filter-mapping>
<filter-name>CAS Filter</filter-name>
<url-pattern>/servlet/HelloWorldExample</url-pattern>
</filter-mapping>  ---- this line I removed
<filter-name>CAS Filter</filter-name>
<url-pattern>/servlet/RequestHeaderExample</url-pattern>
</filter-mapping>

Step 13, I got confused.


    * In compB, simply copy the cacerts to cacerts.old (to save it just
      in case)  ---I copy cacerts and past it and rename the copied one
      to cacerts as cacerts.old
    * run *java InstallCert compA:8443* (i.e. provide the argument
      "compA:8443" to the executable "InstallCert")
      (adapted source code for InstallCert.java from Sun blog by Andreas
      Sterbenz is shown below)  ---*
      *

      I open start->run->*java InstallCert *edwardcwin.wri.wolfram.com*:8443*

         

C:\>java InstallCert edwardcwin.wri.wolfram.com:8443
Exception in thread "main" java.lang.NoClassDefFoundError: InstallCert
Caused by: java.lang.ClassNotFoundException: InstallCert
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\>

    * Answer 1 to the prompt   --- I don't know what it is???


step 14, I have the following results after I re-start all the tomcat

http://edwardcwin.wri.wolfram.com:8080/servlets-examples/servlet/HelloWorldExample

It asks me to select the certificate then re-direct me to CAS login, 
then helloworld site

Then, I changed to 
http://herb.wri.wolfram.com:8080/servlets-examples/servlet/HelloWorldExample

I can directly open helloworld site.

However, when I clear all the private data for both machines. I open 
first 
http://herb.wri.wolfram.com:8080/servlets-examples/servlet/HelloWorldExample, 
I can directly open it without asking me anything, then I open 
http://edwardcwin.wri.wolfram.com:8080/servlets-examples/servlet/HelloWorldExample,
 
it asks me cas login

What I understand is after I set up correctly, no matter which machine I 
open for helloworld, it should ask me cas login once, right?
It seems to me there is something wrong?? Can you help me fix it?


Thanks,

Edward

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to