Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao fazer deploy spring boot + postgresql + wildfly 8.2

Boa tarde, estou com problemas em fazer o deploy no wildfly, é relacionado ao postgresql porém criei o datasource e o teste de conexão deu sucesso, não sei o que pode ser, alguma dica?

Segue o erro do wildfly...

Obrigado!!

Failed to enable controle-caixa-0.0.1-SNAPSHOT.war.
Unexpected HTTP response: 500

Request
{
    "address" => [("deployment" => "controle-caixa-0.0.1-SNAPSHOT.war")],
    "operation" => "deploy"
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => {
        "JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host.\"/controle-caixa-0.0.1-SNAPSHOT\"" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host.\"/controle-caixa-0.0.1-SNAPSHOT\": Failed to start service
    Caused by: java.lang.RuntimeException: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'formContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method 'formContentFilter' threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.Module.getTypeId()Ljava/lang/Object;
    Caused by: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'formContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method 'formContentFilter' threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.Module.getTypeId()Ljava/lang/Object;
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'formContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method 'formContentFilter' threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.Module.getTypeId()Ljava/lang/Object;
    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method 'formContentFilter' threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.Module.getTypeId()Ljava/lang/Object;
    Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.Module.getTypeId()Ljava/lang/Object;"},
        "JBAS014879: 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.deployment.unit.\"controle-caixa-0.0.1-SNAPSHOT.war\".deploymentCompleteService"],
            "Services that may be the cause:" => ["jboss.jdbc-driver.org_postgresql_Driver"]
        }
    },
    "rolled-back" => true,
    "response-headers" => {"process-state" => "reload-required"}
}
1 resposta
solução!

Oi Julian, tudo bem?

O problema está aqui:

Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.Module.getTypeId()

Ou seja, você está tentando usar o método com.fasterxml.jackson.databind.Module.getTypeId(), porém em runtime ele não está sendo encontrado.

Dando uma olhada no github (link abaixo) dá pra ver que esse método existe na versão 2.5, mas não na versão 2.9.8, por exemplo.

https://github.com/FasterXML/jackson-databind/blob/2.8/src/main/java/com/fasterxml/jackson/databind/Module.java

Dá uma olhada no seu projeto, veja qual versão está no classpath, ajustando essa lib deve resolver :)

Abraço!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software