我正在使用 Red Hat JBoss Enterprise Application Platform - 版本 7.1.0.GA 并尝试使用 picketlink 2.7.1.Final 导致 org.jboss.modules.ModuleLoadError。
所以,我在standalone.xml中添加了
<extension module="org.wildfly.extension.picketlink"/>
然后用给我的蚂蚁运行了 picketlink-installer-2.7.1.Final:BUILD SUCCESSFUL,当我尝试用 jboss 启动我的应用程序时,我得到一个:
WARN [org.jboss.modules] (ServerService Thread Pool -- 31) Failed to define class org.picketlink.identity.federation.web.handlers.saml2.SAML2IssuerTrustHandler in Module "org.picketlink.federation" from local module loader @58134517 (finder: local module finder @4450d156 (roots: D:\Jboss\bin\..\modules,D:\Jboss\bin\..\modules\system\layers\base)): org.jboss.modules.ModuleLoadError: org.jboss.common-core
我添加了带有处理程序的 picketlink.xml 文件:
<Handlers xmlns="urn:picketlink:identity-federation:handler:config:2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:picketlink:identity-federation:handler:config:2.1 ">
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2IssuerTrustHandler" />
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler"/>
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler"/>
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.RolesGenerationHandler"/>
</Handlers>