0

我正在使用 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>
4

1 回答 1

0

我在 \Jboss\modules\system\layers\base\org\jboss\common-core\main\jboss-common-4.2.2.GA.jar 和 module.xml 中添加了以下内容:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.5" name="org.jboss.common-core">
    <properties>
        <property name="jboss.api" value="private"/>
    </properties>
    <dependencies>
        <module name="javax.api"/>
    </dependencies>
    <resources>
        <resource-root path="jboss-common-4.2.2.GA.jar"/>
    </resources>
</module>

那个错误消失了,我现在还有其他错误......

于 2019-06-20T08:53:51.987 回答