gpt4 book ai didi

java - tomcat 的 OpenAm 代理无法读取 authservice url?

转载 作者:行者123 更新时间:2023-11-28 22:20:41 30 4
gpt4 key购买 nike

amAuthContext:02/12/2014 04:58:20:946 下午 CST:Thread[main,5,main]

错误:无法从服务器获取身份验证服务 url:null://null:null

我在“C:\tomcat_v6_agent\Agent_001\logs\debug”中找到了

而且我确定可以读取和访问的url,

她的是 OpenSSOAgentConfiguration.properties 中的设置

com.iplanet.am.server.protocol=http

com.iplanet.am.server.host=gordon.demo.com

com.iplanet.am.server.port=8080

它已经在我的 dns 配置中设置了。

现在我无法启动我的应用程序 tomcat,但 openam 在另一个可以正常工作的 tomcat 中。环境是test.demo.com 端口 8086 中的应用程序 tomcatgordon.demo.com 8080端口中的openam tomcat

然后登录tomcat就是这样

org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.StackOverflowError
at java.lang.String.indexOf(String.java:1698)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:272)
at sun.net.www.protocol.file.Handler.parseURL(Handler.java:67)
at java.net.URL.<init>(URL.java:614)
at java.net.URL.<init>(URL.java:482)
at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1034)
at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:1024)
at sun.misc.URLClassPath.findResource(URLClassPath.java:172)
at java.net.URLClassLoader$2.run(URLClassLoader.java:551)
at java.net.URLClassLoader$2.run(URLClassLoader.java:549)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:548)
at java.lang.ClassLoader.getResource(ClassLoader.java:1138)
at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:227)
at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:87)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:275)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:247)
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
at org.forgerock.util.xml.XMLUtils.getSafeDocumentBuilder(XMLUtils.java:52)
at com.sun.identity.shared.xml.XMLUtils.getSafeDocumentBuilder(XMLUtils.java:901)
at com.sun.identity.shared.xml.XMLUtils.toDOMDocument(XMLUtils.java:168)
at com.sun.identity.shared.xml.XMLUtils.toDOMDocument(XMLUtils.java:146)
at com.iplanet.services.comm.share.ResponseSetParser.<init>(ResponseSetParser.java:49)
at com.iplanet.services.comm.share.ResponseSet.parseXML(ResponseSet.java:118)
at com.iplanet.services.comm.client.PLLClient.send(PLLClient.java:214)
at com.iplanet.services.comm.client.PLLClient.send(PLLClient.java:95)
at com.iplanet.services.naming.WebtopNaming.getNamingTable(WebtopNaming.java:1156)
at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:1192)
at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:1109)
at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:696)
at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:621)
at com.iplanet.services.naming.WebtopNaming.updatePlatformServerIDs(WebtopNaming.java:1302)
at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:1226)
at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:1109)
at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:696)
at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:621)
at com.iplanet.services.naming.WebtopNaming.updatePlatformServerIDs(WebtopNaming.java:1302)
at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:1226)
at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:1109)
at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:696)
at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:621)
at com.iplanet.services.naming.WebtopNaming.updatePlatformServerIDs(WebtopNaming.java:1302)
at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:1226)
at

at .........

at com.iplanet.services.naming.WebtopNaming.updatePlatformServerIDs(WebtopNaming.java:1302)

最佳答案

你不必设置

com.iplanet.am.server.protocol=http

com.iplanet.am.server.host=gordon.demo.com

com.iplanet.am.server.port=8080

'错误:无法从服务器获取身份验证服务 url:null://null:null'

不是真正的错误,代理用于获取应用程序 token 的 AuthContext API 将回退以使用 OpenAM 的命名服务。

在 OpenSSOAgentBootstrap.property 中将调试级别设置为“消息”,它应该会告诉您失败的原因和原因。

关于java - tomcat 的 OpenAm 代理无法读取 authservice url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21723466/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com