Hi,
thank you, good explanation!
I think I got it now. The code server is running and I am able to run my app.
But there is one limitation: I cannot see my sources! According to a howto that I found on the web, the sources should be displayed in chrome dev tools under "localhost", but I don't see them.
In the run configuration, I used the java arguments from the howto:
-bindAddress 0.0.0.0 mcs.mcs
I also added my src folder to the classpath.
When I run it, the console looks like this:
workDir: /tmp/gwt-codeserver-2052393959063966034.tmpbinding: user.agent=safaribinding: compiler.useSourceMaps=truebinding: locale=enCompiling module mcs.mcsCompiling 1 permutationCompiling permutation 0...Source Maps EnabledCompile of permutations succeededLinking into /tmp/gwt-codeserver-2052393959063966034.tmp/mcs.mcs/compile-1/war/mcs; Writing extras to /tmp/gwt-codeserver-2052393959063966034.tmp/mcs.mcs/compile-1/extras/mcsLink succeededCompilation succeeded -- 21.933sCompile completed in 22878 ms2014-08-07 05:30:53.171:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT2014-08-07 05:30:53.228:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:9876The code server is ready.Next, visit: http://magnus:9876/
Then I open http://magnus:9876/.
To start my app, I tried two different methods found on the web:
- Open the index.html file on the local file system by entering "file:///<path>/index.html in the URL field
- Calling "Run as Web Application" in eclipse (thus, starting a second process in eclipse, seems to work)
But in both cases, I don't see my sources:
Here's my module.xml:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.6.0//EN""http://google-web-toolkit.googlecode.com/svn/tags/2.6.0/distro-source/core/src/gwt-module.dtd"><module rename-to='mcs'><inherits name='com.google.gwt.user.User'/><inherits name='com.google.gwt.user.theme.clean.Clean'/>
<inherits name='awi'/><entry-point class='mcs.client.Application'/><source path='client'/><source path='shared'/><!-- Super Dev Mode -->
<add-linker name="xsiframe"/><set-configuration-property name="devModeRedirectEnabled" value="true"/><set-property name="compiler.useSourceMaps" value="true" /><!-- debug --><set-property name="compiler.stackMode" value="emulated" /><set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true" /><set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" /></module>
Thank you,
Magnus
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment