6 Replies Latest reply on Mar 29, 2011 2:18 AM by cpuffalt

    Issues with v1.2.2?

    cpuffalt

      I downloaded the v1.2.2 distribution but when I try to run the examples things aren't working.  I'm not a maven user so I'm not sure if this is an issue with maven repositories or a missing pom.xml file.  Here's the error I'm seeing:

       

      $ pwd

      /Users/yeroc/Downloads/errai-1.2.1/examples/asyncdemo

      $ mvn gwt:run

      [INFO] Scanning for projects...

      [ERROR] The build could not read 1 project -> [Help 1]

      [ERROR]  

      [ERROR]   The project org.jboss.errai:errai-bus-demos-asyncdemo:1.2.2.Final (/Volumes/Macintosh HD/Users/yeroc/Downloads/errai-1.2.1/examples/asyncdemo/pom.xml) has 1 error

      [ERROR]     Non-resolvable parent POM: Failure to find org.jboss.errai:errai-bus-demos:pom:1.2.2.Final in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 9, column 13 -> [Help 2]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

       

      It looks to me like there should be a pom.xml file in the parent directory but there is not.

       

      Incidentally the v1.2.2 distribution when unzipped creates an errai-1.2.1 directory.  Was this rushed out the door?

       

      Thanks,

      Corey

        • 1. Issues with v1.2.2?
          cbrock

          You need to run "mvn install" first.

          • 2. Re: Issues with v1.2.2?
            cpuffalt

            Which directory do I need to be in to run this?  Can this information be added to the README.txt file in the distribution?  This isn't mentioned there.

             

            I get a similar error when attempting to run mvn install from within one of the example directories:

             

            MacBook:asyncdemo yeroc$ pwd

            /Users/yeroc/Downloads/errai-1.2.1/examples/asyncdemo

            MacBook:asyncdemo yeroc$ mvn install

            [INFO] Scanning for projects...

            [ERROR] The build could not read 1 project -> [Help 1]

            [ERROR]  

            [ERROR]   The project org.jboss.errai:errai-bus-demos-asyncdemo:1.2.2.Final (/Volumes/Macintosh HD/Users/yeroc/Downloads/errai-1.2.1/examples/asyncdemo/pom.xml) has 1 error

            [ERROR]     Non-resolvable parent POM: Failure to find org.jboss.errai:errai-bus-demos:pom:1.2.2.Final in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 9, column 13 -> [Help 2]

            [ERROR]

            [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

            [ERROR] Re-run Maven using the -X switch to enable full debug logging.

            [ERROR]

            [ERROR] For more information about the errors and possible solutions, please read the following articles:

            [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

            [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

             

            Thanks for your help.

             

            Regards,

            Corey

            • 3. Re: Issues with v1.2.2?
              cbrock

              Ah. Okay, I see what you mean. We are already aware there is a packaging problem with the zip that we're going to fix. I see now this is related to that.

               

              In the meantime, you can just get the source version from git, which will work:

               

              git clone https://github.com/errai/errai.git v1.2.2

               

              Then, you can cd errai-bus-demos/asyncdemo/

               

              Etc.

              • 4. Re: Issues with v1.2.2?
                cpuffalt

                Ok.  I did as you suggested and now I'm able to run "mvn gwt:run" without errors but something's still not right.  It does bring up the GWT dev mode window but when I launch the URL (http://127.0.0.1:8888/AsyncDemo.html?gwt.codesvr=127.0.0.1:9997) in my browser I'm getting a 404 error.  There's one warning on the GWT console which may be relevant:

                 

                                    00:00:05.060 [WARN] Module declares 1 <servlet> declaration(s), but a     valid 'web.xml' was not found at '/Volumes/Macintosh     HD/Users/yeroc/Development/errai-v1.2.2/errai-bus-demos/asyncdemo/target/errai-bus-demos-asyncdemo-1.2.2-SNAPSHOT/WEB-INF/web.xml'    

                 

                Indeed when I check in the WEB-INF there is no web.xml.  Is that normal?  Any idea what's wrong?

                 

                Thanks,

                Corey

                • 5. Re: Issues with v1.2.2?
                  rruss

                  Can you try downloading the "Most Recent" again (not the "Nightly")?  The problem should be fixed now.  Be sure to do a "mvn clean install" before your "mvn gwt:run".

                  • 6. Issues with v1.2.2?
                    cpuffalt

                    Thanks, the updated download appears to be working fine. 

                     

                    Corey