0
我們現在將代碼從JBoss 4.2 GA遷移到Wildfly 9.0.2。我在遷移登錄模塊屬性文件時遇到了一些麻煩,需要幫助。將登錄模塊配置從JBoss 4.2遷移到Wildfly 9
我們有使用的登錄模塊的應用程序,它有一個像配置:
<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]
我不確定這個錯誤信息的含義。誰能幫我?謝謝,海倫。