現在、コードを JBoss 4.2 GA から Wildfly 9.0.2 に移行しています。login-module プロパティ ファイルの移行で問題が発生したため、助けが必要です。
次のような構成を持つ login-module を使用するアプリケーションがあります。
<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 に移行しており、スタンドアロン モードを使用しています。これら 2 つのプロパティ ファイルを の下に置き、次のよう/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]
このエラー メッセージの意味がわかりません。誰でも私を助けることができますか?ありがとう、ヘレン。