There are 10 easy steps to remove/undeploy ext environment from Liferay Bundle
Step 0 : Stop Server / Tomcat Bundle
Step 1 : Go to the location "...\liferay-portal-*\tomcat-*\webapps\ROOT\WEB-INF and remove below files
> ext-*-*-ext.xml
> liferay-portlet-ext.xml
> portlet-ext.xml
> struts-config-ext.xml
> tiles-defs-ext.xml
Step 2: Go to the location "...\liferay-portal-*\tomcat-*\webapps\ROOT\WEB-INF\lib and remove below jar files
> ext-*-ext-impl.jar
> ext-*-ext-util-bridges.jar
> ext-*-ext-util-java.jar
> ext-*-ext-util-taglib.jar
Step 3: Go to the location "...\liferay-portal-*\tomcat-*\lib\ext and delete the below service jar
> ext-*-ext-service.jar
Step 4: Go to the location "...\liferay-portal-*\tomcat-*\webapps and delete the below folder
> *-ext
Step 5: Go to the location "...\liferay-portal-*\tomcat-*\webapps\ROOT\WEB-INF\classes / ...\liferay-portal-*\ and modify portal-ext.properties file
Note : 1) Need to check for any of the start up events like "application.startup.events="
2) Skip such events on server start up
Step 6: Remove "temp" and "work" folders from the location "liferay-portal-*\tomcat-*"
Step 7: Start tomcat bundle
Step 8: Put .war file of ext inside "deploy" folder and wait for below message on catalina.out
"Extension environment for *-ext has been applied. You must reboot the server and redeploy all other plugins."
Step 9: Uncomment any changes in portal-ext.properties file made in point #5
Step 10: Restart your server
All Done! Ext is removed/undeployed. Enjoy Coding.
Cheers!
Henal Saraiya
(Senior Consultant)
CIGNEX Datamatics
Here is the complete message we can see in catalina.out file after we put the war file inside "/deploy" folder.
ReplyDelete10:21:43,695 INFO [AutoDeployDir:167] Processing *-ext.war
10:21:45,977 INFO [ExtAutoDeployListener:43] Copying extension environment plugin for E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\deploy\*-ext.war
Expanding: E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\deploy\*-ext.war into E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\temp\20151211102146017
Copying 1 file to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\temp\20151211102146017\WEB-INF
Copying 1 file to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\temp\20151211102146017\WEB-INF\classes
Copying 1 file to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\temp\20151211102146017\WEB-INF\classes
Copying 1 file to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\temp\20151211102146017\WEB-INF
Copying 145 files to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\webapps\*-ext
Copied 168 empty directories to 13 empty directories under E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\webapps\*-ext
Copying 2 files to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\webapps\*-ext
Deleting directory E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\temp\20151211102146017
Dec 11, 2015 10:22:06 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\webapps\*-ext
10:22:07,101 INFO [ExtAutoDeployListener:50] Extension environment for E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\deploy\*-ext.war copied successfully. Deployment will start in a few seconds.
10:22:07,644 INFO [PluginPackageUtil:1026] Reading plugin package for *-ext
10:22:07,686 INFO [ExtHotDeployListener:234] Registering extension environment for *-ext
Copying 1 file to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\webapps\ROOT\WEB-INF
Copying 26 files to E:\Liferay Developer Studio 1.5\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\webapps\ROOT
10:22:10,306 INFO [ExtHotDeployListener:169] Extension environment for *-ext has been applied. You must reboot the server and redeploy all other plugins.