Forums de discussion

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

venka reddy, modifié il y a 10 années.

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

Regular Member Publications: 231 Date d'inscription: 23/03/11 Publications récentes
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, modifié il y a 10 années.

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

Liferay Master Publications: 549 Date d'inscription: 25/06/11 Publications récentes
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, modifié il y a 10 années.

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

Regular Member Publications: 158 Date d'inscription: 27/05/10 Publications récentes
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"