簡體   English   中英

將登錄模塊配置從JBoss 4.2遷移到Wildfly 9

[英]migrating login-module configuration from JBoss 4.2 to Wildfly 9

我們現在正在將代碼從JBoss 4.2 GA遷移到Wildfly 9.0.2。 我在遷移登錄模塊屬性文件時遇到了一些麻煩,需要幫助。

我們有一個使用登錄模塊的應用程序,其配置如下:

<application-policy name="staticcontent">
    <authentication>
        <login-module  code="org.jboss.security.auth.spi.UsersRolesLoginModule"                flag="required">
      <module-option name="usersProperties">staticcontent-users.properties</module-option>
      <module-option name="rolesProperties">staticcontent-roles.properties</module-option>
         </login-module>
    </authentication>
</application-policy>

現在遷移到WildFly,我們使用的是獨立模式,我將這兩個屬性文件放在/opt/jboss/standalone/configuration/ ,並將配置添加到standalone.xml如下所示:

    <subsystem xmlns="urn:jboss:domain:security:1.2">
        <security-domains>
            <security-domain name="my-auth">
                <authentication>
                    <login-module code="UsersRoles" flag="required">
                        <module-option name="usersProperties" value="${jboss.server.config.dir}/staticcontent-users.properties"/>
                        <module-option name="rolesProperties" value="${jboss.server.config.dir}/staticcontent-roles.properties"/>
                    </login-module>
                </authentication>
            </security-domain>
           ......

部署應用程序(稱為content.war ,它是瀏覽目錄)時,出現以下錯誤:

11:47:32,923 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) WFLYDS0004: Found content. war in deployment directory. To trigger deployment create a file called content.war.dodeploy
11:48:14,095 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "content.war" (runtime-name: "content.war")
11:48:16,980 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "content.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.undertow.deployment.default-server.default-host./content.UndertowDeploymentInfoService is missing [jboss.security.security-domain.staticcontent]"]}
11:48:17,034 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0010: Deployed "content.war" (runtime-name : "content.war")
11:48:17,035 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1)     WFLYCTL0183: Service status report
WFLYCTL0184:    New missing/unsatisfied dependencies:
  service jboss.security.security-domain.staticcontent (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./content.UndertowDeploymentInfoService]

我不確定此錯誤消息是什么意思。 誰能幫我? 謝謝,海倫。

感謝TT,他編輯了我的問題,使其更加清晰。

我從jboss大師那里得到了答案。 在我的配置中

<security-domain name="my-auth">

應該

<security-domain name="staticcontent">

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM