1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[JBoss] .Create is missing - deployment to WildFly server

Discussão em 'StackOverflow' iniciado por Stack, Setembro 14, 2021.

  1. Stack

    Stack Membro Participativo

    I get the following output, when i try to deploy my web-application Testmodule to the Wildfly server. I was trying to configure a security module, i.e. a user authentication before getting to the application.

    Usages:
    Hibernate 2.1
    Wildfly Server 8.2

    Console output:

    13:11:22,311 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "Testmodule.war")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [
    "jboss.undertow.deployment.default-server.default-host./Testmodule.UndertowDeploymentInfoService is missing [jboss.security.security-domain.secureDomain]",
    "jboss.deployment.unit.\"Testmodule.war\".component.DatenManager.CREATE is missing [jboss.security.security-domain.secureDomain]"]}


    jboss-web.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
    <security-domain>secureDomain</security-domain>
    </jboss-web>


    web.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>HtmlAuth</web-resource-name>
    <description>application security constraints</description>
    <url-pattern>/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>PUT</http-method>
    <http-method>DELETE</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>admin</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Sample Realm</realm-name>
    </login-config>
    <security-role>
    <role-name>admin</role-name>
    </security-role>
    </web-app>


    standalone.xml:

    ...
    <security-domain name="secureDomain" cache-type="default">
    <authentication>
    <login-module flag="required" code="Database">
    <module-option name="dsJndiName" value="java:/dbexample"/>
    <module-option name="principalsQuery" value="select passwd from wildfly_users where username=?"/>
    <module-option name="rolesQuery" value="select role, 'Roles' from wildfly_userroles where username=?"/>
    </login-module>
    </authentication>
    </security-domain>
    ...


    I tried to replicate the example in this book, but it fails with the above error. I am a total greenhorn with Wildfly and its configuration, would be helpful if someone could tell me what the error means, why it occurs and how to fix it. Thank you!

    Continue reading...

Compartilhe esta Página