tham khảo http://www.liferay.com/community/wiki/-/wiki/Main/Ext+Plugin
http://btnkumar.blogspot.com/2010/09/deploymentundeployment-with-ext-plugins.html
*** deploy ext plugin
http://btnkumar.blogspot.com/2010/09/deploymentundeployment-with-ext-plugins.html
*** deploy ext plugin
- đáp file war vào TOMCAT_HOME/deploy --> tự động được deploy , nếu deploy lần đầu thì yêu cầu reset tomcat ( "You must reboot the server and redeploy all other plugins."), các lần sau deploy ext plugin đó thì không cần reste
trong trường hợp deploy tiếp theo của ext plugin đó mà nó không apply ta thực hiện undeploy qua ant command hoặc manual mà undeploy như dưới.
Ext Plugin can't be undeployed
Ext Plugin can't be nowadays even redeployed :(
Workaround:
- call
ant clean
from your ext-plugin directory, see Ext plugin thread - or delete ext plugin from your Tomcat (similar for any other app server, sometimes you must undeploy the web application, not just delete it)
TOMCAT_HOME/lib/ext/
TOMCAT_HOME/....webapps/ROOT/WEB-INF ( tìm xml file )
TOMCAT_HOME/....webapps/ROOT/WEB-INF/lib/
TOMCAT_HOME/....webapps/
TOMCAT_HOME/....temp/liferay/com/liferay/portal/deploy/dependencie
Trong thư mục trên tìm các jar file có pre_fix là ext ( ext-nameextplugin-ext.jar... ) mà del .
Linux - Tomcat:
cd your-tomcat-install
# deleting web application
rm -rf webapps/*-ext
# deleting jars and config files from Liferay
find -name "ext-*" | xargs rm -rf
# stopping Liferay
bin/shutdown.sh ps ax | grep life
#... wait until life ends ;) ....
# # Starting Liferay
bin/startup.sh tail -f logs/catalina.out
Windows - Tomcat:
delete all following files & directory and reboot Tomcat (assuming your Ext Plugin is named ehlo-ext):./webapps/ehlo-ext ./lib/ext/ext-ehlo-ext-service.jar
./webapps/ROOT/WEB-INF/lib/ext-ehlo-ext-util-bridges.jar
./webapps/ROOT/WEB-INF/lib/ext-ehlo-ext-util-taglib.jar
./webapps/ROOT/WEB-INF/lib/ext-ehlo-ext-util-java.jar
./webapps/ROOT/WEB-INF/lib/ext-ehlo-ext-impl.jar
./webapps/ROOT/WEB-INF/ext-ehlo-ext.xml
./temp/liferay/com/liferay/portal/deploy/dependencies/ext-ehlo-ext-util-bridges.jar ./temp/liferay/com/liferay/portal/deploy/dependencies/ext-ehlo-ext-util-taglib.jar
./temp/liferay/com/liferay/portal/deploy/dependencies/ext-ehlo-ext-util-java.jar
My script
on windows ( bat script ) :
@echo off
set app_name=%MyProj
if "%app_name%" == "" goto end
set tomcat_home=D:\LIFERAY\liferay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23
rmdir /S /Q %tomcat_home%\webapps\%app_name%-ext
del /F /S /Q %tomcat_home%\lib\ext\ext-%app_name%-ext-service.jar
del /F /S /Q %tomcat_home%\webapps\ROOT\WEB-INF\lib\ext-%app_name%-ext-util-bridges.jar
del /F /S /Q %tomcat_home%\webapps\ROOT\WEB-INF\lib\ext-%app_name%-ext-util-taglib.jar
del /F /S /Q %tomcat_home%\webapps\ROOT\WEB-INF\lib\ext-%app_name%-ext-util-java.jar
del /F /S /Q %tomcat_home%\webapps\ROOT\WEB-INF\lib\ext-%app_name%-ext-impl.jar
del /F /S /Q %tomcat_home%\webapps\ROOT\WEB-INF\ext-%app_name%-ext.xml
del /F /S /Q %tomcat_home%\temp\liferay\com\liferay\portal\deploy\dependencies\ext-%app_name%-ext-util-bridges.jar
del /F /S /Q %tomcat_home%\temp\liferay\com\liferay\portal\deploy\dependencies\ext-%app_name%-ext-util-taglib.jar
del /F /S /Q %tomcat_home%\temp\liferay\com\liferay\portal\deploy\dependencies\ext-%app_name%-ext-util-java.jar
rmdir /S /Q %tomcat_home%\work\
rmdir /S /Q %tomcat_home%\temp\
:end
on linux ( sh script )
#!/bin/shif [ $# -ne 1 ]; then
echo "Usage: clean-my-ext [ext-name]"
exit 1
fi
tomcat_home="/local/mnt/apps/liferay/tomcat-6.0.29"
app_name="$1"
rm -rf $tomcat_home/temp
rm -rf $tomcat_home/webapps/$app_name-ext
rm -rf $tomcat_home/webapps/ROOT/html/portlet/ext
rm -f $tomcat_home/lib/ext/ext-$app_name-ext-service.jar
rm -f $tomcat_home/webapps/ROOT/WEB-INF/lib/ext-$app_name-ext-util-bridges.jar
rm -f $tomcat_home/webapps/ROOT/WEB-INF/lib/ext-$app_name-ext-util-taglib.jar
rm -f $tomcat_home/webapps/ROOT/WEB-INF/lib/ext-$app_name-ext-util-java.jar
rm -f $tomcat_home/webapps/ROOT/WEB-INF/lib/ext-$app_name-ext-impl.jar
rm -f $tomcat_home/webapps/ROOT/WEB-INF/ext-$app_name-ext.xml
rm -f $tomcat_home/webapps/ROOT/WEB-INF/tiles-defs-ext.xml
rm -f $tomcat_home/temp/liferay/com/liferay/portal/deploy/dependencies/ext-$app_name-ext-util-bridges.jar
rm -f $tomcat_home/temp/liferay/com/liferay/portal/deploy/dependencies/ext-$app_name-ext-util-taglib.jar
rm -f $tomcat_home/temp/liferay/com/liferay/portal/deploy/dependencies/ext-$app_name-ext-util-java.jar
No comments:
Post a Comment