cancel
Showing results for 
Search instead for 
Did you mean: 

Patch is not applied properly

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Murthy

The copy functionality would have worked only if you have the following package structure for the patch. This is based on the XML file that you have defined.

Since your Package name is MIPATCH, You should have folder named "<b>MIAPPATCH</b>" at the tomost level i.e at the same level where install.xml file is placed. Within this folder you should have another folder named <b>appatch</b> and within this folder is where your <b>XMAM30_ECLIPSE.jar</b> should reside. If you have maintained this structure, then definitely the jar should get replaced.

Catch!!! I just noticed that you are using the tag

target="%MI_HOME%"/webapps/XMAM30_ECLIPSE/WEB-INF/lib/"

Here do not use " after %MI_HOME%. Instead the tag should be

target="%MI_HOME%/webapps/XMAM30_ECLIPSE/WEB-INF/lib/"

Hope this helps

Best Regards

Sivakumar

Message was edited by:

Sivakumar V