The problem arises when attempting to access the GWT CodeServer running within the WSL environment from a browser outside of WSL.
Specifically, I can access the GWT application's main page from my browser by navigating to localhost:8001, but I cannot connect to the CodeServer at http://localhost:8501.
From within the WSL terminal i can telnet the port and it looks good, but i cannot from the outside host.
My theory is that the codeserver only accepts connections from localhost - but i do not know how to set a host="0.0.0.0" or something like that on the jetty running the codeserver.
We use the org.codehaus.mojo gwt-maven-plugin with these settings:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.10.0</version>
<configuration>
<localWorkers>1</localWorkers>
<skip>true</skip>
<draftCompile>true</draftCompile>
<noServer>true</noServer>
<compileReport>false</compileReport>
<logLevel>INFO</logLevel>
<style>OBF</style>
<sourceLevel>auto</sourceLevel>
<extraJvmArgs>-Xmx7G --add-opens java.base/java.lang=ALL-UNNAMED</extraJvmArgs>
<workDir/>
<module>com.toh.manager.ManagerclientDev</module>
<strict>true</strict>
<port>8001</port>
<debugPort>8010</debugPort>
<codeServerPort>8501</codeServerPort>
<runTarget>managerclient.html</runTarget>
<hostedWebapp>${project.basedir}/src/main/webapp</hostedWebapp>
<persistentunitcache>true</persistentunitcache>
<persistentunitcachedir>/tmp/gwt-${project.build.finalName}</persistentunitcachedir>
</configuration>
</plugin>
Please let me know if you need anymore information
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/50809691-427f-40e1-b492-b576bfe1e17en%40googlegroups.com.
No comments:
Post a Comment