CAS的那些错误异常

客户端没有证书

org.jasig.cas.client.util.CommonUtils 2016-09-22 14:01:34,623    -- ERROR -- sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

通过拷贝服务端证书进行客户端导入来解决

cd /Java/jdk1.6.0_24
$ keytool -import -keystore jre/lib/security/cacerts -file keys/keystorecas.crt -alias mytomcatcas

服务端返回的内容带有中文信息

org.xml.sax.SAXParseException: The element type "cas:username" must be terminated by the matching end-tag "".

解决方法:

检查编码问题

注意:一定要添加到cas filter前面

你可能感兴趣的:(CAS的那些错误异常)