cancel
Showing results for 
Search instead for 
Did you mean: 

Problem updating a installed application

Former Member
0 Kudos

Hi,

we have some developed some applications for the MI on ourself. Now we want to update some files of the deployed applications on the clients. I already read something about deploying add-ons with an install.xml file in it but I can't get it to work. When I deploy the add-on the MI is telling me that it is downloading the application (although I deployed it as a add-on). Afterwards its installing it. When I have a look at the trace file I can find the following lines:

[20070323 13:51:53:768] P [MI/Deployment ] Installation: Link sent from backend is 'http://XXXXXXXXXXXXX/me/pub/add-on/0.8151_MTSACTVOUCHER_PL01.zip'

[20070323 13:51:53:768] P [MI/Deployment ] Installation: Retrieving application 'MTSACTVOUCHER_PL01' from 'http://62.153.250.193:80/me/pub/add-on/0.8151_MTSACTVOUCHER_PL01.zip'

[20070323 13:51:53:768] D [MI/Deployment ] Install addon application into 'C:\Programme\SAP Mobile Infrastructure\addons\'

[20070323 13:51:53:768] D [MI/Deployment ] Destination file for download is C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8151.zip

[20070323 13:51:53:768] P [MI/Sync ] Do not use http proxy (system properties update)

[20070323 13:51:53:768] D [MI/API/Services ] do httpGet from http://XXXXXXXXXXXXX/me/pub/add-on/0.8151_MTSACTVOUCHER_PL01.zip. Result saved within C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8151.zip.

[20070323 13:51:53:768] D [MI/API/Services ] C:\Programme\SAP Mobile Infrastructure\proxyauth.txt does not exist, therefore no Proxy-Authorization is set.

[20070323 13:51:53:830] D [MI/API/Services ] Extract 'new_classes/com/ids/actvoucher/helper/ActivitiesSorter.class' from 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8151.zip' to 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01\new_classes\com\ids\actvoucher\helper\ActivitiesSorter.class' ...

[20070323 13:51:53:830] D [MI/API/Services ] Extract 'new_version/version.txt' from 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8151.zip' to 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01\new_version\version.txt' ...

[20070323 13:51:53:830] D [MI/API/Services ] Extract 'install.xml' from 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8151.zip' to 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01\install.xml' ...

[20070323 13:51:53:830] P [MI/Deployment ] There is no external installer for AddOn MTSACTVOUCHER_PL01

This is my install.xml file:


<?xml version="1.0" encoding="UTF-8" ?> 
<ARCHIVE name="MTSACTVOUCHER_PL01" description="Installer" uimode="full">
<PACKAGE name="MTSACTVOUCHER" description="New Jar file for application">
<TASK name="Delete old version file">
<DELETE targetfolder="%MI_HOME%/webapps/MTSACTVOUCHER" pattern="version.txt" mi_running="false" /> 
</TASK>
<TASK name="Add new files">
<COPY source="/new_classes/" pattern="**" target="%MI_HOME%/webapps/MTSACTVOUCHER/WEB-INF/classes" mi_running="false" /> 
<COPY source="/new_version/" pattern="version.txt" target="%MI_HOME%/webapps/MTSACTVOUCHER" mi_running="false" /> 
</TASK>
</PACKAGE>
</ARCHIVE>

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

I fixed it on my own. Found an adequate blog about it at /people/kishor.gopinathan/blog/2006/03/17/how-can-we-apply-mi-application-patches

Former Member
0 Kudos

I tried using one single action per task and copying the other actions to the deletion task (which seems to be exectued) but only the deletion is made. Any suggestions?

Former Member
0 Kudos

PatchArchive=X did it and now the MI tells me it wants to install a patch. But now I have another Problem...the first task (deletion) is executed and the version.txt is deleted. But the copy of the new file and folder is not done. Neither a new version.txt is copied nor the folders with the class file in it exist after the restart. Any ideas? Trace file contains no information.

edit: the strange thing is that there is no MTSACTVOUCHER_PL01 folder with the extracted zip in the addons folder anymore.

Former Member
0 Kudos

You were right, there was no manifest.mf, so I added it. But the result is still the same. The MI does not want me to accept any installation of a patch. It just decompressed the archive into MI_HOME\addon and the trace keeps telling me that there is no external installer:

[20070323 14:46:02:346] D [MI/API/Services ] Extract 'META-INF/manifest.mf' from 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8152.zip' to 'C:\Programme\SAP Mobile Infrastructure\manifest.mf' ...

[20070323 14:46:02:346] P [MI/Deployment ] Evaluation manifest file 'C:\Programme\SAP Mobile Infrastructure\manifest.mf'

[20070323 14:46:02:346] D [MI/API/Services ] Extract 'new_classes/com/ids/actvoucher/helper/ActivitiesSorter.class' from 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8152.zip' to 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01\new_classes\com\ids\actvoucher\helper\ActivitiesSorter.class' ...

[20070323 14:46:02:361] D [MI/API/Services ] Extract 'new_version/version.txt' from 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8152.zip' to 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01\new_version\version.txt' ...

[20070323 14:46:02:361] D [MI/API/Services ] Extract 'install.xml' from 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01_0.8152.zip' to 'C:\Programme\SAP Mobile Infrastructure\addons\MTSACTVOUCHER_PL01\install.xml' ...

[20070323 14:46:02:361] P [MI/Deployment ] There is no external installer for AddOn MTSACTVOUCHER_PL01

Does the ZIP archive has to have a special name? Any requirements regarding the naming in the webconsole???

Former Member
0 Kudos

hi michael.

try adding the following in your manifest file.

<b>PatchArchive=X</b>

note the letter case.

regards

jo

Former Member
0 Kudos

Hi Micheal

Seems you have missed an entry in the manifest.mf file or it is missing. Inside the addon zip file, there should exist a folder namesMETA-INF and inside this folder there should be file name manifest.mf. This file should have an entry called PATCHARCHIVE: X if you are addon is a client installer archive. Kindly check this. And also the install.xml file should be directly under the root of the zip file. The xml file seems to be ok with no errors.

Best Regards

Sivakumar

Former Member
0 Kudos

Thats what I did... Declared as "add-on" in WebConsole...otherwise it would not be downloaded to the addon folder within my MI. I do not know if my install.xml is correct. Do I have to take care of the naming of archive, package and the name of my zip file or the things I enter in the webconsole when I upload the zip file?

edit:

we're using MI 2.5 SP16 btw.

Former Member
0 Kudos

Hello,

You have to set the package as a ADDON when you upload it to the middleware. Either in the SDA or in the WebConsole upload page. Make sure you remove the link to MI homepage also.

Thank you,

Julien.