Announcement

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

    Problem starting the SuperDev Mode with SmartGWT 3 + GWT 2.5

    In the Main.gwt.xml the combination

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

    and

    <add-linker name="xsiframe"/>
    <set-property name="compiler.useSourceMaps" value="true" />
    <set-configuration-property name="devModeRedirectEnabled" value="true"/>

    causes the following problem:
    Code:
    Linking into D:\Test\workspace\GWT2.5Test\build\web\org.test.Main
       Invoking Linker Cross-Site-Iframe
          [ERROR] The Cross-Site-Iframe linker does not support <script> tags in the gwt.xml files, but the gwt.xml file (or the gwt.xml files which it includes) contains the following script tags: 
    sc/modules/ISC_Core.js
    sc/modules/ISC_Foundation.js
    sc/modules/ISC_Containers.js
    sc/modules/ISC_Grids.js
    sc/modules/ISC_Forms.js
    sc/modules/ISC_RichTextEditor.js
    sc/modules/ISC_Calendar.js
    sc/modules/ISC_DataBinding.js
    sc/skins/Graphite/load_skin.js
    In order for your application to run correctly, you will need to include these tags in your host page directly. In order to avoid this error, you will need to remove the script tags from the gwt.xml file, or add this property to the gwt.xml file: <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
    here is my Main.gwt.xml
    Code:
    <module>
        <inherits name="com.google.gwt.user.User"/>
        <inherits name = "com.smartgwt.SmartGwt"/>
        <inherits name="com.smartgwt.tools.SmartGwtTools" />
    
        <!-- Inherit the default GWT style sheet. You can change -->
        <!-- the theme of your GWT application by uncommenting -->
        <!-- any one of the following lines. -->
        <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
        <!-- <inherits name="com.google.gwt.user.theme.chrome.Chrome"/> -->
        <inherits name="com.google.gwt.user.theme.dark.Dark"/>
    
        <entry-point class="org.test.client.MainEntryPoint"/>
        
        <add-linker name="xsiframe"/>
        <set-property name="compiler.useSourceMaps" value="true" />
    <!--    set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/-->
        <set-configuration-property name="devModeRedirectEnabled" value="true"/>
    
        <!-- Do not define servlets here, use web.xml -->
    </module>
    I'm running the GWT CodeServer from a simple java main method:
    Code:
    import com.google.gwt.dev.codeserver.CodeServer;
    
    public class SuperDevStarter {
    
        public static void main(String[] args) throws Exception {
            CodeServer.main(new String[]{"-src", "D:/Test/workspace/GWT2.5Test/src/java", "org.test.Main"});
        }
    }
    The Code Server is running properly if I remove the SmartGwt module. Please Help!

    #2
    Have a look here: http://forums.smartclient.com/showthread.php?t=20246

    Comment

    Working...
    X