Announcement

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

    Core SmartClient JavaScript libraries appear not to be loaded

    Hello,

    I just created a new GWT app with Maven. In my Pom.xml, I have :

    <dependency>
    <groupId>com.smartgwt</groupId>
    <artifactId>smartgwt</artifactId>
    <version>5.0</version>
    <scope>system</scope>
    <systemPath>${webappDirectory}/WEB-INF/lib/smartgwt-5.0.jar</systemPath>
    </dependency>
    <dependency>
    <groupId>com.smartgwt</groupId>
    <artifactId>smartgwt-skins</artifactId>
    <version>5.0</version>
    <scope>system</scope>
    <systemPath>${webappDirectory}/WEB-INF/lib/smartgwt-skins-5.0.jar</systemPath>
    </dependency>

    In my MyApp.gwt.xml, I have :

    <inherits name="com.smartgwt.SmartGwt" />

    When I launch the app in DevMode, I got the following error :

    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/.

    Unfortunately, I inherit the complete module, if I'm not wrong.
    I also tried to inherit the NoScript SmartGWT module and added all the script in MyApp.html, but I got the same error.

    How can I get rid of this ?
    Thank you.

    #2
    It looks like you are not using the documented approach for Maven and you also forgot to run a GWT compile after changing your .gwt.xml.

    Comment


      #3
      I just looked at your link and tried a maven build on my project with this goal :

      com.isomorphic:isc-maven-plugin:1.1.1:install -DbuildNumber=5.0p -Dlicense=LGPL -Dproduct=SMARTGWT -DbuildDate=2015-04-07

      I got this result :

      [INFO] Unpacking downloaded file/s to 'C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07'
      [INFO] Copying distribution to 'C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\latest'
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\pom\isc-batchuploader.xml to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\isc-batchuploader\5.0-p20150407\isc-batchuploader-5.0-p20150407.pom
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\assembly\isc-selenium-resources.zip to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\isc-selenium-resources\5.0-p20150407\isc-selenium-resources-5.0-p20150407.zip
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\pom\isc-selenium-resources.pom to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\isc-selenium-resources\5.0-p20150407\isc-selenium-resources-5.0-p20150407.pom
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\lib\smartgwt-lgpl.jar to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\smartgwt-lgpl\5.0-p20150407\smartgwt-lgpl-5.0-p20150407.jar
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\doc\lib\smartgwt-javadoc.jar to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\smartgwt-lgpl\5.0-p20150407\smartgwt-lgpl-5.0-p20150407-javadoc.jar
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\pom\smartgwt-lgpl.pom to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\smartgwt-lgpl\5.0-p20150407\smartgwt-lgpl-5.0-p20150407.pom
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\lib\smartgwt-skins.jar to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\smartgwt-skins\5.0-p20150407\smartgwt-skins-5.0-p20150407.jar
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\pom\smartgwt-skins.pom to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\smartgwt-skins\5.0-p20150407\smartgwt-skins-5.0-p20150407.pom
      [INFO] Installing C:\Users\XXXX\AppData\Local\Temp\myApp\SmartGWT\LGPL\5.0p\2015-04-07\doc\lib\smartgwt-javadoc.jar to C:\Users\XXXX\.m2\repository\com\isomorphic\smartgwt\lgpl\smartgwt-skins\5.0-p20150407\smartgwt-skins-5.0-p20150407-javadoc.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS

      Then I try to add this in my pom.xml :

      <dependency>
      <groupId>com.isomorphic.smartclient.lgpl</groupId>
      <artifactId>smartgwt-lgpl</artifactId>
      <version>5.0-p20150407</version>
      </dependency>

      But I got this error :

      Missing artifact com.isomorphic.smartclient.lgpl:smartgwt-lgpl:jar:5.0-p20150407

      Could you please explain me what to do ?

      Thank you.

      Comment


        #4
        groupId is wrong. Should be com.isomorphic.smartgwt.lgpl, you have "smartclient".

        Comment


          #5
          You're right, I didn't see that. Thank you, it works well now !

          Comment

          Working...
          X