Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Man M
MailEngine: "NestableException" Not Found [Resolved]]
October 28, 2010 1:53 AM
Answer

Man M

Rank: New Member

Posts: 24

Join Date: August 11, 2010

Recent Posts

Hello,

I am using Liferay 6 with tomcat 6.0.5.

I want to use a send-email method of MailEngine (com\liferay\util\mail) and surrounded it with a try/catch Block.

try {MailEngine.send(from, to, subject, body);
}catch (MailEngineException e) {
e.printStackTrace();
}


When I want to deploy it, I get the following Exception: com.liferay.portal.kernel.deploy.hot.HotDeployException
because of

java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableException

Does anyone know why NestableException Class can't be found and what to do, to solve that problem.

Thanks for any help.

Regards.
Man M
RE: MailEngine: "NestableException" Not Found
October 28, 2010 1:53 AM
Answer

Man M

Rank: New Member

Posts: 24

Join Date: August 11, 2010

Recent Posts

I have found the solution.

You had to copy the commons-lang.jar-File into your portlet in the following folder: $\docroot\WEB-INF\lib\ and then it works.
You will find the commons-lang.jar-File in that folder: $\webapps\ROOT\WEB-INF\lib\
of your tomcat.

Now, the NestableException Class can be found and you can deploy your portlet.


Regards.
Jonny Olliff-Lee
RE: MailEngine: "NestableException" Not Found
June 16, 2011 7:33 AM
Answer

Jonny Olliff-Lee

Rank: Junior Member

Posts: 48

Join Date: January 25, 2011

Recent Posts

Thanks for posting the solution, you just saved me a lot of head scratching!
Vaibhav Mittal
RE: MailEngine: "NestableException" Not Found
December 7, 2012 6:55 AM
Answer

Vaibhav Mittal

Rank: Junior Member

Posts: 54

Join Date: July 16, 2012

Recent Posts

This solution worked for me as well. Thnxx
Alex S
RE: MailEngine: "NestableException" Not Found
December 10, 2012 6:18 AM
Answer

Alex S

Rank: New Member

Posts: 4

Join Date: August 28, 2012

Recent Posts

Worth noting I imagine, certainly with the version on LifeRay IDE I'm running, the JAR that exists in the plugins directory for commons.lang doesn't contain this Exception class (org.apache.commons.lang_2.1.0.v201005080500.jar). I ended up downloading straight from the Apache site, and even then, the latest (v3.1) doesn't contain the Exception class either, I needed to get the 2.6 JAR.