This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 63

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,

Radhakrishna
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20078
    
  30

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


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

Joined: Jun 25, 2011
Posts: 63

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: 63

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20078
    
  30

 
Have you checked out Aspose?
 
subject: java.lang.ClassNotFoundException: javax.mail.MessagingException
 
It's not a secret anymore!