无法在Jboss-eap-6.4

时间:2019-10-16 03:47:34

标签: java spring spring-boot jboss jboss6.x

在Jboss服务器中部署springboot应用程序时,我面临以下问题

在Jboss服务器中部署springboot应用程序所做的更改

  • 我在主班级中扩展了SpringBootServletInitializer

  • 从我的pom.xml中排除了spring-boot-starter-tomcat

版本详细信息

  • 春季启动版本2.1.8.RELEASE

  • JBoss服务器版本6.4

ErrorLog

08:09:21,934 ERROR [org.jboss.web] (ServerService Thread Pool -- 53) JBAS018202: Error calling onStartup for servlet container initializer: org.springframework.web.SpringServletContainerInitializer: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]: Factory method 'defaultValidator' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/ELManager
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) [spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456) [spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) [spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) [spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) [spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) [spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) [spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]

我已经在jboss服务器上验证了javax.el-api依赖关系( \ modules \ system \ layers \ base \ javax \ el \ api \ main \

1 个答案:

答案 0 :(得分:0)

似乎JBoss server 6.4不支持springBoot 2.1.8 RELEASE。当我将springboot版本降级到1.5.22 RELEASE时,我可以部署war文件。