OK, resolved this; it was solved by two factors though I suspect only one to be operable. I ugraded to maven 2.0.10 and it worked out of the box.
Matt, this is the second time I've seen pretty incomprehensible errors that got resolved as a result of a maven upgrade. The last one was a similar problem with the out-of-the-box setup [archtetype, mvn, etc.] that required backing off from 2.0.9 to 2.0.8, is this a "thing" with maven? I ask because the the errors are a serious time waster and are no more material than a different version of mvn. Any thoughts on this? I like maven for the downloading and convenience but they are pretty opaque errors unless you immediately look at maven versions. Cheers and thanks as always for the ultrafast answers... -=j=- mraible wrote: > > The groupId and artifactId should both be "commons-collections". > > Matt > > On Feb 26, 2009, at 11:02 PM, jackalista <j...@twaxx.com> wrote: > >> >> I don't see *any* reference to commons nor dbcp at all. So, I'm >> guessing I >> need to add a dependency for commons- collections:3.2 as you suggest >> below. >> To do this I tried: >> >> 1. added this to the properties section that contains other dependency >> versions (like "Framework dependency versions" and "Testing dependency >> versions"): >> >> <commons.collections.version>3.2</commons.collections.version> >> >> Then I added a dependency to the <dependencies>...</dependencies> >> element, >> which already contains dependencies for jmock, junit, etc. I think >> I may >> havef the groupId wrong though. Here's now it looks: >> >> <dependency> >> <groupId>org.apache.commons</groupId> >> <artifactId>commons-collections</artifactId> >> <version>${commons.collections.version}</version> >> <scope>test</scope> >> </dependency> >> >> This didn't work, am I doing the right things, do I have things in >> the right >> place, and is the stuff I put for the groupId correct? >> >> The build said it failed to resolve artifact, so I'm guessing I have >> something wrong here as it started to give me instructions to manually >> download the stuff which seems ludicrous for something out of the >> commons >> stuff. What did I do wrong? See below for the attempt, it tried to >> download it but couldn't resolve it. I'm thinking I specified >> either the >> groupId or the artifactId or both incorrectly, can you see what's >> wrong? >> Below is the build output, in case that might tell more specifically >> than >> what I've said. Thanks, BTW... >> >> >> >> build output: >> >> [INFO] Building AppFuse Modular Application >> [INFO] task-segment: [install] >> [INFO] >> --- >> --------------------------------------------------------------------- >> [INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking >> for >> updates from appfuse >> [INFO] artifact org.apache.maven.plugins:maven-install-plugin: >> checking for >> updates from appfuse >> [INFO] [site:attach-descriptor] >> [INFO] [install:install] >> [INFO] Installing /home/jack/java/af/foo/spring/myproject/pom.xml to >> /home/jack/.m2/repository/com/foo/myproject/myproject/1.0-SNAPSHOT/ >> myproject-1.0-SNAPSHOT.pom >> [INFO] >> --- >> --------------------------------------------------------------------- >> [INFO] Building AppFuse Modular Application - Core >> [INFO] task-segment: [install] >> [INFO] >> --- >> --------------------------------------------------------------------- >> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: >> checking >> for updates from appfuse >> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: >> checking for >> updates from appfuse >> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking >> for >> updates from appfuse >> Downloading: >> http://repo1.maven.org/maven2/org/apache/commons/commons-collections/3.2/commons-collections-3.2.pom >> Downloading: >> http://static.appfuse.org/repository/org/apache/commons/commons-collections/3.2/commons-collections-3.2.pom >> [INFO] [aspectj:compile {execution: default}] >> [INFO] [resources:resources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:compile] >> [INFO] Nothing to compile - all classes are up to date >> [INFO] [resources:testResources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] Preparing hibernate3:hbm2ddl >> [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent >> recursive >> invocation. >> [INFO] [aspectj:compile {execution: default}] >> [INFO] [resources:resources] >> [INFO] Using default encoding to copy filtered resources. >> Downloading: >> http://repo1.maven.org/maven2/org/apache/commons/commons-collections/3.2/commons-collections-3.2.jar >> Downloading: >> http://static.appfuse.org/repository/org/apache/commons/commons-collections/3.2/commons-collections-3.2.jar >> [INFO] >> --- >> --------------------------------------------------------------------- >> [ERROR] BUILD ERROR >> [INFO] >> --- >> --------------------------------------------------------------------- >> [INFO] Failed to resolve artifact. >> >> Missing: >> ---------- >> 1) org.apache.commons:commons-collections:jar:3.2 >> >> Try downloading the file manually from the project website. >> >> Then, install it using the command: >> mvn install:install-file -DgroupId=org.apache.commons >> -DartifactId=commons-collections -Dversion=3.2 -Dpackaging=jar >> -Dfile=/path/to/file >> >> Alternatively, if you host your own repository you can deploy the >> file >> there: >> mvn deploy:deploy-file -DgroupId=org.apache.commons >> -DartifactId=commons-collections -Dversion=3.2 -Dpackaging=jar >> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >> >> Path to dependency: >> 1) com.dnb.supplierportal:supplierportal-core:jar:1.0-SNAPSHOT >> 2) org.apache.commons:commons-collections:jar:3.2 >> >> >> >> >> >> >> mraible wrote: >>> >>> If you have commons-dbcp as a dependency in your pom, exclude >>> commons- >>> collections from it. Either that, or add a dependency for commons- >>> collections:3.2 to your pom. >>> >>> Matt >>> >>> On Feb 26, 2009, at 10:04 PM, jackalista <j...@twaxx.com> wrote: >>> >>>> >>>> I ran that and found a reference to commons-collections 3.2, and >>>> this >>>> reference to commons-collections 2.1: >>>> >>>> +- commons-dbcp:commons-dbcp:jar:1.2.1:compile >>>> [INFO] | | +- commons-collections:commons-collections:jar: >>>> 2.1:compile >>>> >>>> Does this mean that the old 2.1 version of commons-collections is a >>>> dependency of commons-dbcp:commons-dbcp:jar version 1.2.1? >>>> >>>> So exclude commons-dbcp? There is no other reference to commons- >>>> dbcp... >>>> isn't this going to leave me without a connection pool, or is >>>> commons-dbcp >>>> no longer in use, in which case why is it still in here? >>>> >>>> Also, how do I exclude commons-dbcp, if that's what needs to be >>>> excluded? >>>> >>>> Thanks >>>> >>>> >>>> >>>> mraible wrote: >>>>> >>>>> I would run mvn dependency:tree and look for where the older >>>>> version >>>>> of commons-collections is coming from. Then exclude it in your >>>>> pom.xml. >>>>> >>>>> Matt >>>>> >>>>> On Feb 26, 2009, at 9:04 PM, jackalista <j...@twaxx.com> wrote: >>>>> >>>>>> >>>>>> Hi, >>>>>> >>>>>> I'm trying to create a new project and am doing the following >>>>>> steps: >>>>>> >>>>>> 1. run archetype mvn command for modular spring project, which >>>>>> runs >>>>>> successfully. >>>>>> 2. cd into myproject and run "mvn" to do the massive download. >>>>>> 3. it results in this (I'll only list if from the error but can >>>>>> post >>>>>> more of >>>>>> the mvn command's output if needed): >>>>>> >>>>>> [INFO] [talledLocalContainer] Tomcat 5.x starting... >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:53:48 PM >>>>>> org.apache.coyote.http11.Http11Protocol init >>>>>> [INFO] [talledLocalContainer] INFO: Initializing Coyote HTTP/1.1 >>>>>> on >>>>>> http-8081 >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:53:48 PM >>>>>> org.apache.catalina.startup.Catalina load >>>>>> [INFO] [talledLocalContainer] INFO: Initialization processed in >>>>>> 720 ms >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:53:48 PM >>>>>> org.apache.catalina.core.StandardService start >>>>>> [INFO] [talledLocalContainer] INFO: Starting service Catalina >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:53:48 PM >>>>>> org.apache.catalina.core.StandardEngine start >>>>>> [INFO] [talledLocalContainer] INFO: Starting Servlet Engine: >>>>>> Apache >>>>>> Tomcat/6.0.14 >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:53:53 PM >>>>>> org.apache.catalina.core.ApplicationContext log >>>>>> [INFO] [talledLocalContainer] INFO: Initializing Spring root >>>>>> WebApplicationContext >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:54:09 PM >>>>>> org.apache.catalina.core.StandardContext listenerStart >>>>>> [INFO] [talledLocalContainer] SEVERE: Exception sending context >>>>>> initialized >>>>>> event to listener instance of class >>>>>> net.sf.navigator.menu.MenuContextListener >>>>>> [INFO] [talledLocalContainer] java.lang.NoClassDefFoundError: >>>>>> org/apache/commons/collections/map/LinkedMap >>>>>> [INFO] [talledLocalContainer] at >>>>>> net.sf.navigator.menu.MenuRepository.<init>(MenuRepository.java: >>>>>> 38) >>>>>> [INFO] [talledLocalContainer] at >>>>>> net. >>>>>> sf. >>>>>> navigator. >>>>>> menu. >>>>>> MenuContextListener.contextInitialized(MenuContextListener.java: >>>>>> 57) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org. >>>>>> apache. >>>>>> catalina.core.StandardContext.listenerStart(StandardContext.java: >>>>>> 3830) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org. >>>>>> apache.catalina.core.StandardContext.start(StandardContext.java: >>>>>> 4337) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java: >>>>>> 1045) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:719) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java: >>>>>> 1045) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java: >>>>>> 443) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org. >>>>>> apache.catalina.core.StandardService.start(StandardService.java: >>>>>> 516) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.core.StandardServer.start(StandardServer.java: >>>>>> 710) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.startup.Catalina.start(Catalina.java:566) >>>>>> [INFO] [talledLocalContainer] at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> [INFO] [talledLocalContainer] at >>>>>> sun. >>>>>> reflect. >>>>>> NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>>> [INFO] [talledLocalContainer] at >>>>>> sun. >>>>>> reflect. >>>>>> DelegatingMethodAccessorImpl. >>>>>> invoke(DelegatingMethodAccessorImpl.java:25) >>>>>> [INFO] [talledLocalContainer] at >>>>>> java.lang.reflect.Method.invoke(Method.java:585) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) >>>>>> [INFO] [talledLocalContainer] at >>>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:54:09 PM >>>>>> org.apache.catalina.core.StandardContext start >>>>>> [INFO] [talledLocalContainer] SEVERE: Error listenerStart >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:54:09 PM >>>>>> org.apache.catalina.core.StandardContext start >>>>>> [INFO] [talledLocalContainer] SEVERE: Context >>>>>> [/supplierportal-webapp-1.0-SNAPSHOT] startup failed due to >>>>>> previous >>>>>> errors >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:54:09 PM >>>>>> org.apache.catalina.core.ApplicationContext log >>>>>> [INFO] [talledLocalContainer] INFO: Closing Spring root >>>>>> WebApplicationContext >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:54:10 PM >>>>>> org.apache.catalina.startup.HostConfig deployWAR >>>>>> [INFO] [talledLocalContainer] INFO: Deploying web application >>>>>> archive >>>>>> cargocpc.war >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:54:10 PM >>>>>> org.apache.coyote.http11.Http11Protocol start >>>>>> [INFO] [talledLocalContainer] INFO: Starting Coyote HTTP/1.1 on >>>>>> http-8081 >>>>>> [INFO] [talledLocalContainer] Feb 26, 2009 10:54:10 PM >>>>>> org.apache.catalina.startup.Catalina start >>>>>> [INFO] [talledLocalContainer] INFO: Server startup in 22241 ms >>>>>> [INFO] [talledLocalContainer] Tomcat 5.x started on port [8081] >>>>>> [INFO] [antrun:run {execution: default}] >>>>>> [INFO] Executing tasks >>>>>> [mkdir] Created dir: >>>>>> /home/jack/java/af/foo/spring/myproject/web/target/webtest-data >>>>>> [echo] Testing 'supplierportal-webapp-1.0-SNAPSHOT' with locale >>>>>> 'en' >>>>>> >>>>>> Login: >>>>>> [INFO] >>>>>> --- >>>>>> --- >>>>>> ------------------------------------------------------------------ >>>>>> [ERROR] BUILD ERROR >>>>>> [INFO] >>>>>> --- >>>>>> --- >>>>>> ------------------------------------------------------------------ >>>>>> [INFO] Error executing ant tasks >>>>>> >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> http://www.nabble.com/java.lang.NoClassDefFoundError%3A-org-apache-commons-collections-map-LinkedMap-tp22239225s2369p22239225.html >>>>>> Sent from the AppFuse - User mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>>> --- >>>>>> ------------------------------------------------------------------ >>>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>>>>> >>>>> >>>>> --- >>>>> ------------------------------------------------------------------ >>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>>>> >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/java.lang.NoClassDefFoundError%3A-org-apache-commons-collections-map-LinkedMap-tp22239225s2369p22239657.html >>>> Sent from the AppFuse - User mailing list archive at Nabble.com. >>>> >>>> >>>> --- >>>> ------------------------------------------------------------------ >>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/java.lang.NoClassDefFoundError%3A-org-apache-commons-collections-map-LinkedMap-tp22239225s2369p22240050.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >> For additional commands, e-mail: users-h...@appfuse.dev.java.net >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > > -- View this message in context: http://www.nabble.com/java.lang.NoClassDefFoundError%3A-org-apache-commons-collections-map-LinkedMap-tp22239225s2369p22301849.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net