title: Spring Integration - ClassNotFoundException in Websphere
body: <p>A spring integration project worked correctly locally in Eclipse / Tomcat.</p>
  
  <p>When deploying to Websphere, I get classloader issues from the Spring Integration classes:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org.springframework.integration.message.ErrorMessage
      at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:83)
      at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:55)
      at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
      at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:1178)
      at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:199)
      at com.ibm.ws.asynchbeans.CJWorkItemImpl.run(CJWorkItemImpl.java:236)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1700)
  Caused by: java.lang.ClassNotFoundException: org.springframework.integration.message.ErrorMessage
      at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
      at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:204)
      at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:699)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:678)
      at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:119)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:661)
      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
      at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:598)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:661)
      at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:566)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:661)
      ... 7 more
  </code></pre>
  
  <p>It looks like the application is actually working, but outputting these errors, but I don't like the idea of it.</p>
  
  <p>All spring jars are in my classpath. I tried changing the classloader to Parent_Last but got some other issues</p>
  
  <p>Are there any additional settings needed for Websphere?</p>