title: HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError:
body: <p>I'm trying to integrate external jar file into my project. (mambu-models-V3.8.10.jar)</p>
  
  <p>But I receive such error message:</p>
  
  <pre><code>HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/mambu/loans/shared/model/LoanAccount    
  
  
  org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/mambu/loans/shared/model/LoanAccount
  org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1287)
  org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)
  org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
  org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)    
  </code></pre>
  
  <p>root cause:</p>
  
  <pre><code>java.lang.ClassNotFoundException: com.mambu.loans.shared.model.LoanAccount
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
  java.lang.Class.getDeclaredMethods0(Native Method)
  java.lang.Class.privateGetDeclaredMethods(Class.java:2688)
  java.lang.Class.getDeclaredMethods(Class.java:1962)
  com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:662)
  com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:356)
  com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:151)
  com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:585)
  com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:543)
  com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:529)
  com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:847)
  com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:772)
  com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:256)
  com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:205)
  com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:853)
  com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:967)
  com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1000)
  com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:961)
  com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
  com.mambu.apisdk.MambuAPIFactory.getLoanService(MambuAPIFactory.java:86)
  comm.app.starter.HomeController.Opaaaaana(HomeController.java:167)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  java.lang.reflect.Method.invoke(Method.java:483)
  org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
  org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
  org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
  org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
  org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
  org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
  org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
  org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)    
  </code></pre>
  
  <p>Here is my POM xml:</p>
  
  <p>http://maven.apache.org/maven-v4_0_0.xsd">
      4.0.0
      com.springapp
      kapiv2
      war
      1.0-SNAPSHOT
      kapi</p>
  
  <pre><code>&lt;properties&gt;
      &lt;spring.version&gt;4.1.1.RELEASE&lt;/spring.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.mambu&lt;/groupId&gt;
          &lt;artifactId&gt;mambumodels&lt;/artifactId&gt;
          &lt;version&gt;3.8.10&lt;/version&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;systemPath&gt;${project.basedir}/lib/mambu-models-V3.8.10.jar
          &lt;/systemPath&gt;
          &lt;optional&gt;false&lt;/optional&gt;
      &lt;/dependency&gt;
     &lt;!-- &lt;dependency&gt;
          &lt;groupId&gt;com.cenqua.clover&lt;/groupId&gt;
          &lt;artifactId&gt;clover&lt;/artifactId&gt;
          &lt;version&gt;3.0.2&lt;/version&gt;
      &lt;/dependency&gt;--&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
          &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
          &lt;version&gt;4.2.1&lt;/version&gt;
          &lt;optional&gt;false&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
          &lt;artifactId&gt;gson&lt;/artifactId&gt;
          &lt;version&gt;1.7.1&lt;/version&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
          &lt;optional&gt;false&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
          &lt;version&gt;1.3.2&lt;/version&gt;
          &lt;optional&gt;false&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.jdo&lt;/groupId&gt;
          &lt;artifactId&gt;jdo-api&lt;/artifactId&gt;
          &lt;version&gt;3.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.inject&lt;/groupId&gt;
          &lt;artifactId&gt;guice&lt;/artifactId&gt;
          &lt;version&gt;3.0&lt;/version&gt;
          &lt;optional&gt;false&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mockito&lt;/groupId&gt;
          &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
          &lt;version&gt;1.8.5&lt;/version&gt;
          &lt;optional&gt;false&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
          &lt;artifactId&gt;gwt-dev&lt;/artifactId&gt;
          &lt;version&gt;2.7.0&lt;/version&gt;
      &lt;/dependency&gt;
     &lt;!-- &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
          &lt;artifactId&gt;gwt-user&lt;/artifactId&gt;
          &lt;version&gt;1.5.3&lt;/version&gt;
      &lt;/dependency&gt;--&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
          &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
          &lt;version&gt;2.2.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.mail&lt;/groupId&gt;
          &lt;artifactId&gt;mail&lt;/artifactId&gt;
          &lt;version&gt;1.4.5&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.11&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;finalName&gt;kapi&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>There are a lot of results in google if you search NoClassDefFoundError - but none of them hellped me.</p>
  
  <p>could you please tell me why I receive such error?
  thanks</p>