我配置这个已经2天始终不行,有原先的一直报错,连http://localhost:8443/cas/login都进不去,到现在能进去了,也不报错了,可是链接不对,求各位大侠们帮帮我啊,我要疯了。。
web.xml配置如下:
<filter>
<filter-name>CASFilter</filter-name>
<filter-class>
edu.yale.its.tp.cas.client.filter.CASFilter
</filter-class>
<init-param>
<param-name>
edu.yale.its.tp.cas.client.filter.loginUrl
</param-name>
<param-value>
https://localhost:8443/cas/login
</param-value>
</init-param>
<init-param>
<param-name>
edu.yale.its.tp.cas.client.filter.validateUrl
</param-name>
<param-value>
https://localhost:8443/cas/proxyValidate
</param-value>
</init-param>
<init-param>
<param-name>
edu.yale.its.tp.cas.client.filter.serverName
</param-name>
<param-value>localhost:8080</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CASFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
我启动tomcat后,输入http://localhost:8080/test1/index.jsp,出现的链接是https://localhost:8443/cas/login?service=http%3A%2F%2Flocalhost%3A8080%2Ftest1%2Findex.jsp,提示不能链接到您请求的网页。此页可能暂时不可用。求解答,就100分都给了,帮忙啊。。

解决方案 »

  1.   

    直接输入https://localhost:8443/cas/
    形不行,如果这也不行,说明你cas的应用有问题,可能启动都失败了。
      

  2.   


    这个是可以的,就是转到那个链接后没显示CAS的登入界面,提示提示不能链接到您请求的网页。此页可能暂时不可用。
      

  3.   

    换个firefox或者其他浏览器试试
      

  4.   

    我用Chrome和IE测都不行,我现在是连着网的
      

  5.   

    搞个新jsp测试一下,如:
    http://localhost:8080/test1/index1.jsp
    这个应该不是服务器端的问题,完全是浏览器的问题。如果再出现那个提示F5刷新一下呢
      

  6.   

    真没辙了,换个cas应用的版本看看吧。我从来没出过这个错误。你应该看看firefox下的反应是什么
      

  7.   

    我已经换了4个版本了,就这个能通过http://localhost:8443/cas/login进入登入界面,其他都报错,怎么调都不行,听你的,我试试firefox,再不行,我要崩溃了。
      

  8.   

    安全连接失败

          
          

    用firefox出现下面错误:     
            
    连接localhost:8443时发生错误。SSL 接收到一个超出最大准许长度的记录。(错误码: ssl_error_rx_record_too_long)
      

  9.   

    <filter>
    <filter-name>CASFilter</filter-name>
    <filter-class>
    edu.yale.its.tp.cas.client.filter.CASFilter
    </filter-class>
    <init-param>
    <param-name>
    edu.yale.its.tp.cas.client.filter.loginUrl
    </param-name>
    <param-value>
    https://localhost:8443/cas/login
    </param-value>
    </init-param>
    <init-param>
    <param-name>
    edu.yale.its.tp.cas.client.filter.validateUrl
    </param-name>
    <param-value>
    https://localhost:8443/cas/proxyValidate
    </param-value>
    </init-param>
    <init-param>
    <param-name>
    edu.yale.its.tp.cas.client.filter.serverName
    </param-name>
    <param-value>localhost:8080www.cctv40.cn</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>CASFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    看了这样配置好像没问题啊,换个浏览器试试