title: How to resolve javax/mail/MessagingException?
body: <p>I am using eclipse indigo to run my tomcat server, when I am launching tomcat server, the tomcat server successfully up and running, but with error shown in the console.</p>
  
  <pre><code>ERROR  - ContextLoader[177]: Context initialization failed
  org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'com.huahsin68.MyBoc' defined in class path resource [my-spring.xml]: Class that bean class [com.huahsin68.MyBocImp] depends on not found; nested exception is java.lang.NoClassDefFoundError: javax/mail/MessagingException
  java.lang.NoClassDefFoundError: javax/mail/MessagingException
  </code></pre>
  
  <p>It seems like the MessagingException wasn't found. I have check in the Java Build Path > Libraries, I notice that javax.mail_1.4.0.v200105080615.jar was there. This jar file is locate under eclipse > plugins folder. Is there anything solution to rectify this problem?</p>
  
  <p>THanks @! </p>