In eclipse with maven, I add the dependency as a local jar file, like this:
<dependency> <groupId>xyz-core</groupId> <artifactId>xyz-core</artifactId> <version>0</version> <scope>system</scope> <systemPath>/home/xyz/xyz-core.jar</systemPath> </dependency>
In this jar file, I have an interface that is used in my application.
When I run my application on the tomcat server, it shows an exception for this interface
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.NoClassDefFoundError: com/mxgraph/canvas/mxICanvas2D
and mxICanvas2D is the interface.
java spring eclipse maven
Prashant aggarwal
source share