Saturday, December 19, 2015

Re: GWT SDM Polymer

Think I found the problem but do not know how to fix

Works:

      Compiling module com.CyberObjects.AVNOC.ToDo.AVNOCToDo
         Unification traversed 12650 fields and methods and 1030 types. 1005 are considered part of the current module and 1005 had all of their fields and methods traversed.
         Compiling 1 permutation
            Compiling permutation 0...
            Linking per-type JS with 985 new/changed types.
            Source Maps Enabled

Fails:

      Compiling module com.CyberObjects.Engineering.Engineering
         Unification traversed 401 fields and methods and 166 types. 0 are considered part of the current module and 0 had all of their fields and methods traversed.
         Compiling 1 permutation
            Compiling permutation 0...
            Linking per-type JS with 0 new/changed types.
            Source Maps Enabled
 
I noticed that the unification process did not find any fields or methods.

I am assuming that this is the problem when running the app.

Any idea on what the cause of this is and how to fix?


Regards,

Ed


On Sat, Dec 19, 2015 at 3:41 PM, Ed <ej197us@gmail.com> wrote:
Upgraded Eclipse to Mars.1
GWT 2.8.0 Beta
Polymer: vaadin-gwt-polymer-elements-1.2.1.0.jar
Bower_Components: Current

Eclipse Web App Arguements:

<code>
-XjsInteropMode JS -superDevMode -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl Engineering.html -logLevel INFO -codeServerPort 9997 -port 8888 -war C:\DATA\CyberObjectsDevSaturn\Workspace\Engineering\war com.CyberObjects.Engineering.Engineering
</code>

GWT .xml:

<code>
<?xml version="1.0" encoding="UTF-8"?>
<!--
  When updating your version of GWT, you should also update this DTD reference,
  so that your app can take advantage of the latest GWT module capabilities.
-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.0-beta1//EN"
  "http://gwtproject.org/doctype/2.8.0-beta1/gwt-module.dtd">
<module rename-to='engineering'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>
  <inherits name='com.vaadin.polymer.Elements'/>

  <!-- 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.clean.Clean'/>
  <!-- <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'/>     -->

  <!-- Other module inherits                                      -->

  <!-- Specify the app entry point class.                         -->
  <entry-point class='com.CyberObjects.Engineering.client.Engineering'/>
 
  <!-- Specify the paths for translatable code                    -->
  <source path='client'/>
  <source path='shared'/>

  <!-- allow Super Dev Mode -->
  <add-linker name="xsiframe"/>
</module>
</code>

The app compiles from the browser and issues the same error about activating jsInteropMode.JS.

Perhaps I should wait for 2.8 release?

Any help would be appreciated.

Ed


On Sat, Dec 19, 2015 at 11:30 AM, Ed <ej197us@gmail.com> wrote:
@michael Understood I am getting the deprecation message with 2.8.0 Beta 1

Still does not explain the behavior when both setups are the same and 1 runs and one does not.

Beginning to think this is an Eclipse problem but cant be sure due to the working todolist and the not working engineering.

Thanks for your comment.

Regards,

Ed


On Sat, Dec 19, 2015 at 10:37 AM, Michael Zhou <zhoumotongxue008@gmail.com> wrote:
Might be unrelated, but as far as I know -XjsInteropMode is deprecated and might be removed in the final 2.8.0 release. GWT-Polymer will probably migrate to -generateJsInteropExports instead.


On Saturday, December 19, 2015 at 10:58:37 PM UTC+8, Ed wrote:
H,
I am trying to get SDM working using:

GWT 2.8 Beta
Polymer 1.2.1.0

Here are the argument to the run manager:

-superDevMode -XjsInteropMode JS -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl Engineering.html -logLevel INFO -codeServerPort 9997 -port 8888 -war C:\DATA\CyberObjectsDevMars\Workspace\Engineering\war com.CyberObjects.Engineering.Engineering


My gwt.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!--
  When updating your version of GWT, you should also update this DTD reference,
  so that your app can take advantage of the latest GWT module capabilities.
-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.0-beta1//EN"
  "http://gwtproject.org/doctype/2.8.0-beta1/gwt-module.dtd">

   <module rename-to='engineering'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>
  <inherits name='com.vaadin.polymer.Elements'/>

  <inherits name='com.google.gwt.user.theme.clean.Clean'/>
 
 

  <!-- Specify the app entry point class.                         -->
  <entry-point class='com.CyberObjects.Engineering.client.Engineering'/>

  <!-- Specify the paths for translatable code                    -->
  <source path='client'/>
  <source path='shared'/>

  <!-- allow Super Dev Mode -->
  <add-linker name="xsiframe"/>
</module>

My web.xml:

 <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
              http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee">

  <!-- Servlets -->
  <security-constraint>
 
    <web-resource-collection>
      <web-resource-name>Static</web-resource-name>
      <description>Root Directory</description>
      <url-pattern>/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>HEAD</http-method>
      <http-method>POST</http-method>

    </web-resource-collection>
   
   
    <web-resource-collection>
      <web-resource-name>Static</web-resource-name>
      <description>Root Directory</description>
      <url-pattern>/bower_components/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>HEAD</http-method>
      <http-method>POST</http-method>

    </web-resource-collection>
 
  </security-constraint>
 
 
  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>Engineering.html</welcome-file>
  </welcome-file-list>

</web-app>

I keep getting:

GWT-Polymer ERROR: Double check that you are compiling your project with the -XjsInteropMode JS flag

There are no errors in the console and the project re compiles in SDM.

I have a working todolist and replicated the jar and bower components from the working project. 

Can some point me in the correct direction to resolve this?

Ed

--
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment