Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dependencies openam J2EE策略代理-ServerEntryNotFoundException:找不到服务器ID_Dependencies_Jboss7.x_Noclassdeffounderror_Openam_Jboss Modules - Fatal编程技术网

Dependencies openam J2EE策略代理-ServerEntryNotFoundException:找不到服务器ID

Dependencies openam J2EE策略代理-ServerEntryNotFoundException:找不到服务器ID,dependencies,jboss7.x,noclassdeffounderror,openam,jboss-modules,Dependencies,Jboss7.x,Noclassdeffounderror,Openam,Jboss Modules,我有一个openAM应用程序在Tomcat7上运行。 在我的JBoss服务器上,有一个受OpenAM保护的应用程序,在访问任何受保护的资源时,我会收到以下错误消息: Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.identity.agents.filter.AmFilterManager at com.sun.identity.agents.filter.AmAgentBaseF

我有一个openAM应用程序在Tomcat7上运行。 在我的JBoss服务器上,有一个受OpenAM保护的应用程序,在访问任何受保护的资源时,我会收到以下错误消息:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.identity.agents.filter.AmFilterManager
    at com.sun.identity.agents.filter.AmAgentBaseFilter.initializeFilter(AmAgentBaseFilter.java:270) [agent.jar:4.0.0-SNAPSHOT - 20140502-0259]
    ... 16 more
此类属于我在Jboss上安装的Web策略代理,该代理创建了一个声明以下依赖项的:

    <dependencies>
      <module name="javax.servlet.api" />
      <module name="javax.api" />
      <module name="javax.xml.bind.api" />
      <module name="javax.ejb.api" />
      <module name="org.picketbox" />
    </dependencies>

问题是,当我在安装openAM后创建默认配置时,我通过localhost:8181而不是openAM.example.com:8181访问了openAM服务器


因此openAM自动创建了一个名为localhost:8181/openAM的服务器配置。这些配置可以在管理控制台的“配置”>“服务器和站点”下找到。

您不应该使用“localhost”安装OpenAM,至少应该使用/etc/hosts条目为其伪造FQDN。您能告诉我OpenAM在哪里存储其配置吗?我想我也遇到了类似的情况(我无法访问UI)。
ERROR: WebtopNaming.getServerId():serverId null for server: http://openam.example.com:8181/openam
amNaming:12/04/2014 03:55:37:027 PM CET: Thread[SystemTimer,5,main]
ERROR: WebtopNaming.getServerId()
com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server ID.
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:757)
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:654)
    at com.iplanet.services.naming.WebtopNaming$SiteMonitor.checkAvailableSiteList(WebtopNaming.java:1738)
    at com.iplanet.services.naming.WebtopNaming$SiteMonitor.runCheckValidSite(WebtopNaming.java:1713)
    at com.iplanet.services.naming.WebtopNaming$SiteMonitor.run(WebtopNaming.java:1706)
    at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:434)