Fórumok

MailEngine: "NestableException" Not Found [Resolved]]

Manuel M, módosítva 13 év-val korábban

MailEngine: "NestableException" Not Found [Resolved]]

New Member Bejegyzések: 24 Csatlakozás dátuma: 2010.08.11. Legújabb bejegyzések
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.
Manuel M, módosítva 13 év-val korábban

RE: MailEngine: "NestableException" Not Found

New Member Bejegyzések: 24 Csatlakozás dátuma: 2010.08.11. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: MailEngine: "NestableException" Not Found

Junior Member Bejegyzések: 48 Csatlakozás dátuma: 2011.01.25. Legújabb bejegyzések
Thanks for posting the solution, you just saved me a lot of head scratching!
Vaibhav Mittal, módosítva 11 év-val korábban

RE: MailEngine: "NestableException" Not Found

Junior Member Bejegyzések: 54 Csatlakozás dátuma: 2012.07.16. Legújabb bejegyzések
This solution worked for me as well. Thnxx
Alex S, módosítva 11 év-val korábban

RE: MailEngine: "NestableException" Not Found

New Member Bejegyzések: 9 Csatlakozás dátuma: 2012.08.28. Legújabb bejegyzések
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.