我们已对openam和adfs设置进行了所有必要的更改,并使用此链接:https://wikis.forgerock.org/confluence/display/openam/OpenAM+and+ADFS2+configuration作为我们的参考,但是当我们从adfs网络测试我们的设置时,我们遇到以下异常:
输入例外报告
消息
description服务器遇到内部错误(),导致无法完成此请求。
例外
javax.servlet.ServletException:AMSetupFilter.doFilter com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:117) 根本原因
org.apache.jasper.JasperException:在第158行处理JSP页面/saml2/jsp/spAssertionConsumer.jsp时发生异常
155:se.getMessage()); 156:回归; 157:} 158:respInfo = SPACSUtils.getResponse( 159:request,response,orgName,hostEntityId,metaManager); 160: 161:String ecpRelayState = respInfo.getRelayState();
堆栈跟踪: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91) 根本原因
javax.servlet.ServletException:com.sun.identity.saml2.common.SAML2Exception:java.security.PrivilegedActionException:com.sun.xml.messaging.saaj.SOAPExceptionImpl:消息发送失败 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779) org.apache.jsp.saml2.jsp.spAssertionConsumer_jsp._jspService(spAssertionConsumer_jsp.java:360) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91) 根本原因
com.sun.identity.saml2.common.SAML2Exception:java.security.PrivilegedActionException:com.sun.xml.messaging.saaj.SOAPExceptionImpl:消息发送失败 com.sun.identity.saml2.profile.SPACSUtils.getResponseFromArtifact(SPACSUtils.java:417) com.sun.identity.saml2.profile.SPACSUtils.getResponseFromGet(SPACSUtils.java:282) com.sun.identity.saml2.profile.SPACSUtils.getResponse(SPACSUtils.java:174) org.apache.jsp.saml2.jsp.spAssertionConsumer_jsp._jspService(spAssertionConsumer_jsp.java:183) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91) note备注根本原因的完整堆栈跟踪在Apache Tomcat / 6.0.14 logs中可用。
请允许任何人帮助我解决此异常并告诉我它在设置中的错误以及解决此问题的可能解决方案。
提前致谢,
答案 0 :(得分:1)
OpenAM无法向ADFS端点发送SOAP消息,因为JVM信任库设置不正确。如果您没有在ADFS上使用HTTPS,那么可能某些网络组件阻止了从OpenAM到ADFS的流量。检查联合调试日志以获取更多详细信息。