Friday, March 16, 2012

Unzip Multipart Archive in Linux

The post takes you through steps to unzip a multipart archive in Linux.
Steps:
• Download binary file to install 7zip in linux:
url: http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/
file: p7zip_9.20.1_x86_linux_bin.tar.bz2

• Install 7zip.
Command to install 7zip: tar xvjf p7zip_9.20.1_x86_linux_bin.tar.bz2
Note: By default it will be installed in /usr/local/bin

• Run the command to unzip multipart archive.
Go to the location where you have multipart archive file and run following command.
$ /usr/locale/bin/7za x .zip.001

Command to create a multi-part archive:
Go to folder which you want to archive and run the following command.
$ /usr/local/bin/7z a <archive-name.7z> <folder_name> -v1024m

or

$ /usr/local/bin/7za a -v700m destination_file source_file

Monday, July 25, 2011

Large WAR file deployment in Tomcat 7

Tomcat 7 Manager application complains while deploying a larger WAR file. Here is error message:

The server encountered an internal error () that prevented it from fulfilling this request.

Exception java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (XXX) exceeds the configured maximum (52428800)

Here is a solution:
Go to the web.xml of the manager application (@: TOMCAT_HOME/webapps/manager/WEB-INF/web.xml)
Increase the max-file-size and max-request-size:
Set these values greater than your WAR file size.



52428800
52428800
0