Foros de discusión

Difference in putting lib in tomcat/lib and tomcat/ext

venka reddy, modificado hace 10 años.

Difference in putting lib in tomcat/lib and tomcat/ext

Regular Member Mensajes: 231 Fecha de incorporación: 23/03/11 Mensajes recientes
Hi,

What is the difference in placing the libs in below folders

1. tomcat/lib and
2. tomcat/lib/ext

I have seen by default some liferay libs are in the both folders.
thumbnail
Krzysztof Gołębiowski, modificado hace 10 años.

RE: Difference in putting lib in tomcat/lib and tomcat/ext

Liferay Master Mensajes: 549 Fecha de incorporación: 25/06/11 Mensajes recientes
Hello Venka,
Liferay public API jar (portal-service.jar) and its dependencies are always kept in tomcat/lib/ext. It is well described in "Installing Liferay on Tomcat" guide (https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen11-installing-liferay-on-tomcat-7-0). These classes can be used both from main Liferay context and from all other plugins (portlets, hooks).

I don't think you need to put anything to tomcat/lib directory, it is a place for tomcat/servlet specific stuff.

Regards,
KG
thumbnail
Kamesh Sampath, modificado hace 10 años.

RE: Difference in putting lib in tomcat/lib and tomcat/ext

Regular Member Mensajes: 158 Fecha de incorporación: 27/05/10 Mensajes recientes
venka reddy:
Hi,

What is the difference in placing the libs in below folders

1. tomcat/lib and
2. tomcat/lib/ext

I have seen by default some liferay libs are in the both folders.

its as simple as to keep "keep liferay specific libraries from tomcat core libraries"