IntelilJ 8.1 with 2 GWT modules

I'm trying to add the [gwt-debugpanel][1] into my project. I'm using IntelliJ 8.1, and I've setup a stripped-down, bare-bones project for testing. The source tree looks like this:

gwt-multi-module
  src
    com.gindin
      dummy
        DummyApp.gwt.xml
        client
          DummyApp.java
        public
          DummyApp.css
          DummyApp.html
      debug
        DebugPanel.gwt.xml
        client
          GindinDebugPanel.java

Notes:
  
1. All of the classes and files under the 'dummy' package were AutoGenerated by IntelliJ's "New -> GWT Module" wizard.
2. The classes & files under the 'debug' package were basically just copied over from the gwt-debugpanel's example project.
3. I've added the necessary script & reference to the nocache.js in the DummyApp.html

Now, when I go to run the project in IntelliJ, the hosted shell gives me an error message:

> [TRACE] The development shell servlet received a request for 'com.gindin.debug.DebugPanel.nocache.js' in module 'com.gindin.dummy.DummyApp.gwt.xml'
> [WARN] Resource not found: com.gindin.debug.DebugPanel.nocache.js; (could a file be missing from the public path or a <servlet> tag misconfigured in module com.gindin.dummy.DummyApp.gwt.xml ?)

When I look at IntelliJ's module settings, the GWT facet shows both modules and their "Output Relative Paths".

How do I get IntelliJ to do whatever it needs to do? Is there something I'm missing where I point IntelliJ at the 2nd module's entry point?

thanks,

jay

2 comments
Comment actions Permalink

Is your DummyApp GWT module inherited from DebugPanel module?

I'm trying to add the [1] into my project. I'm using IntelliJ 8.1, and I've setup a stripped-down, bare-bones project for testing. The source tree looks like this:

gwt-multi-module
  src
    com.gindin
      dummy
        DummyApp.gwt.xml
        client
          DummyApp.java
        public
          DummyApp.css
          DummyApp.html
      debug
        DebugPanel.gwt.xml
        client
          GindinDebugPanel.java

Notes:
 
1. All of the classes and files under the 'dummy' package were AutoGenerated by IntelliJ's "New -> GWT Module" wizard.
2. The classes & files under the 'debug' package were basically just copied over from the gwt-debugpanel's example project.
3. I've added the necessary script & reference to the nocache.js in the DummyApp.html

Now, when I go to run the project in IntelliJ, the hosted shell gives me an error message:

>> The development shell servlet received a request for 'com.gindin.debug.DebugPanel.nocache.js' in module 'com.gindin.dummy.DummyApp.gwt.xml'
>> Resource not found: com.gindin.debug.DebugPanel.nocache.js; (could a file be missing from the public path or a tag misconfigured in module com.gindin.dummy.DummyApp.gwt.xml ?)


When I look at IntelliJ's module settings, the GWT facet shows both modules and their "Output Relative Paths".

How do I get IntelliJ to do whatever it needs to do? Is there something I'm missing where I point IntelliJ at the 2nd module's entry point?

thanks,

jay

---
Original message URL: http://www.jetbrains.net/devnet/message/5244681#5244681



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Wow... I guess I should have gone with my intuition that the gwt-debugpanel setup/configuration steps are lacking.

Interestingly enough, the example app module they have also does not have the actual application inheriting the debug panel module.

Well, it all seems to work, so thank you very much for the help.

jay

0

Please sign in to leave a comment.