我需要使用OpenAM J2EE Agent实现身份验证。我正在使用JBOSS v7.1.1。 J2EE Agent(3.1.0)的当前生产版本不支持JBOSS 7(除非实现了hacks)。因此,我使用社区网站上的3.2.0 SNAPSHOT版本在JBOSS 7.1.1上运行J2EE代理。我成功地运行了代理。代理拦截初始(即,当没有令牌存在时)请求并将其转发到OpenAM服务器。但是,成功登录后从OpenAM Server重定向失败,并在Agent DEBUG日志中记录以下消息。我的问题是,是否有人设法获得最新的3.2.0 SNAPSHOT版本在JBOSS 7上运行以及拦截请求和重定向是否正常工作。
amFilter:08/23/2013 10:54:48:229 AM EDT: Thread[http--0.0.0.0-9100-1,5,main]
ERROR: URLFailoverHelper: No URL is available at this time
amFilter:08/23/2013 10:54:48:230 AM EDT: Thread[http--0.0.0.0-9100-1,5,main]
ERROR: AmFilter: a server error occurred.
[AgentException Stack]
com.sun.identity.agents.arch.AgentServerErrorException: No URL is available at this time
at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:155)
at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:82)
at com.sun.identity.agents.filter.AmFilterRequestContext.getLoginURL(AmFilterRequestContext.java:835)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:294)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:267)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:413)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:395)
at com.sun.identity.agents.filter.SSOTaskHandler.doSSOLogin(SSOTaskHandler.java:268)
at com.sun.identity.agents.jboss.v40.AmJBossSSOTaskHandler.doSSOLogin(AmJBossSSOTaskHandler.java:76)
at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:110)
at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:194)
at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:157)
at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Thread.java:722)
Firefox浏览器抛出:302 MOVED TEMPORARILY。我相信它会陷入困境。