Защита WebApp с помощью WS в Wildfly 14JAVA

Программисты JAVA общаются здесь
Anonymous
Защита WebApp с помощью WS в Wildfly 14

Сообщение Anonymous »

Я пытаюсь настроить безопасность для веб -сервиса внутри уха.

Код: Выделить всё

[standalone@localhost:9990 /] /subsystem=elytron/http-authentication-factory=testHAF:query()
{
"outcome" => "success",
"result" => {
"available-mechanisms" => ["BASIC"],
"http-server-mechanism-factory" => "global",
"mechanism-configurations" => [{
"mechanism-name" => "BASIC",
"mechanism-realm-configurations" => [{"realm-name" => "TestDomain"}]
}],
"security-domain" => "TestSD"
}
}

[standalone@localhost:9990 /] /subsystem=undertow/application-security-domain=TestASD:query()
{
"outcome" => "success",
"result" => {
"enable-jacc" => false,
"http-authentication-factory" => "testHAF",
"override-deployment-config" => false,
"referencing-deployments" => undefined,
"security-domain" => undefined,
"setting" => undefined
}
}
< /code>
У меня есть война внутри уха.
TestASD

< /code>
и jboss-ejb3.xml: < /p>



< /code>
Но когда я развертываю ухо, я получаю ошибку, которая не найдена «jboss.security.security-domain.testasd».12:13:07,128 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ear-module-1.0-SNAPSHOT.ear")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.security.security-domain.TestASD"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.ws.endpoint.\"ear-module-1.0-SNAPSHOT.ear\".\"com.example-web-module-1.0-SNAPSHOT.war\".\"com.example.web.HelloWsWar\" is missing [jboss.security.security-domain.TestASD]",
"jboss.deployment.subunit.\"ear-module-1.0-SNAPSHOT.ear\".\"com.example-web-module-1.0-SNAPSHOT.war\".component.HelloBean.CREATE is missing [jboss.security.security-domain.TestASD]"
]
}
< /code>
Что я делаю не так? Tia < /p>
 обновление < /h3>
Оказывается, что если я удалю свой WS из войны, он работает, как и ожидалось. Но если я добавлю: < /p>
hellowsiface: < /p>
@WebService
public interface HelloWsWarIface {
public String echo(@WebParam(name = "parametro") @XmlElement(required = true) String parametro);
}
< /code>
hellowswar: < /p>
@WebService(endpointInterface = "com.example.web.HelloWsWarIface")
public class HelloWsWar implements HelloWsWarIface {

@WebMethod
@Override
public String echo(
@WebParam(name = "parametro") @XmlElement(required = true) String parametro) {
return "echo " + parametro;
}
}
начинает сбой при развертывании.

Подробнее здесь: https://stackoverflow.com/questions/797 ... wildfly-14

Вернуться в «JAVA»