Errai-TheStore

Version 3

    Building and Running TheStore

     

    You need to build the dependent artifacts (errai/trunk) before you can launch the store.

     

    cd errai/trunk

    mvn clean install

     

    [...]

     

    [INFO] ------------------------------------------------------------------------

    [INFO] Reactor Summary:

    [INFO] ------------------------------------------------------------------------

    [INFO] Errai ................................................. SUCCESS [2.735s]

    [INFO] Errai::Common ......................................... SUCCESS [2.346s]

    [INFO] Errai::Widgets ........................................ SUCCESS [2.586s]

    [INFO] Errai::Bus ............................................ SUCCESS [2.310s]

    [INFO] Errai::Workspaces ..................................... SUCCESS [5.169s]

    [INFO] Errai::Persistence .................................... SUCCESS [0.893s]

    [INFO] Errai::Bus::Demos ..................................... SUCCESS [0.019s]

    [INFO] Errai::Bus::Demos::ClientService ...................... SUCCESS [0.198s]

    [INFO] Errai::Bus::Demos::HelloWorld ......................... SUCCESS [0.219s]

    [INFO] Errai::Bus::Demos::QueryService ....................... SUCCESS [0.164s]

    [INFO] Errai::Bus::Demos::Serialization ...................... SUCCESS [0.231s]

    [INFO] ------------------------------------------------------------------------

    [INFO] ------------------------------------------------------------------------

    [INFO] BUILD SUCCESSFUL

    [INFO] ------------------------------------------------------------------------

     

    After you've done that, change into TheStore directory launch the GWT hosted mode:

     

    cd samples/TheStore/

     

    [...]

     

    [INFO] [gwt:run]

    [INFO] using GWT jars from project dependencies : 2.0.0-6757

    [WARNING] You should not declare gwt-dev as a project dependency. This may introduce complex dependency conflicts

    [INFO] establishing classpath list (scope = runtime)

    [INFO] create exploded Jetty webapp in /Users/hbraun/dev/prj/errai/samples/TheStore/war

    [INFO] auto discovered modules [org.jboss.errai.demo.thestore.TheStore]

    [INFO] using GWT jars for specified version 2.0.0-6757

    [INFO] using GWT jars for specified version 2.0.0-6757

    [...]

     

    This should launch the hosted mode browser:

     

    Screen shot 2009-11-25 at 9.07.33 PM.png

     

    Within the console you'll find the URL to point your browser to:

    [INFO] Waiting for browser connection to     http://localhost:8888/TheStore.html?gwt.hosted=192.168.0.15:9997