Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Migration issue - Core SmartClient JavaScript libraries appear not to be loaded

    Hi, I am going to migrate my project from java 8 to 17. In this process, I am trying to use gwt version 2.10.0 and also changed smartgwt and smartgwt-skins version to 13.1.

    Project is building properly without any issue but when I try to login then getting below error message.

    Error Message -
    "Core SmartClient JavaScript libraries appear not to be loaded. If inheriting the NoScript SmartGWT modules, verify that the HTML file includes <script src=...> tags to load the SmartClient module .js files from the appropriate location within the WAR. By default these files are present under [GWT app name]/sc/modules/."

    Screenshot is attached with more details. [removed by admin - inappropriate format]

    Could you please let me know where I am going wrong?
    Last edited by Isomorphic; 3 Apr 2024, 16:18.

    #2
    Please do not use .docx as a format on this forum, it's unnecessary and can contain viruses and other exploits.

    Please see the Debugging overview to figure out what misconfiguration is responsible. In particular, make you read the docs on SuperDevMode, and in particular, go through the Troubleshooting section.

    If you still end up with a problem, you should explain here what results you got from each of the Troubleshooting steps.

    Comment


      #3
      Hi , Not able to find any solution.

      Project was working fine with below version-
      gwt version 2.8.2
      smartgwt and smartgwt-skins version 5.0
      java version 8

      Now, I am migrating it in to below version . Project is building properly without any error and all "sc/modules" files are also generated but not able to load .

      I am sharing some of information about the project. Please check where I am wrong .

      Updated versions-

      gwt version 2.10.0
      smartgwt and smartgwt-skins version 13.1.
      java version 17



      Shared.gwt.xml ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

      <module>

      <!-- Inherit the core Web Toolkit stuff. -->
      <inherits name='com.google.gwt.user.User' />
      <inherits name='com.google.gwt.user.theme.standard.Standard' />
      <inherits name="com.google.gwt.http.HTTP" />
      <inherits name="com.google.gwt.json.JSON" />
      <inherits name="com.google.gwt.xml.XML" />
      <inherits name="com.google.gwt.i18n.I18N" />
      <inherits name="com.smartgwt.SmartGwt" />
      <inherits name="com.google.gwt.logging.Logging" />
      <inherits name="com.googlecode.gwt.crypto.Crypto" />

      <!-- Properties -->

      <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE' />
      <!--<define-property name="gwt.logging.firebugHandler" values="ENABLED, DISABLED" />-->
      <!--<define-property name="gwt.logging.popupHandler" values="ENABLED, DISABLED" />-->
      <define-property name="gwt.logging.firebugHandler" values="ENABLED" />
      <define-property name="gwt.logging.popupHandler" values="ENABLED" />

      <set-property name="gwt.logging.logLevel" value="INFO" />
      <set-property name="gwt.logging.enabled" value="TRUE" />
      <set-property name="gwt.logging.developmentModeHandler" value="DISABLED" />
      <set-property name="gwt.logging.systemHandler" value="DISABLED" />
      <set-property name="gwt.logging.consoleHandler" value="DISABLED" />
      <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />

      <!-- Specify the paths for translatable code -->
      <source path='client' />
      <source path='shared' />
      <!-- <script src="../ext-all-3.2.0.js" /> -->

      </module>

      myfile.gwt.xml ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

      <module rename-to='myfile'>

      <!-- Modules inheritance -->
      <inherits name="Shared"/>
      <!-- Entry Point -->
      <entry-point class='MyFileEntryPoint' />
      </module>

      myfile.jsp :::::::::::::::::::::::::::::::::::::::::::::::::::: have below script :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

      <script src="[app]/app.nocache.js"></script>
      <script src="[app]/sc/modules/ISC_Core.js"></script>
      <script src="[app]/sc/modules/ISC_Foundation.js"></script>
      <script src="[app]/sc/modules/ISC_Containers.js"></script>
      <script src="[app]/sc/modules/ISC_Grids.js"></script>
      <script src="[app]/sc/modules/ISC_Forms.js"></script>
      <script src="[app]/sc/modules/ISC_RichTextEditor.js"></script>
      <script src="[app]/sc/modules/ISC_Calendar.js"></script>
      <script src="[app]/sc/modules/ISC_DataBinding.js"></script>
      <script src="[app]/sc/skins/Shiva/load_skin.js"></script>




      Error-

      I have attached some of screenshot regarding errors.

      Please do the needful.










      Attached Files

      Comment


        #4
        In your second screenshot you can see the obvious error: the .js files are ending up with "net::ERROR_CONTENT_DECODING_FAILED". This indicates some kind of problem with your server or perhaps a proxy - the .js files maybe advertised as being delivered in compressed form, but are actually not, for example.

        Here is ChatGPT's longer take on this:
        https://chat.openai.com/share/6fae41...2-08f94983b6df

        This is not a problem with our product. You can try to use ChatGPT to work through the troubleshooting steps, but if you need further support from us, since you do not seem to be a customer, you should "do the needful" and purchase a Support plan or some Consulting hours.

        Comment


          #5
          One more thing , I want to mentioned.
          Actually in console, error is coming "VM33 load_skin.js:6 Uncaught ReferenceError: isc is not defined" . So this is coming because of scripts file are not loaded or scripts file are not loaded because of this .

          Please check the screenshot.


          Attached Files

          Comment


            #6
            Just another symptom of the same underlying problem.

            Comment

            Working...
            X