From adffaces-user-return-1271-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Thu Oct 26 06:03:40 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 20540 invoked from network); 26 Oct 2006 04:08:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 04:08:32 -0000 Received: (qmail 48538 invoked by uid 500); 25 Oct 2006 03:08:42 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 48522 invoked by uid 500); 25 Oct 2006 03:08:42 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 48512 invoked by uid 99); 25 Oct 2006 03:08:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 20:08:42 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tswall@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 20:08:29 -0700 Received: by nf-out-0910.google.com with SMTP id m18so427233nfc for ; Tue, 24 Oct 2006 20:08:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=MaJbkNWODm7fn8X2bmUpRkNzx0NU59rd5eVh3FyJuKhzzrLMqvVh4HK4svF9erm1agm5rGqmcI+HGhMMgIu5gTlB4hVo2QKzc9eHHPAO+YVkSvkD2cb5QoZsnXRrpLElChQk9k6/qbuufUGkhqrAWVJ88ugcBCB5mCQTpHDFAoE= Received: by 10.78.185.7 with SMTP id i7mr49662huf; Tue, 24 Oct 2006 20:08:07 -0700 (PDT) Received: by 10.78.147.6 with HTTP; Tue, 24 Oct 2006 20:08:07 -0700 (PDT) Message-ID: Date: Tue, 24 Oct 2006 21:08:07 -0600 From: "Scott Wall" To: adffaces-user@incubator.apache.org Subject: Re: Re: Re: Re: Re: Problem with In-Reply-To: <6dac79b90610241417r1320aa1ar35d838b5088b35e9@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13563_10917686.1161745687516" References: <6dac79b90610211336xe7a8187l111b45d008c7e77e@mail.gmail.com> <6dac79b90610231302o2d72bf97vfbf3c16d0c1749af@mail.gmail.com> <71235db40610231433k2d871d49pe4a2ffe964190be9@mail.gmail.com> <6dac79b90610231651s53bceb3eq8accc138f2d3ec6c@mail.gmail.com> <6dac79b90610241417r1320aa1ar35d838b5088b35e9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_13563_10917686.1161745687516 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline When I try to build Trinidad, Maven exits with an error on the build. The log/stack trace generated follows. I am TOTALLY not a Maven expert, but is it not finding the repository for Shale? If so, why? I am not behind a firewall. I can browse to at least one of the listed repos ( http://repo1.maven.org/maven2) and find the specified file it's claiming to have trouble with (org.apache.shale:shale-master)? Any ideas? Thanks for all your help! -Scott [INFO] ---------------------------------------------------------------------------- [INFO] Building Apache Trinidad API [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] snapshot org.apache.myfaces.trinidadbuild:maven-xrts-plugin:incubator-m1-SNAPSHOT:checking for updates from apache.snapshots [WARNING] repository metadata for: 'snapshot org.apache.myfaces.trinidadbuild:maven-xrts-plugin:incubator-m1-SNAPSHOT' could not be retrieved from repository: apache.snapshots due to an error: Error transferring file [INFO] Repository 'apache.snapshots' will be blacklisted [INFO] [xrts:generate-sources {execution: default}] [INFO] Nothing to generate - all XRTS bundles are up to date Downloading: http://people.apache.org/maven-snapshot-repository/org/apache/shale/shale-master/1/shale-master-1.pom [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.shale:shale-parent:pom:1.0.3 Reason: Cannot find parent: org.apache.shale:shale-master for project: org.apache.shale:shale-parent:pom:1.0.3 [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact ' org.apache.shale:shale-test:jar': Cannot find parent: org.apache.shale:shale-master for project: org.apache.shale:shale-parent:pom:1.0.3 org.apache.shale:shale-test:jar:1.0.3 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), java-net (https://maven-repository.dev.java.net/nonav/repository/) Path to dependency: 1) org.apache.myfaces.trinidad:trinidad-api:jar:incubator-m1-SNAPSHOT at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:551) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.apache.shale:shale-test:jar': Cannot find parent: org.apache.shale:shale-master for project: org.apache.shale:shale-parent:pom:1.0.3 org.apache.shale:shale-test:jar:1.0.3 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), java-net (https://maven-repository.dev.java.net/nonav/repository/) Path to dependency: 1) org.apache.myfaces.trinidad:trinidad-api:jar:incubator-m1-SNAPSHOT at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse( DefaultArtifactCollector.java:297) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect( DefaultArtifactCollector.java:67) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:223) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies( DefaultPluginManager.java:1117) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:366) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the metadata file for artifact ' org.apache.shale:shale-test:jar': Cannot find parent: org.apache.shale:shale-master for project: org.apache.shale:shale-parent:pom:1.0.3 at org.apache.maven.project.artifact.MavenMetadataSource.retrieve( MavenMetadataSource.java:131) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse( DefaultArtifactCollector.java:275) ... 23 more Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.shale:shale-master for project: org.apache.shale:shale-parent:pom:1.0.3 at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage( DefaultMavenProjectBuilder.java:1161) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage( DefaultMavenProjectBuilder.java:1176) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal (DefaultMavenProjectBuilder.java:674) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository( DefaultMavenProjectBuilder.java:227) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve( MavenMetadataSource.java:102) ... 24 more Caused by: org.apache.maven.project.ProjectBuildingException: Error getting POM for 'org.apache.shale:shale-master' from the repository: Error transferring file org.apache.shale:shale-master:pom:1 from the specified remote repositories: central (http://repo1.maven.org/maven2), java.net (https://maven-repository.dev.java.net/nonav/repository), java-net (https://maven-repository.dev.java.net/nonav/repository/), apache.snapshots (http://people.apache.org/maven-snapshot-repository) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository( DefaultMavenProjectBuilder.java:501) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage( DefaultMavenProjectBuilder.java:1157) ... 28 more Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Error transferring file org.apache.shale:shale-master:pom:1 from the specified remote repositories: central (http://repo1.maven.org/maven2), java.net (https://maven-repository.dev.java.net/nonav/repository), java-net (https://maven-repository.dev.java.net/nonav/repository/), apache.snapshots (http://people.apache.org/maven-snapshot-repository) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve( DefaultArtifactResolver.java:140) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve( DefaultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository( DefaultMavenProjectBuilder.java:467) ... 29 more Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData( LightweightHttpWagon.java:99) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile( DefaultWagonManager.java:369) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact (DefaultWagonManager.java:282) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact (DefaultWagonManager.java:244) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve( DefaultArtifactResolver.java:124) ... 31 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java :195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient( HttpURLConnection.java:792) at sun.net.www.protocol.http.HttpURLConnection.plainConnect( HttpURLConnection.java:744) at sun.net.www.protocol.http.HttpURLConnection.connect( HttpURLConnection.java:669) at sun.net.www.protocol.http.HttpURLConnection.getInputStream( HttpURLConnection.java:913) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData( LightweightHttpWagon.java:85) ... 36 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18 seconds [INFO] Finished at: Tue Oct 24 20:50:53 MDT 2006 [INFO] Final Memory: 7M/14M [INFO] ------------------------------------------------------------------------ On 10/24/06, Adam Winer wrote: > > Yes, it might. If you could download and build the latest Trinidad > code, I think you won't have these problems anymore. > > -- Adam > > > On 10/24/06, Scott Wall wrote: > > Do the "ancient" versions explain why I now have the "latest version" > > snapshot of Trinidad (not adf-faces anymore) and the > > selectOrderShuttle/selectManyShuttle still don't work? At his point the > > control won't allow for selection of choices. When I press the "Move" or > > "Move All" buttons the selected elements won't populate the selected > > Listbox. > > > > -Scott > > > > On 10/23/06, Adam Winer wrote: > > > > > > Matthias, > > > > > > Any chance of getting those snapshots updated with something > > > recent? I'd rather have nothing up then only having those ancient > > > versions... > > > > > > -- Adam > > > > > > > > > On 10/23/06, Matthias Wessendorf wrote: > > > > that's an old one. > > > > yeah server is down, b/c the Apache Software Foundation is moving > some > > > > servers to another place. > > > > > > > > -M > > > > > > > > On 10/23/06, Scott Wall wrote: > > > > > From the link on the ADF-Faces/Trinidad Wiki... > > > > > > > > > > > > > > http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/adf/ > > > > > > > > > > I have been trying to download the "Latest build of Trinidad..." > from > > > that > > > > > Wiki, but the server appears to be down :-/ > > > > > > > > > > SW > > > > > > > > > > On 10/23/06, Adam Winer wrote: > > > > > > > > > > > > Where did you download it? > > > > > > > > > > > > -- Adam > > > > > > > > > > > > > > > > > > On 10/23/06, Scott Wall wrote: > > > > > > > Actually, I think I'm using a milestone > > > > > > > snapshot...adf-faces-api-incubator-m1-SNAPSHOT, > > > > > > > adf-faces-impl-incubator-m1-SNAPSHOT.jar. > > > > > > > > > > > > > > SW > > > > > > > > > > > > > > On 10/21/06, Adam Winer wrote: > > > > > > > > > > > > > > > > That's very disconcerting; this could be a recently > introduced > > > > > > > > bug (I redid the implementation of the shuttle > renderers). I'll > > > > > > > > have to build up a little testcase and see what's > what. You're > > > > > > > > using a recent build, right? > > > > > > > > > > > > > > > > -- Adam > > > > > > > > > > > > > > > > > > > > > > > > On 10/20/06, Scott Wall wrote: > > > > > > > > > I tried three > > > > > > iterations..., > > > > > > > > and > > > > > > > > > ... > > > > > > > > > > > > > > > > > > The single tag is the only thing that changed. The > pertinent > > > source > > > > > > is > > > > > > > > as > > > > > > > > > follows: > > > > > > > > > > > > > > > > > > In the jsp... > > > > > > > > > > > > > > > > > > > > value="#{backing_EditDiagnosis.pickedItems}"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="#{backing_EditDiagnosis.submitForm}"/> > > > > > > > > > > > > > > > > > > In the backing bean backing_EditDiagnosis... > > > > > > > > > > > > > > > > > > private List pickedItems = new > > > ArrayList(); > > > > > > > > > > > > > > > > > > public String submitForm() { > > > > > > > > > System.out.println(pickedItems); > > > > > > > > > AdfFacesContext.getCurrentInstance > > > ().returnFromDialog(null, > > > > > > null); > > > > > > > > > return null; > > > > > > > > > } > > > > > > > > > > > > > > > > > > In the application-scope bean... > > > > > > > > > > > > > > > > > > private List diagnoses; > > > > > > > > > ... > > > > > > > > > diagnoses = new ArrayList(); > > > > > > > > > for( Diagnosis dg : d ) { > > > > > > > > > diagnoses.add(new SelectItem(dg,dg.getDescription())); > > > > > > > > > } > > > > > > > > > > > > > > > > > > The control works as expected. > > > > > > > > > > > > > > > > > > In the pickedItems "becomes" an > array > > > of > > > > > > > > > java.lang.Integer's. > > > > > > > > > > > > > > > > > > In the pickedItems is a > java.util.Listof > > > > > > > > size()=0. > > > > > > > > > > > > > > > > > > I am REALLY baffled. The especially > > > seems to > > > > > > > > violate > > > > > > > > > type safety, as the backing bean very clearly types > > > pickedItems as > > > > > > an > > > > > > > > > ArrayList(). Diagnosis inherits directly from > > > > > > > > java.lang.Object. > > > > > > > > > > > > > > > > > > Any thoughts would be helpful. > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > On 10/20/06, Adam Winer wrote: > > > > > > > > > > > > > > > > > > > > selectedItems shouldn't be a List. It > > > > > > > > > > should be a List. > > > > > > > > > > > > > > > > > > > > If your selectItems have a value that is String, > > > selectedItems > > > > > > > > > > should be List. > > > > > > > > > > > > > > > > > > > > A hint: use selectManyListbox, even > h:selectManyListbox. > > > > > > > > > > Then take *exactly* that code and just switch the tag to > > > > > > > > > > . If you know how to use > > > > > > > > > > selectManyListbox or selectManyCheckbox, you know > > > > > > > > > > how to use selectManyShuttle and selectOrderShuttle. > > > > > > > > > > > > > > > > > > > > -- Adam > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 10/20/06, Scott Wall wrote: > > > > > > > > > > > I am trying to use a selectOrderShuttle component to > allow > > > users > > > > > > to > > > > > > > > > > select > > > > > > > > > > > several elements from an array of . > This is > > > done > > > > > > in > > > > > > > > an > > > > > > > > > > ADF > > > > > > > > > > > dialog framework separate dialog that I would then > like to > > > > > > return a > > > > > > > > > > > java.util.List of objects to the backing bean of the > page > > > that > > > > > > opens > > > > > > > > the > > > > > > > > > > > dialog. However, the array that is returned has 0 > > > elements. I > > > > > > have > > > > > > > > gone > > > > > > > > > > over > > > > > > > > > > > and over this trying many different iterations such > as: > > > > > > > > > > > > > > > > > > > > > > <%@ taglib uri=" > http://myfaces.apache.org/adf/faces/html" > > > > > > > > prefix="trh" > > > > > > > > > > %> > > > > > > > > > > > <%@ taglib uri="http://myfaces.apache.org/adf/faces" > > > > > > prefix="tr" %> > > > > > > > > > > > <%@ taglib uri="http://java.sun.com/jsf/core" > prefix="f" > > > %> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="#{backing_EditDiagnosis.selectedItems}" > > > > > > > > > > > binding="#{backing_EditDiagnosis.shuttle}"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="#{backing_EditDiagnosis.submitForm}"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > backing_EditDiagnosis is a session-scoped backing > bean... > > > > > > > > > > > > > > > > > > > > > > import java.util.*; > > > > > > > > > > > import org.apache.myfaces.context.AdfFacesContext; > > > > > > > > > > > import > > > > > > > > > > > > > org.apache.myfaces.adf.component.core.input.CoreSelectOrderShuttle > > > > > > ; > > > > > > > > > > > > > > > > > > > > > > public class EditDiagnosis { > > > > > > > > > > > > > > > > > > > > > > private ArrayList selectedItems = new > > > > > > > > > > ArrayList(); > > > > > > > > > > > private CoreSelectOrderShuttle shuttle; > > > > > > > > > > > > > > > > > > > > > > public String submitForm() { > > > > > > > > > > > for(SelectItem i : selectedItems) { > > > > > > > > > > > System.out.println("Item: " + i.getLabel()); > > > > > > > > > > > } > > > > > > > > > > > AdfFacesContext.getCurrentInstance > > > > > > > > ().returnFromDialog(null,null); > > > > > > > > > > > return null; > > > > > > > > > > > } > > > > > > > > > > > > > > > > > > > > > > ...getters/setters for selectedItems, shuttle > > > > > > > > > > > > > > > > > > > > > > } > > > > > > > > > > > > > > > > > > > > > > ...applicationParams.diagnoses returns a > SelectItem[]... > > > > > > > > > > > > > > > > > > > > > > but I can never get selectedItems to have anything > other > > > than a > > > > > > > > > > size()=0. > > > > > > > > > > > What am I doing wrong? > > > > > > > > > > > > > > > > > > > > > > Thanks in advance, > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Matthias Wessendorf > > > > http://tinyurl.com/fmywh > > > > > > > > further stuff: > > > > blog: http://jroller.com/page/mwessendorf > > > > mail: mwessendorf-at-gmail-dot-com > > > > > > > > > > > > ------=_Part_13563_10917686.1161745687516--