---
title: "The CAS server returned no response. "
author: "xls"
date: "2012-03-19T13:32:28Z"
tags: []
categories: ["开源软件"]
slug: "the-cas-server-returned-no-response"
draft: false
lastmod: "2012-03-19T13:32:28Z"
id: 1457485
url: "https://xls.iteye.com/blog/1457485"
---

在部署CAS服务器时 

很可能遇到 The CAS server returned no response. 

但直接登录IP:端口/cas访问缺能访问到cas 

这一定是配置文件中IP地址设置有问题 

系统中涉及到地址的位置有： 

CAS目录： 
cas.properties 域名 
uniqueIdGenerators.xml 域名 
casDataSource.xml  数据库 

应用目录 
springdatasource.xml 数据库 
springseruity.xml 域名 

以及对应的plf的jar包中的这两个问题 
springdatasource.xml 数据库 
springseruity.xml 域名 


当然，最后发现时因为系统无法访问外网导致的 
由于在系统中配置的是个外网IP,以前从来没有遇到过 
**最后暂时先在hosts里面配了IP**，可能实际需要研究如何Linux上网才算完全解决


hosts文件配置
202.111.111.111      sso.xxx.edu.cn