cancel
Showing results for 
Search instead for 
Did you mean: 

"HTTP 404" error when trying to Run Mobile Application

Former Member
0 Kudos

I am getting "HTTP 404" File not found, when i click MTR Application installed on MI Client using Setup package.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

In your web.xml is the path /start mapped to anything?

Julien.

Former Member
0 Kudos

I found the below lines in c:/program Files/SAP MobileInfrastructure/webapps/MTR/web-inf/web.xml

<servlet-mapping>

<servlet-name>front</servlet-name>

<url-pattern>*.do</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>mtr_0005fstart</servlet-name>

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

</servlet-mapping>

Let me know, if it help to find out.

Former Member
0 Kudos

Hi,

could be that you have not followed the correct sequence. Simply undeploy the app from your device - then sync - restart the device, sync again. So in the Mobile Admin the App is not longer shown as assigned to the device. After this is done, assign the app to the device agin and sync. It will be downloaded and you restart the device. Once you are in MI again - SYNC before you try to open the app. I would recommend to sync twice, but usually one sync is enough. Well, after this is done, try to open the app again.

Next question: is it the original APP or have you enhanced it? If you enhace it - make sure you press the Precompile JSP while creating the WAR file. Otherwise it will not work and you get 404 as well.

And while creating the WAR file - well, I wuld recommend to keed the JSP files. YOu will see an $JSP folder in Eclipse then and in there you can check if the generated files are correct. sometimes it happens that these files are empty, diue to errors in HTML or missconfiguration.

And if you keep the generated JSPs, then delete the $JSP folder manually after changing JSP files and creating a new WAR file.

Well, if you follow all these steps, most likely it should work fine.

Hope it helps!

Regards,

Oliver

Former Member
0 Kudos

Oliver ,

I did all the steps you told about un installing and reinstalling , but no luck.

Trace File has

[20081112 21:01:40:114] I [MI/API/Logging ] ***** LOG / TRACE SWITCHED ON

[20081112 21:01:40:114] I [MI/API/Logging ] ***** Mobile Infrastructure Version: MI 25 SP 21 Patch 01 Build 200809011414

[20081112 21:01:40:114] I [MI/API/Logging ] ***** Current Timezone: Europe/Berlin

[20081112 21:01:40:114] I [MI/API/Logging ] ***** Current Trace Level: 1000

[20081112 21:01:40:114] I [MI ] Trace severity: All (1000)

[20081112 21:01:40:146] D [MI/PIOS ] No implementations found. Error Code:(3)

[20081112 21:01:40:146] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/trace/trace.jsp'

[20081112 21:01:42:239] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20081112 21:01:42:239] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20081112 21:01:42:239] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = 'tracechangeTraceLevel'

[20081112 21:01:42:239] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/trace/trace.jsp'

[20081112 21:01:44:348] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20081112 21:01:44:348] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20081112 21:01:44:348] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20081112 21:01:44:348] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'

[20081112 21:01:46:317] D [MI/Core ] Deactivated application MOBILEENGINE_JSP

[20081112 21:01:46:317] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20081112 21:01:46:317] P [MI/Core ] Activate application MOBILEENGINE_JSP

[20081112 21:01:46:317] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20081112 21:01:46:317] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = 'logout'

[20081112 21:01:46:317] P [MI/Core ] Set current user to null

[20081112 21:01:54:050] D [MI/API/Sync ] SyncEventListener com.sap.ip.me.core.StatusUpdater@15d252d was registered for key com.sap.ip.me.core.StatusUpdater/MI4a4f53484953

[20081112 21:01:54:050] D [MI/Core ] Check if AuthSyncBo is already deployed

[20081112 21:01:54:050] D [MI/Core ] AuthSyncBo is deployed

[20081112 21:01:54:050] D [MI/Core ] Create AuthSyncBo instance

[20081112 21:01:54:050] D [MI/Smartsync ] SyncProcessing for cMIAUTH_TOP was set to DIRECT_REQUEST

[20081112 21:01:54:050] D [MI/Persistence ] Get IPersistenceManager for ConversationID: MI2853484152454429

[20081112 21:01:54:050] D [MI/Persistence ] beginTransaction() called with doWait=false for instance 3387681

[20081112 21:01:54:050] D [MI/Persistence ] PersistenceManagerImpl.beginTransaction():false

[20081112 21:01:54:050] D [MI/Persistence ] PersistenceManagerImpl.get(IQuery):(Type: (IClassDescriptor(Name: cMIAUTH_010)))(Condition: ((MEUSER =JOSHIS) AND(state <16)))(Order: ((IAttributeDescriptor(Name: MEUSER)) asc))(Start index: 0)(Max results: -1)

[20081112 21:01:54:050] D [MI/Persistence ] commit() called on instance 3387681

[20081112 21:01:54:050] D [MI/Persistence ] PersistenceManagerImpl.commit()

[20081112 21:01:54:050] D [MI/Smartsync ] Application has registred MessageReplyObserver for type SYNC_END: com.sap.ip.me.security.permission.AuthBoObserver@1b22920

[20081112 21:01:54:050] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'

[20081112 21:01:55:816] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20081112 21:01:55:816] P [MI/Core ] Activate application MOBILEENGINE_JSP

[20081112 21:01:55:816] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20081112 21:01:55:816] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20081112 21:01:55:816] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to 'http://localhost:4444/MTR/start'

[20081112 21:02:00:206] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20081112 21:02:00:206] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20081112 21:02:00:206] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

Former Member
0 Kudos

Hi,

these lines confuse me:

20081112 21:01:40:114 I MI Trace severity: All (1000)

20081112 21:01:40:146 D MI/PIOS No implementations found. Error Code:(3)

20081112 21:01:40:146 D MI/API/Runtime/JSP AbstractMEHttpServlet:dispatch request to '/jsp/trace/trace.jsp'

20081112 21:01:42:239 D MI/Core Set current application to 'MOBILEENGINE_JSP'

So I guess you have installed a customized version of MTT and not the original one? If that is the case, have you precompiled the JSP files while creating the WAR? And if you are running on a PDA: can you compile your APP with JDK 1.1.8 please.

You can simply create a new WAR file then, put it into the WEBAPPS folder and rename the existing MTT folder to MTT_. After MI restart the new files should be available.

Hope that helps.

Regards,

Oliver

Former Member
0 Kudos

Hello,

MTT requires 3 applications for deployment. MTS, MTR and the database (the name changes depending on the version). Make sure you deployed the 3 applications.

Thank you,

Julien.