cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Component.js 404 error when executing from launchpad

abaper_guy
Active Participant
0 Likes
2,558

Hi All,

I have a custom Fiori App deployed to Fiori Launchpad. When i click on the tile I get the 404 not found error for Component.js. I have checked SICF node , invalidated all caches but still the problem perists. (The app is working fine without launchpad through the URL directly)

Folder Structure and Component.js contents

View Entire Topic
kammaje_cis
SAP Mentor
SAP Mentor
0 Likes

Can you try adding /WebContent to your URL in LPD_CUST?

abaper_guy
Active Participant
0 Likes

Hi Krishna,

Thanks for your reply. I added Webcontent in my LPD_CUST settings in the URL and now I get the same error with the updated webcontent path

kammaje_cis
SAP Mentor
SAP Mentor
0 Likes

Can you show your index.html? that might give some clue. (I understand it works when called through index.html)

abaper_guy
Active Participant
0 Likes

Yes , it works when running from index.html. Please find the contents of index.html below

kammaje_cis
SAP Mentor
SAP Mentor
0 Likes

Amber, I can see that the component.js path that is called by the app is wrong.

It should call

../sap/bc/ui5_ui5/sap/zarticle_viewer/Component.js . Rather it is calling relative to the Fiori Launchpad. You can try this in browser and test.

In Index.html, there is 'resourceroots' parameter which sets this right.

You might have to research around these pointers. You do not require WebContent in the URL, so please remove it.

Can you try by making the component name start with lowercase? like artViewer.Component.js ? Just a hunch. (You need to change in lpd_cust as well).

abaper_guy
Active Participant
0 Likes

Thanks Krishna,

I got hint from your reply that its taking the path relative to fiori launchpad. So in my lpd_cust , I added a "/" before the url and now the application is getting loaded.

Thanks a lot

Amber