Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Super dev mode + JSP page in Tomcat

I have a .jsp page (the main page of my gwt module) and I'm trying to enable super dev mode as I'm migrating to gwt 2.6. Following the explanations I found out on internet, once I launch the codeserver and add the bookmarklets, next I gotta open the page in my browser, so I call the jsp page from my tomcat server.
The problem is that nothing happens, and looking at the chrome console it seems it is unable to find my module/module.nocache.js
Any idea?

EDIT : added .gwt.xml

<inherits name="XXX.frontend.gwt.Framework"/>

<inherits name="XXX.frontend.gwt.sample.frontend.module.blanc.Module"/>

<!-- Specify the paths for translatable code                    -->
<source path='client'/>
<source path='shared'/>

<!-- Specify the application entry point class                  -->
<entry-point class='XXX.frontend.gwt.client.FrameworkEntryPoint'/>


<!-- Compile for specific browser -->
<!-- <set-property name="user.agent" value="ie8,ie9,ie10,gecko1_8,safari" /-->

<!-- Compile for specific language -->
<extend-property name="locale" values="fr" />
<set-property-fallback name="locale" value="fr" />
<set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE' />
<set-configuration-property name="devModeUrlWhitelistRegexp" value="http://(localhost|127\.0\.0\.1)(:\d+)?/.*" />
<add-linker name="xsiframe" />
<set-property name="compiler.useSourceMaps" value="true" />

like image 278
Adnane.T Avatar asked Nov 11 '22 14:11

Adnane.T


1 Answers

You have to load your .nocache.js file from your codeserver instance.

In your .jsp you must have something like this:

<script src="http://localhost:9876/myapp/myapp.nocache.js"></script>

In your gwt.xml you need these lines as well:

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

<set-property name="compiler.useSourceMaps" value="true" />
like image 73
Manolo Carrasco Moñino Avatar answered Nov 14 '22 23:11

Manolo Carrasco Moñino