我有一个全新的Spring启动应用程序,我想将它部署到我现有的Jboss容器中,以促进它进行QA测试 . 我在谷歌搜索和其他网站中提到的谷歌搜索并提出了一些建议 .

  • 更新了主应用程序类

@SpringBootApplication @Configuration @ComponentScan @EnableAutoConfiguration公共类InventoryReportApplication扩展SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(InventoryReportApplication.class);
}

public static void main(String[] args) {
    SpringApplication.run(InventoryReportApplication.class, args);
}

}

  • 更新了pom.xml

org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-tomcat javax.servlet javax.servlet-api 3.1.0提供

删除

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
  • 已添加

server.servlet.path = / *

application.properties

  • 添加了webapp / WEB-INF / jboss-web.xml

<jboss-web>

<上下文根> /库存报告</上下文根>
</ JBoss的幅>

但是,当我构建应用程序时,WAR已成功打包,但将其部署到jboss会产生以下错误 .

Unexpected HTTP response: 500 Request { "operation" => "add", "address" => [ ("server-group" => "main-server-group"), ("deployment" => "inventory-report") ], "runtime-name" => "inventory-report.war", "enabled" => true } 

Response Internal Server Error { 
    "outcome" => "failed", 
    "result" => undefined, 
    "failure-description" => {
        "WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => {
            "server-group" => {
                "main-server-group" => {
                    "host" => {
                        "mms-rules-master" => {
                            "mmsrules1" => {
                                "WFLYCTL0080: Failed services" => {
                                    "jboss.undertow.deployment.default-server.default-host./inventory-report" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./inventory-report: 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 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class 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 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "rolled-back" => true, "server-groups" => {"main-server-group" => {"host" => {"mms-rules-master" => {"mmsrules1" => {"response" => { "outcome" => "failed", "failure-description" => {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./inventory-report" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./inventory-report: 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 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class 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 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class Caused by: java.lang.VerifyError: Failed to link com/fasterxml/jackson/databind/type/ReferenceType (Module \"deployment.inventory-report.war:main\" from Service Module Loader): Cannot inherit from final class"}}, "rolled-back" => true }}}}}} 
}

我的jboss是7.0.9

任何人都可以帮忙找到我错过的东西吗?