博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CAS实战の遇到的问题
阅读量:7003 次
发布时间:2019-06-27

本文共 3419 字,大约阅读时间需要 11 分钟。

  1、客户端启动报错,报错信息如下:

严重: Exception starting filter CAS Single Sign Out Filterjava.lang.IllegalArgumentException: casServerUrlPrefix cannot be null.    at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:80)    at org.jasig.cas.client.session.SingleSignOutHandler.init(SingleSignOutHandler.java:142)    at org.jasig.cas.client.session.SingleSignOutFilter.init(SingleSignOutFilter.java:58)    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)    at org.apache.catalina.core.ApplicationFilterConfig.
(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4830) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5510) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

  再确定web.xml文件casServerUrlPrefix配置无误之后,很可能的原因是cas client core版本不对。

  2、如发现cas client配置都没问题后,发现客户端A与客户端B之间的跳转需要再登录,很可能问题存在于ticketGrantingTicketCookieGenerator.xml:

Defines the cookie that stores the TicketGrantingTicket. You most likely should never modify these (especially the "secure" property). You can change the name if you want to make it harder for people to guess.

  p:cookieSecure默认为true,不妨改为fasle试一试。

  3、当在cas server登录成功后,准备往客户端跳转,突然发现浏览器空白,且浏览器输入地址栏出现类似http://localhost:8008/j1-center/?ticket=ST-1-51PDs4kgv5XpOW7Vab91-cas01.example.org路径的时候,很有可能是标红的路径配置错误。

CASFilter
org.jasig.cas.client.authentication.AuthenticationFilter
com.founder.ec.sso.filter.CASFilter
casServerLoginUrl
http://localhost:8082/cas/login
serverName
http://localhost:8008/
CASFilter
/*
CAS Validation Filter
org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter
casServerUrlPrefix
http://localhost:8082/cas/
serverName
http://localhost:8008/
CAS Validation Filter
/*

  4、当客户端页面出现:页面报500的时候,很有可能出现的原因还是在cas client web.xml中cas server路径配置错误,如问题3。

  

  

  

转载于:https://www.cnblogs.com/tomcatx/p/4585180.html

你可能感兴趣的文章
QTP自动化测试自学手册V2.0版本
查看>>
80后收入是怎样一个水平?看完网友工资单,对不起 拖大家内裤了
查看>>
有关软件测试的五大谣言
查看>>
find(2)
查看>>
jquery-1.4.4.min.js无法解析json中result.data问题
查看>>
php字符串大小写转换
查看>>
linux怎么不输入路径直接运行程序脚本
查看>>
日志信息log
查看>>
扩大VMware虚拟机中CentOS 7的硬盘空间
查看>>
BZOJ2005:[NOI2010]能量采集(莫比乌斯反演,欧拉函数)
查看>>
前端工程师的价值
查看>>
Springboot如何利用http请求控制器
查看>>
node.js中的http.response.end方法使用说明
查看>>
会议2.1
查看>>
zzuli OJ 1905: 小火山的跳子游戏 【GCD】
查看>>
Asp.Net 常用代码-备用
查看>>
Android Studio代码调试大全
查看>>
记一次virtualbox和夜神模拟器冲突的问题
查看>>
面向对象之多态、多态性
查看>>
简单标签-JspFragment和invoke()方法
查看>>