【发布时间】:2013-09-07 07:07:05
【问题描述】:
在带有 maven 的 Eclipse 中,我添加了一个依赖项作为本地 jar 文件, 像这样:
<dependency>
<groupId>xyz-core</groupId>
<artifactId>xyz-core</artifactId>
<version>0</version>
<scope>system</scope>
<systemPath>/home/xyz/xyz-core.jar</systemPath>
</dependency>
在这个 jar 文件中,我有一个在我的应用程序中使用的界面。
当我在 tomcat 服务器上运行我的应用程序时,它显示该接口的异常
Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: com/mxgraph/canvas/mxICanvas2D
而mxICanvas2D 是一个接口。
【问题讨论】:
-
你应该添加一个完整的堆栈跟踪也是你的 spring 配置的相关部分