逝水乄流年
2017-09-01 07:56
采纳率: 42.9%
浏览 2.8k
已采纳

单点登录中 客户端登录认证中心后返回资源页报错500

HTTP Status 500 - Unable to create XMLReader
type Exception report

message Unable to create XMLReader

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.RuntimeException: Unable to create XMLReader
org.jasig.cas.client.util.XmlUtils.getXmlReader(XmlUtils.java:58)
org.jasig.cas.client.util.XmlUtils.getTextForElement(XmlUtils.java:130)
org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseResponseFromServer(Cas20ServiceTicketValidator.java:82)
org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:217)
org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:169)
org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:116)
org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)
root cause

org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230)
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)
org.jasig.cas.client.util.XmlUtils.getXmlReader(XmlUtils.java:56)
org.jasig.cas.client.util.XmlUtils.getTextForElement(XmlUtils.java:130)
org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseResponseFromServer(Cas20ServiceTicketValidator.java:82)
org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:217)
org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:169)
org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:116)
org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)
root cause

java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82)
org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228)
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)
org.jasig.cas.client.util.XmlUtils.getXmlReader(XmlUtils.java:56)
org.jasig.cas.client.util.XmlUtils.getTextForElement(XmlUtils.java:130)
org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseResponseFromServer(Cas20ServiceTicketValidator.java:82)
org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:217)
org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:169)
org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:116)
org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.30 logs.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • cloudyzhao 2017-09-01 08:58
    已采纳

    问题出在这 org.jasig.cas.client.util.XmlUtils.getXmlReader(XmlUtils.java:58)
    这个应该不是鉴权问题 你登录后直接访问这个页面试试

    点赞 打赏 评论
  • 崔伟 2017-09-01 08:36

    一个内部错误导致服务器冲突,具体是哪个内部错误,不知道。重启服务器,重新导入服务器,重启你用的有关软件,这些方法不用都做,只是有可能可以解决问题。你可以试几个,或者都试试,检查架包可导全,也可能是运行软件自身的问题。建议先保存项目,重启你的计算机,试一下。

    点赞 打赏 评论

相关推荐