"Slimming"/Downsize Orbeon.war for Separate Deployment with Portlets

Posted by Karolin Heiss on
URL: https://discuss.orbeon.com/Slimming-Downsize-Orbeon-war-for-Separate-Deployment-with-Portlets-tp3166132.html

Hey Separate-Deployment-with-Portlets-Developers

I am happy to see that more and more people work with Orbeon in Separate Deployment with Portlets.
For me it works fine with Liferay 6.0.5 and a pritty new Orbeon nightly build.

Orbeon.war includes to much resources which are not needed for separate deployment with portlets. Does anybody has experiences with "Slimming" the big fat Orbeon.war? - specially with Liferay?

I have my own batch which kicks out resources I don't need. But still, the Orbeon.war needs to much resources I think.

Cheers Karolin


=====================================
unzip orbeon.war -d \orbeon

cd WEB-INF
Del jonas-web.xml
Del sun-web.xml
Del weblogic.xml
Del commons-cli-1_0.jar

REM delete Orbeon xForms test portlet
Del liferay-display.xml
Del liferay-portlet.xml
Del portlet.xml

REM delete xForms portlet samples
Del *.xml
cd resources
rmdir /S /Q apps
rmdir /S /Q forms
Del *.xml

REM Delete jar files we already loaded through our portal
cd lib
Del log4j*.jar
Del xerces-resolver*.jar
Del xerces-serializer*.jar
Del xerces-xml-apis*.jar
REM xerces-xercesImpl-2_9_orbeon_20070711.jar -> needed by Orbeon!!
Del commons-beanutils-1_5.jar
Del commons-codec-1_3.jar
Del commons-collections-3_1.jar
Del commons-lang-2_3.jar
Del commons-logging-1_0_4.jar
Del commons-pool-1.3.jar
REM Del dom4j-1_6_1.jar(Specification-Version: 5.1.0.GA dom4j.jar)
Del commons-io-1_1.jar
Del commons-fileupload-1.2.1.jar

REM Delete this jars if you don't use PDF stuff with xForms
Del flyingsaucer-20100212-itext-2_1_7.jar
Del flyingsaucer-core-renderer_orbeon_20100512.jar
Del itext-bcmail-jdk14-138.jar
Del itext-bcprov-jdk14-138.jar
Del pdfbox-0_7_1.jar

cd ..\..
REM delete xForms portlet sample for release
rmdir /S /Q xforms-jsp

Move orbeon.war orbeon-original.war

zip -r -9 orbeon.war WEB-INF

rmdir /S /Q xforms-jsp
rmdir /S /Q WEB-INF