With the previous foundation, you can now start the deployment of the CAS server side.
First you can go to http://www.jasig.org/cas/download. Download the latest server and client side of CAs
Here we are downloading Cas-server-3.4.2-release.zip and cas-client-3.1.1-release.zip.
After downloading is a compressed package, decompression after a heap of documents, but only the most core CAS jar package
The required jar packs are managed with MAVEN and need to be installed and then downloaded from the maven.apache.org.
MAVEN is easy to use, but I feel awkward,
Download it and have to rebuild the project to conform to the structure of MyEclipse Web project, the Cup ...
Less gossip, after the decompression is completed the directory structure is:
What we need is all the Java source programs in the Cas-server-core/src/main/java directory,
Deployed in the/SRC directory.
And all the things under the Cas-server-webapp/src/main/webapp,
Deployed in the/webroot directory.
Note that the files in the Cas-server-webapp/src/main/webapp/web-inf/classes directory should be placed under the SRC directory of the WEB project
Complete the download of all jar packages and deploy them directly to Tomcat when you are done.
Startup will output a lot of console and log information,
Note that there are no exceptions. In general, there is no exception information, if there are exception information,
Self-resolved:)
The last line of Applicationcontext.xml is to be noted
<!--the scheduler bean wires up any triggers that define scheduled tasks-->
<!--Bean id= "Scheduler" class= "Org.jasig.cas.util.AutowiringSchedulerFactoryBean"/-->
I've already commented this out.
The CAS source program unexpectedly does not have this Java class, does not know what meaning ...
After startup, I found no
Or give me a message, hehe.
Browser address bar input Https://localhost:8443/casserver/login after startup
This time will pop up a security Certificate prompt dialog box (Firefox words directly say that this address is problematic, do not care, to join the list of trusted sites)
If there is no hint or the page is inaccessible, please see my other article
Http://blog.csdn.net/yaoweijq/archive/2010/10/19/5951883.aspx
How to set up SSL.
The default landing page for CAS appears:
Ok,cas Server side Setup succeeded.
The default login authentication logic is the same username and password,
Let ' s gogogo!