4 Replies Latest reply on May 17, 2011 7:27 AM by Jose Freitas

    Seam3 Examples won't build

    Simon Berry Newbie

      Just downloaded Seam3 and installed maven3 to allow me to build the samples.
      It DOESN'T build!!! Why is it so difficult just to get started with this?

        • 1. Re: Seam3 Examples won't build
          Rend D Newbie

          Make sure that you have the JBoss maven repos configured:


          http://community.jboss.org/wiki/MavenGettingStarted-Users


          Even then, the Booking example fails with the error below.


          $ mvn package jboss:hard-deploy


          ...


          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 3:44.857s
          [INFO] Finished at: Sun May 15 16:17:43 EDT 2011
          [INFO] Final Memory: 9M/106M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal on project seam-booking: Could not resolve dependencies for project org.jboss.seam.examples:seam-booking:war:3.0.0.Final: The following artifacts could not be resolved: org.picketlink.idm:picketlink-idm-core:jar:1.5.0.Alpha02, javax.enterprise:cdi-api:jar:1.0-SP4, org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Final, org.jboss.test:richfaces-selenium:jar:1.5.1.Final, org.jboss.arquillian:arquillian-junit:jar:1.0.0.Alpha5, org.jboss.arquillian:arquillian-impl-base:jar:1.0.0.Alpha5, org.jboss.arquillian:arquillian-api:jar:1.0.0.Alpha5, org.jboss.arquillian:arquillian-spi:jar:1.0.0.Alpha5, org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.0.0-alpha-12, org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.0.0-alpha-12, org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:1.0.0-alpha-12, org.jboss.weld:weld-core:jar:1.1.0.Final, org.jboss.weld:weld-api:jar:1.1.Final, org.jboss.weld:weld-spi:jar:1.1.Final, org.jboss.interceptor:jboss-interceptor-spi:jar:2.0.0.CR1, org.jboss.interceptor:jboss-interceptor-core:jar:2.0.0.CR1, org.jboss.spec.javax.el:jboss-el-api_2.2_spec:jar:1.0.0.Final, org.jboss.spec.javax.enterprise.deploy:jboss-jad-api_1.2_spec:jar:1.0.0.Final, org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.0_spec:jar:1.0.0.Final, org.jboss.spec.javax.xml.registry:jboss-jaxr-api_1.0_spec:jar:1.0.0.Final, org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec:jar:1.0.0.Final, org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec:jar:1.0.0.Final, org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final, org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec:jar:1.0.0.Final, org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec:jar:1.0.0.Final, javax.mail:mail:jar:1.4.2, org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final: Could not transfer artifact org.picketlink.idm:picketlink-idm-core:jar:1.5.0.Alpha02 from/to jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/): Error transferring file: Connection refused -> [Help 1]
          [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/DependencyResolutionException
          



          Any ideas?

          • 2. Re: Seam3 Examples won't build
            Jacek Laskowski Newbie

            Hi,


            Mind the error message: Error transferring file: Connection refused. I think it's a temporary hiccup with the repo https://repository.jboss.org/nexus/content/groups/public-jboss/. Check out if you can connect without troubles.


            Jacek
            http://blog.japila.pl/

            • 3. Re: Seam3 Examples won't build
              Rend D Newbie

              Jacek Laskowski wrote on May 15, 2011 17:04:


              Mind the error message: Error transferring file: Connection refused. I think it's a temporary hiccup with the repo https://repository.jboss.org/nexus/content/groups/public-jboss/. Check out if you can connect without troubles.


              Hi Jacek,


              I can connect to that URL in a web browser, but maven fails all the same. I've experienced this same error since I first tried this a couple days ago. I ran the mvn command with full logging enabled:


              $ mvn -X package jboss:hard-deploy


              [INFO] ------------------------------------------------------------------------
              [INFO] BUILD FAILURE
              [INFO] ------------------------------------------------------------------------
              [INFO] Total time: 2:00.995s
              [INFO] Finished at: Sun May 15 20:46:17 EDT 2011
              [INFO] Final Memory: 13M/104M
              [INFO] ------------------------------------------------------------------------
              [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.1:process (attach-license) on project seam-booking: Error downloading resources JAR. Error downloading. Could not transfer artifact org.jboss.weld:weld-license:jar:1 from/to jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/): Error transferring file: Connection refused
              [ERROR] org.jboss.weld:weld-license:jar:1
              [ERROR] 
              [ERROR] from the specified remote repositories:
              [ERROR] jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/, releases=true, snapshots=true),
              [ERROR] jboss-snapshots-repository (http://repository.jboss.org/nexus/content/groups/public, releases=false, snapshots=true),
              [ERROR] central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
              [ERROR] -> [Help 1]
              org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.1:process (attach-license) on project seam-booking: Error downloading resources JAR.
                   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
                   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
                   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
                   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
                   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
                   at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
                   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
                   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
                   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:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   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.apache.maven.plugin.MojoExecutionException: Error downloading resources JAR.
                   at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.downloadBundles(ProcessRemoteResourcesMojo.java:1022)
                   at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:488)
                   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
                   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
                   ... 19 more
              Caused by: org.apache.maven.shared.downloader.DownloadException: Error downloading.
                   at org.apache.maven.shared.downloader.DefaultDownloader.download(DefaultDownloader.java:58)
                   at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.downloadBundles(ProcessRemoteResourcesMojo.java:1014)
                   ... 22 more
              Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not transfer artifact org.jboss.weld:weld-license:jar:1 from/to jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/): Error transferring file: Connection refused
                org.jboss.weld:weld-license:jar:1
              
              from the specified remote repositories:
                jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/, releases=true, snapshots=true),
                jboss-snapshots-repository (http://repository.jboss.org/nexus/content/groups/public, releases=false, snapshots=true),
                central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
              
                   at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:223)
                   at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
                   at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
                   at org.apache.maven.shared.downloader.DefaultDownloader.download(DefaultDownloader.java:54)
                   ... 23 more
              Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.jboss.weld:weld-license:jar:1 from/to jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/): Error transferring file: Connection refused
                   at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
                   at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
                   at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
                   at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
                   at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:213)
                   ... 26 more
              Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.jboss.weld:weld-license:jar:1 from/to jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/): Error transferring file: Connection refused
                   at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949)
                   at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
                   at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)
                   at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)
                   at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)
                   at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)
                   ... 30 more
              Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file: Connection refused
                   at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
                   at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
                   at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
                   at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
                   at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:608)
                   at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:64)
                   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                   at java.lang.Thread.run(Thread.java:662)
              Caused by: java.net.ConnectException: Connection refused
                   at java.net.PlainSocketImpl.socketConnect(Native Method)
                   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
                   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
                   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
                   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
                   at java.net.Socket.connect(Socket.java:529)
                   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:559)
                   at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)
                   at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
                   at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
                   at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
                   at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
                   at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
                   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
                   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
                   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
                   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
                   at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
                   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
                   at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
                   ... 8 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/MojoExecutionException
              


              • 4. Re: Seam3 Examples won't build
                Jose Freitas Newbie

                Rend D,


                Are you experiencing this with other maven repositories too?


                this is a weird error, I don't think it's a problem in our pom but maybe you could try to create a maven project add those jboss repositories and add a dependency to for instance, seam-faces. If you still experience the same error, It could be a problem with your network, maybe a proxy problem, but I don't see a reason for jboss nexus to refuse a connection for downloading.