Thursday, June 11, 2020

Re: GWT Super devmode is not working for me

I'm really not sure how well SDM in the much older GWT 2.6.1 works in comparison with most recent stable release of GWT 2.9.0. There do exist SDM plugins for both Eclipse and IntelliJ I believe.

On 6/11/20 10:36 AM, ruwan samaraweera wrote:
Hi,
I'm using gwt since so many years back. To debug my application those days I've used gwt devmode. But now the plugin is not support in modern browser(Im using lates version of Chrome). So I tried to used super devmode. But unfortunately I couldn't able to configure it correct way. It is given many errors and I cant debug my application.  
Actually Im developing web application using gwt 2.6.1 and java 1.8 and deploying it in tomcat9 webserver.
My configuration as follows.

gwt.xml file
--------------

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='App'>

<inherits name="com.google.gwt.user.User" />
<!--<inherits name="com.smartgwt.SmartGwt"/>-->
<inherits name="com.smartgwt.SmartGwtNoTheme" />
<inherits name="com.smartgwt.SmartGwtNoScript"/>
<inherits name="com.smartgwtee.SmartGwtEENoScript"/>

<inherits name="com.smartgwt.Drawing"/>
<inherits name="com.smartgwt.Charts"/>
<inherits name="com.smartgwtee.tools.Tools"/>
<inherits name="com.smartgwt.Analytics"/>
<stylesheet src='../pages/resources/mmv-style.css'/>
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlue" />
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlueResources"/>
<inherits name='com.google.gwt.visualization.Visualization'/>

<entry-point class="mywebapp.client.AppEntryPoint" />

<source path="client"/>
<source path="shared"/>

<add-linker name="xsiframe"/>

<set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>

<extend-property name="locale" values="en" />

<!-- Following should exist only in Development mode-->
<!--<inherits name="com.smartgwt.tools.SmartGwtTools" />-->
<set-property name="user.agent" value="safari" />

</module>

Hear I've add xsiframe linker and other configuration tag as well
Apart from that I've added following tags in my host page.

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/modules/ISC_Drawing.js"></script>  <script src="App/sc/modules/ISC_Charts.js"></script>  <script src="App/sc/modules/ISC_Analytics.js"></script>  <script src="App/sc/skins/SilverWaveX/load_skin.js"></script>
  
Im using ant target to build application and making war file and place it tomcat9. So same way Im using ant target to run superdevmode as follows.  
  
<target name="superDevMode" description="Run GWT debug mode">     <java failonerror="true" fork="true" classname="com.google.gwt.dev.codeserver.CodeServer">        <classpath>           <fileset dir="${proj.gwt.debug.sdk}" includes="*.jar" />           <path refid="project.class.path" />        </classpath>        <jvmarg value="${proj.runtime.initmemory}" />        <jvmarg value="${proj.runtime.maxmemory}" />        <jvmarg value="${proj.runtime.permgensize}" />        <jvmarg value="-Xdebug" />        <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${proj.gwt.debug.client.debug.port}" />        <!--<arg value="-noserver" />-->          <arg value="-port" />        <arg value="${proj.gwt.debug.server.http.port}" />        <!--<arg value="-startupUrl" />-->        <!--<arg value="/${proj.webapp.name}" />-->        <arg value="${proj.gwt.module}" />     </java>  </target>
  
 In properties.xml file  
  
<!-- Following properties are used to GWT DEBUGGING -->  	<property name="proj.gwt.debug.sdk" location="D:Project\myApp\gwt\gwt-2.6.1" />  	<property name="proj.gwt.debug.server.http.port" value="8080" />  	<property name="proj.gwt.debug.client.debug.port" value="5028" />  
  
But when I'm running ant target it is giving following error
 [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:
     [java]     at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.generateSelectionScript(SelectionScriptLinker.java:422)
     [java] sc/modules/ISC_Core.js
     [java]     at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.emitSelectionScript(SelectionScriptLinker.java:309)sc/modules/ISC_Foundation.js
     [java]
     [java] sc/modules/ISC_Containers.js
java]     at com.google.gwt.dev.codeserver.CodeServer.makeModules(CodeServer.java:120)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'/>       [java]       [java]     at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:95)  
  
It is great if some one can help me on this.
  
Thanks
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/e4b4be3c-ef9e-491c-b8e9-6bee9f768908o%40googlegroups.com.

No comments:

Post a Comment