2 Replies Latest reply on Mar 15, 2013 6:46 PM by Anton Hughes

    errors when trying to run errai examples

    Anton Hughes Master

      Hi

       

      Im trying to run the

      • errai-2.2.0.CR2\cdi-examples\errai-cdi-stock-demo and
      • errai-2.2.0.CR2\cdi-examples\errai-cdi-tagcloud-demo and
      • errai-2.2.0.CR2\cdi-examples\errai-cdi-mvp-demo and examples.

       

      I can run mvn clean install successfully, but when I run mvn gwt:run I get the following error - what am I doing wrong?

      [ERROR] Unable to start embedded HTTP server

      [ERROR] java.io.IOException: Unable to establish loopback connection

      [ERROR]         at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:125)

      [ERROR]         at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:69)

      [ERROR]         at java.security.AccessController.doPrivileged(Native Method)

      [ERROR]         at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:141)

      [ERROR]         at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)

      [ERROR]         at java.nio.channels.Pipe.open(Pipe.java:150)

      [ERROR]         at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:126)

      [ERROR]         at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)

      [ERROR]         at java.nio.channels.Selector.open(Selector.java:227)

      [ERROR]         at org.mortbay.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:313)

      [ERROR]         at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:224)

      [ERROR]         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

      [ERROR]         at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:314)

      [ERROR]         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

      [ERROR]         at org.mortbay.jetty.Server.doStart(Server.java:235)

      [ERROR]         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

      [ERROR]         at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:692)

      [ERROR]         at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)

      [ERROR]         at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)

      [ERROR]         at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)

      [ERROR]         at com.google.gwt.dev.DevMode.main(DevMode.java:311)

      [ERROR] Caused by: java.net.SocketException: Permission denied: connect

      [ERROR]         at sun.nio.ch.Net.connect0(Native Method)

      [ERROR]         at sun.nio.ch.Net.connect(Net.java:364)

      [ERROR]         at sun.nio.ch.Net.connect(Net.java:356)

      [ERROR]         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:623)

      [ERROR]         at java.nio.channels.SocketChannel.open(SocketChannel.java:184)

      [ERROR]         at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:97)

      [ERROR]         ... 20 more

       

      When I try running the

      • errai-2.2.0.CR2\bus-examples\stockdemo
      • errai-2.2.0.CR2\bus-examples\clientservice
      • errai-2.2.0.CR2\bus-examples\helloworld

       

      I get:

      C:\jboss\errai-2.2.0.CR2\errai-2.2.0.CR2\bus-examples\stockdemo>mvn clean install

      [INFO] Scanning for projects...

      Downloading: http://repo.maven.apache.org/maven2/org/jboss/errai/errai-bus-demos/2.2.0.CR2/errai-bus-demos-2.2.0.CR2.pom

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

      [ERROR]

      [ERROR]   The project org.jboss.errai:errai-bus-demos-stockdemo:2.2.0.CR2 (C:\jboss\errai-2.2.0.CR2\errai-2.2.0.CR2\bus-examples\stockdemo\pom.xml) has 1 error

      [ERROR]     Non-resolvable parent POM: Could not find artifact org.jboss.errai:errai-bus-demos:pom:2.2.0.CR2 in central (http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong

      local POM @ line 7, 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

      C:\jboss\errai-2.2.0.CR2\errai-2.2.0.CR2\bus-examples\stockdemo>

       

      when trying to run the  errai-2.2.1-SNAPSHOT examples:

      • errai-2.2.1-SNAPSHOT\bus-examples\stockdemo
      • errai-2.2.1-SNAPSHOT\bus-examples\helloworld

      I get:

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

      C:\jboss\errai-distribution-2.2.1-20130302.011032-16\errai-2.2.1-SNAPSHOT\bus-examples\stockdemo>mvn gwt:run -X

      Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)

      Maven home: C:\apache-maven-3.0.4\bin\..

      Java version: 1.7.0_01, vendor: Oracle Corporation

      Java home: C:\Program Files\Java\jdk1.7.0_01\jre

      Default locale: en_US, platform encoding: Cp1252

      OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

      [INFO] Error stacktraces are turned on.

      [DEBUG] Reading global settings from C:\apache-maven-3.0.4\bin\..\conf\settings.xml

      [DEBUG] Reading user settings from C:\Users\Anton\.m2\settings.xml

      [DEBUG] Using local repository at C:\Users\Anton\.m2\repository

      [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\Anton\.m2\repository

      [INFO] Scanning for projects...

      [DEBUG] Could not find metadata org.jboss.errai:errai-bus-demos:2.2.1-SNAPSHOT/maven-metadata.xml in local (C:\Users\Anton\.m2\repository)

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

      org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:

      [FATAL] Non-resolvable parent POM: Could not find artifact org.jboss.errai:errai-bus-demos:pom:2.2.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 7, column 13

       

       

              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)

              at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)

              at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

      [ERROR]

      [ERROR]   The project org.jboss.errai:errai-bus-demos-stockdemo:2.2.1-SNAPSHOT (C:\jboss\errai-distribution-2.2.1-20130302.011032-16\errai-2.2.1-SNAPSHOT\bus-examples\stockdemo\pom.xml) has 1 error

      [ERROR]     Non-resolvable parent POM: Could not find artifact org.jboss.errai:errai-bus-demos:pom:2.2.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 7, column 13 -> [Help 2]

      org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact org.jboss.errai:errai-bus-demos:pom:2.2.1-SNAPSHOT

              at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)

              at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)

              at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)

              at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)

              at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)

              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:410)

              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:379)

              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:343)

              at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)

              at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.jboss.errai:errai-bus-demos:pom:2.2.1-SNAPSHOT

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)

              at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)

              at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)

              ... 22 more

      Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jboss.errai:errai-bus-demos:pom:2.2.1-SNAPSHOT

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)

              ... 26 more

      [ERROR]

      [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

      C:\jboss\errai-distribution-2.2.1-20130302.011032-16\errai-2.2.1-SNAPSHOT\bus-examples\stockdemo>