您好,使用CAS,登录后报错: CAS is Unavailable,求问该怎么解决?

CAS is Unavailable
There was an error trying to complete your request. Please notify your support desk or try again. 
Tomcat 后台报错:
2011-3-9 16:47:33 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet cas threw exception
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials
]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3041)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2789)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2703)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:293)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)

at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
va:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)



智慧大石
浏览 2933回答 2
2回答

慕神8447489

使用CAS,登录后报错: CAS is Unavailable是登录错误造成的,解决方法为:1、首先我在GitHub上下载最新的cas的overlays利用它来搭建一套maven工程。2、紧接着,我们配置成maven项目,点击maven的package,打包成一个cas服务端的war包。3、把生成的war包放到Tomcat的webapps目录即可,然后配置Tomcat的server.xml开启8443端口,需要使用JDK自带的keytool生成证书。4、最后我们点击Tomcat的bin目录然后就可以启动cas服务端了。5、最后发现已经登陆成功了,如下图所示。

UYOU

我之前也碰到过这个问题:后来发现是连接数据库的时候连接错了,我看你是连ldap的吧,检查一下连接是否有问题
打开App,查看更多内容
随时随地看视频慕课网APP