私はSpringブート1.4.xを使用してWebサービスを開発しており、Java 6をサポートするWebsphere 8.5に展開しています。しかし、WASで戦争を展開すると、エラー。Springブート1.4.xに必要な最小Javaバージョン
スプリングブートのjar依存関係(spring-ws-core-2.3.1.RELEASE.jar)のように見えますが、Javaでコンパイルされたクラスがあります。以下のエラーが発生しています。
Spring Boot 1.4.xを使用するために必要な最小Javaバージョンは何ですか? 私の場合、上記の依存関係だけを下位バージョンに上書きすることは可能ですか?
エラー:
2/16/17 10:58:08:296 EST] 000000f2 CompositionUn E WSVR0194E: Composition unit WebSphere:cuname=testpp-1_0_0-SNAPSHOT_war in BLA WebSphere:blaname=testpp-1_0_0-SNAPSHOT_war failed to start.
[2/16/17 10:58:08:299 EST] 000000f2 MBeanHelper E Could not invoke an operation on object: WebSphere:name=ApplicationManager,process=server1,platform=proxy,node=MyNode,version=8.5.5.2,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=MyCell,spec=1.0 because of an mbean exception: com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: JVMCFRE003 bad major version&#59; class=org/springframework/ws/transport/http/support/AbstractMessageDispatcherServletInitializer, offset=6
[2/16/17 10:58:08:299 EST] 000000f2 SystemErr R com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: JVMCFRE003 bad major version&#59; class=org/springframework/ws/transport/http/support/AbstractMessageDispatcherServletInitializer, offset=6
[2/16/17 10:58:08:300 EST] 000000f2 SystemErr R at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:432)
[2/16/17 10:58:08:300 EST] 000000f2 SystemErr R at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
[2/16/17 10:58:08:300 EST] 000000f2 SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1177)
[2/16/17 10:58:08:300 EST] 000000f2 SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
[2/16/17 10:58:08:300 EST] 000000f2 SystemErr R at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
[2/16/17 10:58:08:300 EST] 000000f2 SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
POMの設定
testap デモプロジェクト春用のブート
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.6</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
確認していただきありがとうございます。私たちがSpring Boot 1.4を使用する場合は、常にJava 7を使用することをお勧めします。 – springbootlearner