我有一个全新的Spring boot应用程序,我想将其部署到我现有的Jboss容器中,以将其升级为QA测试。 我在stackoverflow和其他网站中进行了搜索,并提出了一些建议。
更新了主应用程序类
@SpringBootApplication @组态 @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 弹簧启动启动器网站 org.springframework.boot 弹簧启动启动器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
<jboss-web> <context-root>/inventory-report</context-root> </jboss-web>
但是,当我构建应用程序时,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
任何人都可以找到我想念的东西吗?