Forum Stats

  • 3,769,513 Users
  • 2,252,970 Discussions
  • 7,875,068 Comments

Discussions

Problem loading OJET application through Citrix Gateway

Sirish Reddy
Sirish Reddy Member Posts: 78 Blue Ribbon

We have an application built on Oracle JET, that needs to be accessed by external clients through Citrix Gateway. However, the application fails to load and we do not even see the login page. We just see the favicon on the tab header. Looks like none of the application resources are loading. Any help on resolving this issue is highly appreciated. Thanks.

-----------I see the below errors on my console-------------

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojbootstrap.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojlogger.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojknockout.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojmodule.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojnavigationlist.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojbootstrap"

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

require.js:143 Uncaught Error: Script error for "ojs/ojlogger"

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

require.js:143 Uncaught Error: Script error for "ojs/ojknockout"

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

require.js:143 Uncaught Error: Script error for "ojs/ojmodule"

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojbutton.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojnavigationlist"

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojtoolbar.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojbutton"

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

require.js:143 Uncaught Error: Script error for "ojs/ojtoolbar"

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojmodule-element-utils.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojmodule-element-utils", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojresponsiveutils.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojresponsiveutils", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojresponsiveknockoututils.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojresponsiveknockoututils", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojcorerouter.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojcorerouter", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojmodulerouter-adapter.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojknockoutrouteradapter.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojmodulerouter-adapter", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

require.js:143 Uncaught Error: Script error for "ojs/ojknockoutrouteradapter", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojurlparamadapter.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojurlparamadapter", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojarraydataprovider.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojarraydataprovider", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojknockouttemplateutils.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojknockouttemplateutils", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojvalidation-base.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojvalidation-base", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojmodule-element.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojmodule-element", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojavatar.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojavatar", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojmodel.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojmodel", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojselectcombobox.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojselectcombobox", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojmessages.js?bust=1632502510533:1 Failed to load resource: the server responded with a status of 404 (Not Found)

require.js:143 Uncaught Error: Script error for "ojs/ojmessages", needed by: appController

https://requirejs.org/docs/errors.html#scripterror

  at makeError (require.js:168)

  at HTMLScriptElement.onScriptError (require.js:1738)

DevTools failed to load SourceMap: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/iframe_handler.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

DevTools failed to load SourceMap: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/content.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Tagged:

Answers

  • Philip Sommer
    Philip Sommer Member Posts: 95 Blue Ribbon

    Hi Sirish,

    Looks like your application fails to bootstrap and load the necessary files / libraries.

    Make sure the files/urls listed (/cvpn/.../SelfService/js/ojs/*.js) are accessible from the client maschine which runs the browser. I do not know a lot about the citrix architecture, so I am not sure the actual Citrix Client maschine is the one requesting the files or if it is more like an RDP where the remote maschine would run the browser and query the files.

    The paths itself also look weird. JET files should usually be resolved from a URL where the files are hosted. Maybe the path you copied was the cut off version displayed by most consoles? In the console, try hovering the path and see if you can get the full URL.

    I hope that puts you on the right track.


    Kind Regards,

    Philip

  • Sirish Reddy
    Sirish Reddy Member Posts: 78 Blue Ribbon
    edited Sep 27, 2021 10:44PM

    Thank you for the response Philip! I have tried to access the resources directly from the URL and get a 404 error.

    I see all the jquery, require.js and the application related js files are accessible. However any js file that is inside the ojs folder fails to load....

    -----This below resource loads fine-----

    https://rdc.abc.xyz/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/appController.js?bust=1632781725391

    ----- This below resource fails to load, returns a 404 error -----

    https://rdc.abc.xyz/cvpn/aHR0cHM6Ly9kZXYtc2VsZnNlcnZpY2UuY2FsZWdpcy5uZXQ/SelfService/js/ojs/ojbutton.js?bust=1632781725391

  • Philip Sommer
    Philip Sommer Member Posts: 95 Blue Ribbon
    edited Sep 28, 2021 6:18AM

    Hi Sirish,

    Usually, the oj libraries are built at /js/libs/oj (not ojs). So my guess is that your require confiuration is not correct and it tries to interpret the 'ojs/ojbutton' require as a direct path instead of a library name which resolves to path /js/libs/oj/ojbutton.

    The mapping should be in your (built , not source) main.js as something like:

    function () {

      requirejs.config({

        baseUrl: 'js',

        paths:

          // injector:mainReleasePaths

          {

            knockout: 'libs/knockout/knockout-3.5.1.debug',

            jquery: 'libs/jquery/jquery-3.5.1',

           ...

            'regenerator-runtime': 'libs/regenerator-runtime/runtime',

          }

        // endinjector

    ...


    If you use the Oracle JET tooling CLI (command line interface) to build your application, these paths will be generated from the path_mapping.json file during build.


    So I think you should check the main.js and path_mapping.json to for the filepaths.


    Kind Regards,

    Philip


    Edit: The relevant entry in the main.js in your case is for 'ojs', which tells requireJS where to load ojs from. E.g. if

    ojs: 'libs/oj/v10.0.0/'

    it looks for 'ojs/ojbutton' first in js/libs/oj/v10.0.0/ojbutton. If it does not find it it will try and treat 'ojs/ojbutton' as a direct path and load js/ojs/ojbutton.