Saturday, December 19, 2015

GWT SDM Polymer

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.

No comments:

Post a Comment