aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes java.lang.ClassNotFoundException: javax.mail.MessagingException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java.lang.ClassNotFoundException: javax.mail.MessagingException" Watch "java.lang.ClassNotFoundException: javax.mail.MessagingException" New topic
Author

java.lang.ClassNotFoundException: javax.mail.MessagingException

rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 50

Please help me to resolve this issue


And i got the exception says
java.lang.ClassNotFoundException: javax.mail.MessagingException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)


Regards,

RK
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

The JavaMail JAR file mail.jar is not on your class path.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 50

Thank you spoor,
I just added that jar file to build path.
But when i copied it to tomcat lib folder, it worked.
rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 50

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: javax.mail.MessagingException