cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to load 'sap/ushell/services/ClientSideTargetResolution.js

Former Member
0 Kudos

Hello Everyone,

We are testing a standard fiori app on local Sandbox server via eclipse.

It gives the below error :

Uncaught Error: failed to load 'sap/ushell/services/ClientSideTargetResolution.js' from ../../../../../resources/sap/ushell/services/ClientSideTargetResolution-dbg.js: Error: failed to load 'sap/ui/generic/app/navigation/service/SelectionVariant.js' from ../../../../../resources/sap/ui/generic/app/navigation/service/SelectionVariant.js: 404 - Not Found

Has anyone faced similar issue?

Regards,

Snehal

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

When i trying to open my app across the sandbox launchpad I've the same issue :

-> sap-ui-core.js:174 Uncaught Error: failed to load 'sap/ushell/services/ClientSideTargetResolution.js'

SAPUI5 Eclipse Plugin to version 1.36.9


Please i need some help !


Thanks.

Former Member
0 Kudos

Hi,

Did you try this?

http://scn.sap.com/message/16878516#16878516

Regards,

Diego.

Former Member
0 Kudos

Hi Diego,

thanks to reply.

I'have already try your solution without success. When i set this i have an issue in the pom.xml -> missing artifact ..

To do this, i had converted my sapUI application to maven project . is it good ?

Best Regards,

Driss

Former Member
0 Kudos

Hi,

Yes, it is ok, because you need the maven to download the dependencies.

You need to check on your repository if there is this dependency.

Regards,

Diego.

Former Member
0 Kudos

Hi,

I'm new on Maven and i did'nt success to add dependency.

.m2\repository\com\sap\ushell\ushell-lib\1.36.13

Is there any other way to solves my first issue about the ClientSideTargetResolution.js ?

Best regards,

Driss.

Former Member
0 Kudos

Hi,

Unfortunately the dependency is not available on this repository.

I dont know how to solve it, sorry.

Regards,

Diego.

Former Member
0 Kudos

Hi all,

I am also facing the issue described by you.

I would like to test my Fiori app in the sandbox environment of the Fiori Launchpad. I have configured the app and the sandbox environment in Eclipse Mars (4.5.2), based on SAPUI5 v1.38. The configuration is performed according to the official SAP documentation available at Local Sandbox Environment for the SAP Fiori Launchpad - User Interface Add-On for SAP NetWeaver - SA....

I can successfully open the Fiori Launchpad in the sandbox. The tiles of the demo apps are correctly displayed. However, opening the demo apps does not work as I receive an error "http://localhost:8080/<MyProjectName>/resources/sap/ui/generic/app/navigation/service/SelectionVariant.js 404 (Not Found)". I additionally receive an error "Failed to load Javascript resource: sap/fiori/core-ext-light.js -".

The errors are also thrown for my custom Fiori app when trying to start the latter from the Launchpad.

Why are the aforementioned files missing on the web server? Is there a way to deploy them to the server?

Thanks for your help and best regards,

Markus

Former Member
0 Kudos

Hi,

I fixed my problem removing the eclipse plugin from my project and adding these dependencies to pom.xml:

        <dependency>

            <groupId>com.sap.ushell</groupId>

            <artifactId>ushell-lib</artifactId>

            <classifier>testresources</classifier>

            <version>1.36.13</version>

        </dependency>

        <dependency>

            <groupId>com.sap.ushell</groupId>

            <artifactId>ushell-lib</artifactId>

            <version>1.36.13</version>

        </dependency>

        <dependency>

            <groupId>com.sap.uxap</groupId>

            <artifactId>uxap-uilib</artifactId>

            <version>1.36.13</version>

        </dependency>

        <dependency>

            <groupId>com.sap.ca</groupId>

            <artifactId>scfld.md</artifactId>

            <version>1.36.5</version>

        </dependency>

Kind regards,

Diego.

0 Kudos

Hi Diego,

I am facing the same issue.
Could you please elaborate a little more ? How did you remove the eclipse plugin ?

Thanks,

Unnati

Former Member
0 Kudos

Hi,

I deselected the SAPUI5 Application from the Project Facets and Removed the SAPUI5 Dependencies from Deployment Assembly, you see theses menus on Right click on project -> Properties.

Kind regards,

Diego.

0 Kudos

Hi Diego,

Thanks for your reply.

Should I remove both the libraries below the /WebContent folder ?

Regards,

Unnati

Former Member
0 Kudos

Hi,

Yes, but don't forget to add the sapui5 dependencies on the pom.xml

Follow my pom with the dependencies .

<properties>

     <sapui5.version>1.36.13</sapui5.version>

</properties>

<dependency>

  <groupId>com.sap.ushell</groupId>

  <artifactId>ushell-lib</artifactId>

  <classifier>testresources</classifier>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ushell</groupId>

  <artifactId>ushell-lib</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.uxap</groupId>

  <artifactId>uxap-uilib</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ca</groupId>

  <artifactId>scfld.md</artifactId>

  <version>1.36.5</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ui5</groupId>

  <artifactId>core</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ui5</groupId>

  <artifactId>resource</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ui5</groupId>

  <artifactId>mobile</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ui5</groupId>

  <artifactId>mobile-ext</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ui5</groupId>

  <artifactId>layout</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ui5</groupId>

  <artifactId>table</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

  <dependency>

  <groupId>com.sap.ui5</groupId>

  <artifactId>comp</artifactId>

  <version>${sapui5.version}</version>

  </dependency>

Regards,

Diego.

Former Member
0 Kudos

Hi,

There is an update for SAPUI5 Eclipse Plugin to version 1.36.9,

Can you try this update?

Regards,

Diego.

Former Member
0 Kudos

Hi

Yes, I had upgrade my Eclipse SAPUI5 version to 1.36.9. Still the same error.

Regards

Swaraj

Former Member
0 Kudos

Hi Snehal,

Is it working for you now. Same issue with me. Need help.

Regards

Swaraj

Former Member
0 Kudos

I solved the problem with a workaround using the 'Grunt Middleware function to Proxy Requests' plugin of Grunt. https://www.npmjs.com/package/grunt-middleware-proxy

I copied the SelectionVariant.js file from last ui5, then I created a proxy to get SelectionVariant.js from my local files.

Regards,

Diego.

Former Member
0 Kudos

I have de same issue since I updated SAPUI5 to 1.36.9.


It is a bug of sapui5?.


Have you solved it?.


Regards,

Francisco.

Former Member
0 Kudos

Hi Snehal,

I am facing the same issue since I updated SAPUI5 to 1.36.7,

Have you solved it?

Regards,

Diego.

Former Member
0 Kudos

Not, haven't been able to solve. Still looking for answer.

Regards,

Snehal