Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Problem with expenses demo & STS 2.5.0.M3

  1. #1
    Join Date
    Oct 2010
    Posts
    8

    Default Problem with expenses demo & STS 2.5.0.M3

    After having problems with launching a GWT Roo app in STS 2.5.0.M3, as described here:
    http://forum.springsource.org/showthread.php?p=322626

    I wiped the workspace, created a new Roo app, used "script expenses.roo" to populate the project, then updated the project dependencies through Maven (the fix suggested in the above thread).

    I'm now getting an error in ScaffoldFactory.java, on this line:

    Code:
    private final EventBus eventBus = new HandlerManager(null);
    Saying that HandlerManager cannot be converted to EventBus.

    As this is scaffolding code, I'd expect it to just work. Can someone point me to a configuration issue that might be keeping it from working?

  2. #2
    Join Date
    Oct 2010
    Location
    Guernsey
    Posts
    18

    Default

    Hi,
    Are you by any chance compiling an M3 roo project with a RC1 GWT compiler?

    It appears that in M3, EventBus was an interface implemented by HandlerManager which would mean the line of code in question was valid.

    But in RC1 HandlerManager is deprecated and EventBus is an unrelated object which is why I think you are getting the error.

    If I change the GWT SDK of my Roo M3 generated Expenses project properties in Eclipse to RC1 then I get the same error reported. (Also have to adjust the order of the build path to set maven at the bottom for this to work)

  3. #3
    Join Date
    Oct 2010
    Posts
    8

    Default

    Thanks for the reply!

    This is all with a stock install of STS 2.5.0.M3, with a fresh install of GWT 2.0.4. Is that version of GWT not compatible with M3?

  4. #4
    Join Date
    Oct 2010
    Location
    Guernsey
    Posts
    18

    Default

    They have been releasing synchronized milestone versions so I think its best to use the M3 version of GWT with a project built by Roo M3. If you change to this your error message may well disappear.

  5. #5
    Join Date
    Oct 2010
    Posts
    8

    Default

    Installing GWT 2.1 did work.

    I have to say, though, that the integration with STS wasn't very intuitive. With Eclipse, you expect to be able to use an update link to get the right version, but I had to download a zip file and change the build path myself.

    Hopefully they'll work on bundling the right version of GWT with STS in the future, so it just automatically works.

    For now, though, I'm at least compiling!

  6. #6
    Join Date
    Oct 2010
    Posts
    8

    Default

    Okay, finally got things sorted by going back to a fresh install of STS.

    The problem was that when I first installed STS and went to the extensions tab, I did not see the Google plugin listed there, so installed it the way I always had (which got me an incompatible version).

    You have to maximize the extensions tab to get the scroll bars and see the rest of the many extensions you can install (including Google's).

    So yes, links to the compatible versions are there in STS, but they weren't immediately obvious (to me, at least).

  7. #7
    Join Date
    Oct 2010
    Posts
    8

    Default

    I guess I spoke too quickly. The version of GWT downloaded through the Extensions tab was still an RC1 version, apparently incompatible with the M3 version of Roo that STS came bundled with.

  8. #8
    Join Date
    Dec 2008
    Location
    DFW Texas USA
    Posts
    4

    Default Problem with expenses demo & STS 2.5.0.M3 *Fixed*

    I changed to GWT 2.1.0.M3 and that did the trick

    1. download http://google-web-toolkit.googlecode...t-2.1.0.m3.zip
    2. unzip it to a directory ( /home/alex/libs/ for example)
    3. right click on the GWT SDK library on Package explorer/Properties/configure sdk
    4 add the new sdk
    5 select as default
    6 clean project, rebuild
    7 run as webapp
    8 done.

    enjoy

  9. #9
    Join Date
    Oct 2010
    Posts
    8

    Default

    Well, it's getting closer.

    I can start it as a web app after changing to gwt-2.1.0.m3, and go to localhost:8888/, but it tells me the GWT module applicationScaffold may need recompiled. A clean and rebuild of the project doesn't change the message. I get the same message by going direct to ApplicationScaffold.html in the URL.

  10. #10
    Join Date
    Nov 2010
    Posts
    3

    Default same problem

    I'm having the same trouble. Any luck getting rid of the "GWT module 'applicationScaffold' may need to be (re)compiled" error?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •