3
respostas

JAVA EE - Erro ao subir Wildfly

Bom dia, ao subir o servidor Wildfly ele retorna os seguintes erros: Como poderia resolver?

ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (“deploy”) failed - address: ([(“deployment” => “casadocodigo.war”)]) - failure description: { “WFLYCTL0412: Required services that are not installed:” => [ “jboss.naming.context.java.jms.topics.checkoutsTopic”, “jboss.ra.activemq-ra”, “jboss.naming.context.java.jboss.DefaultJMSConnectionFactory” ],

“WFLYCTL0180: Services with missing/unavailable dependencies” => [ “jboss.deployment.unit.“casadocodigo.war”.component.GenerateInvoiceListener.CREATE is missing [jboss.ra.activemq-ra]”, “jboss.naming.context.java.module.casadocodigo.casadocodigo.env.“br.com.casadocodigo.loja.models.BroadcastCheckout”.checkoutsTopic is missing [jboss.naming.context.java.jms.topics.checkoutsTopic]”, “jboss.deployment.unit.“casadocodigo.war”.component.SendCheckoutEmailListener.CREATE is missing [jboss.ra.activemq-ra]”, “jboss.naming.context.java.module.casadocodigo.casadocodigo.DefaultJMSConnectionFactory is missing [jboss.naming.context.java.jboss.DefaultJMSConnectionFactory]” ],

“Services that may be the cause:” => [ “jboss.naming.context.java.jboss.DefaultJMSConnectionFactory”, “jboss.naming.context.java.jms.topics.checkoutsTopic”, “jboss.ra.activemq-ra”, “jboss.security.security-domain.other” ] } } 09:09:44,578 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (“add”) failed - address: ([ (“subsystem” => “messaging-activemq”), (“server” => “default”) ]) - failure description: { “WFLYCTL0412: Required services that are not installed:” => [“jboss.security.security-domain.other”], “WFLYCTL0180: Services with missing/unavailable dependencies” => [“jboss.messaging-activemq.default is missing [jboss.security.security-domain.other]”], “WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available.” => { “Services that were unable to start:” => [“jboss.messaging-activemq.default.jms.manager”], “Services that may be the cause:” => [ “jboss.naming.context.java.jboss.DefaultJMSConnectionFactory”, “jboss.naming.context.java.jms.topics.checkoutsTopic”, “jboss.ra.activemq-ra”, “jboss.security.security-domain.other” ] } }

3 respostas

Opa Sergio,

Que bug esse aí hein..

Parece que tem algumas dependências faltando aí no seu projeto, todas relacionadas com mensageria:

 [ 
    “jboss.naming.context.java.jms.topics.checkoutsTopic”,
    “jboss.ra.activemq-ra”, 
    “jboss.naming.context.java.jboss.DefaultJMSConnectionFactory” 
]

Talvez só o activemq no classpath do projeto já resolva.

Me parece problema de dependência

Não sei se aplica no seu caso , mas gosto bastante de usar a dependência do javaee (seja web ou full) para tentar simplificar o pom

javax javaee-api 8.0 provided

Outra coisa , me parece que vc está utilizando o activemq. Você pode dar uma olhada no curso https://www.alura.com.br/curso-online-jms

Oi Luan obrigado pelo retorno fiz o upload do activemq pelo maven reestartei o servidor mas os erros continuam

<dependency>
  <groupId>org.apache.activemq</groupId>
  <artifactId>activemq-all</artifactId>
  <version>5.15.7</version>
</dependency>

e também adicionei os outros 2 que faltavam segundo o erro apontado

<dependency>
    <groupId>org.jboss.as</groupId>
    <artifactId>jboss-as-naming</artifactId>
    <version>7.1.3.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.jboss.logging/jboss-logging -->
<dependency>
    <groupId>org.jboss.logging</groupId>
    <artifactId>jboss-logging</artifactId>
    <version>3.3.2.Final</version>
</dependency>

Estes são os erros que persistem: ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "casadocodigo.war")]) - failure description: { "WFLYCTL0412: Required services that are not installed:" => [ "jboss.naming.context.java.jms.topics.checkoutsTopic", "jboss.ra.activemq-ra", "jboss.naming.context.java.jboss.DefaultJMSConnectionFactory" ],

Esses são os arquivos apontados:

WFLYCTL0184: New missing/unsatisfied dependencies: service jboss.naming.context.java.jboss.DefaultJMSConnectionFactory (missing) dependents: [service jboss.naming.context.java.module.casadocodigo.casadocodigo.DefaultJMSConnectionFactory] service jboss.naming.context.java.jms.topics.checkoutsTopic (missing) dependents: [service jboss.naming.context.java.module.casadocodigo.casadocodigo.env."br.com.casadocodigo.loja.models.BroadcastCheckout".checkoutsTopic] service jboss.ra.activemq-ra (missing) dependents: [service jboss.deployment.unit."casadocodigo.war".component.SendCheckoutEmailListener.CREATE, service jboss.deployment.unit."casadocodigo.war".component.GenerateInvoiceListener.CREATE] service jboss.security.security-domain.other (missing) dependents: [service jboss.messaging-activemq.default]