Skip to Content
0
Former Member
Sep 13, 2007 at 09:42 AM

Patch is not applied properly

44 Views

Hi All,

We have done some enhance ments to MAM3.0 application, and deployed the war file to webconsole, and now this application is working fine. Now we need to do some changes to the java files & jsp files. So, for this we have to apply these changes through patch process only.

I have created the patch in below process..

My Application name is XMAM30_ECLIPSE

1. Generated the .war file from NWDS & extracted the war file. Now I just want to change the JAVA files only, so I took jar file from the extracted war file, and its name is XMAM30_ECLIPSE.jar. And placed this jar file inside appatch folder

2. Created MANIFEST file and placed this file in META-INF folder.

content of MANIFEST file is ...

Manifest-Version: 1.0

PatchArchive : X

3. Created install.xml file with the content ...

     <?xml version="1.0" encoding="UTF-8"?>
<ARCHIVE name="Application patch Installer"
description="Installer" uimode="full">
<PACKAGE name="MIAPPATCH" description="Installation and Migration Package">
<TASK name="Add new files">
<!-- copy the application patch to webapp -->
<COPY source="/appatch" pattern="XMAM30_ECLIPSE.jar"
target="%MI_HOME%"/webapps/XMAM30_ECLIPSE/WEB-INF/lib/"
mi_running="false"/>
</TASK>
</PACKAGE>
</ARCHIVE>

4. Created the folder MIAPPATCH and placed appatch folder in it.

5. Created the zip file with the name XMAM30_ECLIPSE.zip with the contents MIAPPATCH, META-INF and install.xml file.

Assigned these patch to the MI Client through webconsole.

Now this patch is not overwriting the XMAM30_ECLIPSE.jar file.

My application is still containg the old .jar file.

Can any body please tell me how to create patch file..

Regards,

Murthy