【发布时间】:2016-03-01 06:15:05
【问题描述】:
我正在使用 spring boot 1.3.3 和 Hazelcast 我的构建看起来像:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
<configuration>
<executable>true</executable>
<layout>ZIP</layout>
<embeddedLaunchScriptProperties>
<mode>service</mode>
<useStartStopDaemon>false</useStartStopDaemon>
</embeddedLaunchScriptProperties>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-all</artifactId>
<version>${hazelcast.version}</version>
</dependency>
当服务在 Linux 中执行时,我在日志中看到:
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/hazelcast/cluster/impl/operations/WanReplicationOperation
at org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1302) ~[spring-webmvc-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:977) ~[spring-webmvc-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
但我在胖罐子里看到 hazelcast-all.jar 有什么线索吗?
【问题讨论】:
-
stacktrace 提到 Spring 4.2.4,但 Spring Boot 1.3.3 使用 Spring 4.2.5。
标签: spring-boot hazelcast