我想在我的新项目中使用spring boot但不想要它内置的tomcat服务器。我想使用jboss服务器。我已创建war文件但无法在jboss服务器上部署
我项目的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.prabhat.sample</groupId>
<artifactId>bootsample</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
</parent>
<properties>
<java.version>1.7</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>com.jolbox</groupId>
<artifactId>bonecp</artifactId>
<version>0.8.0.RELEASE</version>
</dependency>
</dependencies>
<build>
<finalName>bootsample</finalName>
</build>
</project>
我通过eclipse在我的jboss服务器上部署了war文件,它在启动服务器时显示异常
5:33:48,738 ERROR [org.jboss.msc.service.fail](MSC服务主题) 1-2)MSC00001:无法启动服务 。jboss.deployment.unit&#34; bootsample.war&#34; .WeldService: 服务中的org.jboss.msc.service.StartException 。jboss.deployment.unit&#34; bootsample.war&#34; .WeldService: com.google.common.collect.ComputationException: java.lang.ArrayIndexOutOfBoundsException:3 at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)at org.jboss.msc.service.ServiceControllerImpl $ StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]在java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]引起: com.google.common.collect.ComputationException: java.lang.ArrayIndexOutOfBoundsException:3 at com.google.common.collect.ComputingConcurrentHashMap $ ComputingMapAdapter.get(ComputingConcurrentHashMap.java:397) 在 org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149) 在 org.jboss.weld.introspector.jlr.WeldClassImpl。(WeldClassImpl.java:139) 在 org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118) 在 org.jboss.weld.resources.ClassTransformer $ TransformTypeToWeldClass.apply(ClassTransformer.java:49) 在 org.jboss.weld.resources.ClassTransformer $ TransformTypeToWeldClass.apply(ClassTransformer.java:40) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingValueReference.compute(ComputingConcurrentHashMap.java:355) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingSegment.compute(ComputingConcurrentHashMap.java:184) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153) 在 com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393) 在 org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149) 在 org.jboss.weld.introspector.jlr.WeldClassImpl。(WeldClassImpl.java:139) 在 org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118) 在 org.jboss.weld.resources.ClassTransformer $ TransformTypeToWeldClass.apply(ClassTransformer.java:49) 在 org.jboss.weld.resources.ClassTransformer $ TransformTypeToWeldClass.apply(ClassTransformer.java:40) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingValueReference.compute(ComputingConcurrentHashMap.java:355) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingSegment.compute(ComputingConcurrentHashMap.java:184) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153) 在 com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393) 在 org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149) 在 org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:86) 在 org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) 在 org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) 在 org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) 在org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)... 5更多引起:java.lang.ArrayIndexOutOfBoundsException:3 at org.jboss.weld.introspector.jlr.WeldConstructorImpl。(WeldConstructorImpl.java:103) 在 org.jboss.weld.introspector.jlr.WeldConstructorImpl.of(WeldConstructorImpl.java:66) 在 org.jboss.weld.introspector.jlr.WeldClassImpl。(WeldClassImpl.java:205) 在 org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118) 在 org.jboss.weld.resources.ClassTransformer $ TransformTypeToWeldClass.apply(ClassTransformer.java:49) 在 org.jboss.weld.resources.ClassTransformer $ TransformTypeToWeldClass.apply(ClassTransformer.java:40) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingValueReference.compute(ComputingConcurrentHashMap.java:355) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingSegment.compute(ComputingConcurrentHashMap.java:184) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153) 在 com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69) 在 com.google.common.collect.ComputingConcurrentHashMap $ ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393) ......还有32个