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 
<http://lumpofcode.blogspot.de/2012/11/configuring-gwt-codeserver-and.html> 
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.tmp
binding: user.agent=safari
binding: compiler.useSourceMaps=true
binding: locale=en
Compiling module mcs.mcs
   Compiling 1 permutation
      Compiling permutation 0...
      Source Maps Enabled
   Compile of permutations succeeded
Linking 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/mcs
   Link succeeded
   Compilation succeeded -- 21.933s
Compile completed in 22878 ms
2014-08-07 05:30:53.171:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT

2014-08-07 05:30:53.228:INFO:oejs.AbstractConnector:Started 
[email protected]:9876
The 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:

<https://lh4.googleusercontent.com/-rJKdZ6Ru5lA/U-L2S2SaLgI/AAAAAAAAAIs/mck-FBYQC3g/s1600/Untitled.png>


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

Reply via email to