Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    setting up smartgwtee project in intellij

    Hi guys,

    i cannot get the smartgwtee samples to run from within intellij using the "gwt" facet.

    Optimally, i would like to have a project that i can just launch using the "gwt development mode" console w jetty. It works fine with the "regular" gwt samples, but not my own EE project, or any of the samples.

    I can build and deploy fine using maven and use the created war manually, it's just from within intellij it doesn't work.

    The console launches, and i can click on "launch default browser" which results in me getting the entrypage html file, but nothing comes into the main "div".

    In the jetty log i get the following error message:

    00:00:00.006 [WARN] Aliased resource: file:/Users/xx/Library/Caches/IntelliJIdea90/gwt/nuba.nuba5e273cec/nubaweb.f1919e44/run/www/nuba/nuba.nocache.js==file:/Users/xx/Library/Caches/IntelliJIdea90/gwt/nuba.nuba5e273cec/nubaweb.f1919e44/run/www/Nuba/Nuba.nocache.js

    Anybody have any pointers? would be appreciated.

    #2
    Things to check:

    1. server artifacts should be configured to be deployed with the gwt facet.

    2. check if there are any server errors in the jetty startup logs or if there are any indications that the server has started

    3. If there are no indications that the server has started (with or without errors), it means that the server artifact has not been configured to be deployed in idea.

    4. If the server artifact *has* been deployed, post everything you're seeing in Firebug.

    Comment


      #3
      Hi there,

      much thanks for replying.

      1. I have tried to compare the "war output" that intellij produces with the war file my maven build produces that works from tomcat and to me they seem the same.

      2. I get no errors in the Jetty "development mode", nor in firefox/firebug, the body is just empty. However, in the Jetty console, there are warnings when the client tries to retrieve some of the files:


      00:00:00.023 [WARN] Aliased resource: file:/Users/mathias/Library/Caches/IntelliJIdea90/gwt/nuba.nuba5e273cec/nubaweb.f1919e44/run/www/nuba/nuba.nocache.js==file:/Users/mathias/Library/Caches/IntelliJIdea90/gwt/nuba.nuba5e273cec/nubaweb.f1919e44/run/www/Nuba/Nuba.nocache.js

      00:00:00.030 [WARN] 404 - GET /nuba/nuba.nocache.js (127.0.0.1) 1406 bytes

      So basically, seems like it can't find that js file... But in the exploded war created by intellij, it's in the same spot, under ROOT/nuba/Nuba.nocache.js


      I'm very happy to send you a couple of screenshots of my intellij web/gwt/artifact config if you think it'd help.

      Thankful for pointers!

      Comment


        #4
        Which version of IntelliJ are you using?

        It's clearly an issue with the setup of your IntelliJ project. If you let us know which EE sample you tried setting up in IntelliJ we can perhaps create an IntelliJ project for it.

        Comment


          #5
          Right, using 9.0.3 on Mac.

          I tried both spring-hibernate-dmi and ds-hibernate got the same behaviour in both of them, thought it'd help when i did my own from scratch, but alas... :)

          FYI, i just took the artifact generated by intellij and moved it manually into my tomcat server and there it deployed and ran fine. So it has to be something with the development console/jetty/project launch setup. Darned if i know what it is though...

          Cheers

          Comment


            #6
            Hi there,

            trying to bump this :)

            Again, happy to provide some screenshots from the intellij "module settings"/facets settings pages.

            Comment

            Working...
            X