cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancements to the MAM 2.5

Former Member
0 Kudos

Hi,

I'm trying to make some enhancements to MAM 2.5. I have imported MAM25_eclipse.war into NWDS and then exported into a war file. I have upload this file into webconsole and installed into MI but it doesn't work (getting HTTP 404 - File not found, in trace.txt: Application MAM25_DEVEL cannot be initialized; check WebConsole entry).

Can anybody help me solve this problem?

Thanks and regards

Ivo

Accepted Solutions (1)

Accepted Solutions (1)

former_member304703
Contributor
0 Kudos

Hi Ivo,

with the new enhanced application - do you have two applications deployed on the device?

If yes - they use the same classes and sometimes tomcat gets confused and loads them from the first one. Rename standard one so that it is below the new one.

If no - you have only one MAM deployed on the device, check if application name matches directory name. Might be that application name in request and file structure do not match.

Regards,

Larissa Limarova

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ivo,

have you checked that Mobile Component (in WebConsole), the .war file and the getApplication() method return the same string?

Best regards,

Björn

Former Member
0 Kudos

Hi

Bjoern: I hope so. The name of the war file is MAM25.war, the name in the WebConsole is MAM25 but I dont know how to find out the name using getApplication() (or getApplicationName() ???). But I think that the name of the application in MAM25_eclipse.war file is MAM25.

Larissa: I have only one application deployed. The application name matches the directory name. But even if the directory name was different from the name of the standart application it worked.

Any other suggestions?

Former Member
0 Kudos

Hmm... difficult. Can you see anything suspicious in the trace file, i.e. any messages with severity Warning, Error or Fatal?

Former Member
0 Kudos

Just these two messages:

Application MAM25 cannot be initialized; check WebConsole entry java.lang.NullPointerException

and

cannot find resource bundle /dummy_en_US

former_member304703
Contributor
0 Kudos

Hi Ivo,

Can you check

C:\Program Files\SAP Mobile Infrastructure\log\trace.txt to see if there are more details on the exception.

Cheers,

Larissa

Former Member
0 Kudos

As I have already written:

Application MAM25 cannot be initialized; check WebConsole entry java.lang.NullPointerException

Former Member
0 Kudos

One more thing.

There are no .class files in my .war file (they are in WEB-INF\lib\MAM25.jar) - the same problem as in thread:

In a standard MAM25 application (which is already compiled) there are .class files in WEB-INF\classes directory. The names of these .class files are changed (contain 0005). This application works without problem. (In my exported .war file the names are without 0005 extension moreover thez are in a .jar file as i have mentioned, web.xml file contains values with 0005 extension). So maybe there could be a problem when exporting the .war file in NWDS?