Sso-cas Introduction (Java Edition)------deploying CAS server-side applications

Source: Internet
Author: User
Tags cas

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.