cancel
Showing results for 
Search instead for 
Did you mean: 

MDK Export of MAM2.5 SR2

Former Member
0 Kudos

Hi,

I'm developing customer enhancements to the MAM 2.5 using Eclipse 2.1.12 and MDK 2.5.12.

I imported the file MAM25_eclipse.war from the CD Mobile Asset Management 2.5 SR2 into Eclipse.

First I assigned a MAM25 application from the Web Console and made a first synchronization without errors.

Now I tried to export the Eclipse version to the MI directory installed on my PC (..\SAP Mobile Infrastructure\webapps\) and I found these behaviours:

<b>1.</b> if I start the MI infrastructure with the new exported version (with the jsp files as compiled

classes) and click to MAM25 application link ... no application is started as it seems that the MI

is not able to find the start file. In fact if I open a the web browser and manually launch the address:

<b>http://localhost:4444/MAM25/start</b>

the response is error HTTP 404 - File missing,

but if i use the address:

<b>http://localhost:4444/MAM25/home/home_mgmt.do</b>

the MAM2.5 application starts correctly.

How is it possible?

<b>2.</b> all the compiled classes are packed in a MAM25.jar file and not in different directories as the original version, so how can I develop an addon project if the old files (in the MAM25.jar) are not overwritten by the new ones?

Thank you

Pierpaolo Pizzoferrato

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Stefano,

In question 1)

When you select the option (compile JSP's ) the export break a mapping that is needed in the web.xml file shown below. /start actually maps to a jsp called mam_start.jsp which in turn has a redirect to /home/home_mgmt.do. So if you compile the JSP's , you will need to change this web.xml manually to add the mapping below. Make sure to place them in their distinct area. Follow how web.xml as the example.

If you do not export the compiled JSP, you will not get this problem.

<servlet>

<servlet-name>mam_0005fstart</servlet-name>

<servlet-class>mam_0005fstart</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>mam_0005fstart</servlet-name>

<url-pattern>/start</url-pattern>

</servlet-mapping>

For #2

Since the export creates a lib.jar file for the application. when you create an addon to patch classes that have problems, you can create a lib.jar can overwrite the current one that is on the device instead of class by class.

Do this help?

regards

sami

Former Member
0 Kudos

Thank you for the answer. Now it works properly.

Regards

Pierpaolo Pizzoferrato

Answers (0)