【问题标题】:GWT 2.5.1 SuperDevMode not enabledGWT 2.5.1 SuperDevMode 未启用
【发布时间】:2014-06-13 13:23:56
【问题描述】:

我从事 GWT/GWTPHONEGAP/MGWT 项目,我需要使用带有 SuperdevMode 的 gwt 2.5.1。

我使用maven和以下命令“classpath gwt:runco​​deServer”,当我编译我的项目时没有出现错误,但是当我去我的webBrowser使用superDevMode时,无法重新编译,错误消息是“这个模块有没有启用 Super Dev 模式”尽管我的 *.gwt.xml 包含启用了 superDevMode 的以下行。

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

具有以下入口点

  <entry-point class="**.**.*.client.MgwtAppEntryPoint" /> 

当我访问 localhost:9876 时,项目存在并且源代码可用。

按照我的maven配置:

码头:

<plugin>
                        <groupId>org.eclipse.jetty</groupId>
                        <artifactId>jetty-maven-plugin</artifactId>
                        <version>9.1.2.v20140210</version>

                        <configuration>

                            <reload>manual</reload>


                            <httpConnector>
                                <port>9090</port><!-- port 8080 already use by tiviz-web -->
                            </httpConnector>

                            <webApp>

                                <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
                                    <resourcesAsCSV>src/main/webapp,${basedir}/target/tiviz-gwt-0.0.1-SNAPSHOT</resourcesAsCSV>
                                </baseResource>
                                <extraClasspath>${basedir}/src/main/webapp/WEB-INF/classes</extraClasspath>
                                <allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>

                            </webApp>

                            <systemProperties>
                                    <systemProperty>
                                        <name>gwt.codeserver.port</name>
                                        <value>9876</value>
                                    </systemProperty>
                            </systemProperties>

                        </configuration>

                    </plugin>

还有我的gwt-maven-plugin配置

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
                    documentation at codehaus.org -->
                <configuration>
                    <!-- run params -->
                    <copyWebapp>false</copyWebapp>
                    <productionMode>false</productionMode>
                </configuration>
            </plugin>

【问题讨论】:

  • 您使用的是哪个浏览器?可以加书签吗?
  • 是的,我可以添加书签,并且我使用 chrome,当我使用 eclipse 并在没有 codeServer 部分的情况下使用 google 插件 (127.0.0.1:8888**.html?codeServer..) 运行时,我是可以使用超级开发模式,所以我很确定问题来自我的码头服务器,但我不知道在哪里
  • 能否切换到 GWT 2.6.1 再试一次。
  • 不幸的是,mgwt 不支持 GWT 2.6.1,下一个版本必须支持.. 但我知道 SuperDevMode 是在 GWT 2.5.1 中引入的
  • 问题来自我在 jetty 插件中的 webapp 资源路径中的错误配置。

标签: gwt mgwt gwt-2.5 gwt-super-dev-mode


【解决方案1】:

问题来自我在 jetty 插件中的 webapp 资源路径中的错误配置。

【讨论】:

    猜你喜欢
    • 2014-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-10
    • 2013-04-10
    • 1970-01-01
    • 1970-01-01
    • 2013-11-08
    相关资源
    最近更新 更多