Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
|
BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
This is the forum to discuss the Wrox book Beginning Spring Framework 2 by Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani; ISBN: 9780470101612
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2010, 01:59 PM
Registered User
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default cannot be applied to (java.util.List<com.wrox.beginspring.pix.model.Alb um>)

I'm getting a compile error with the released code. I ended up download and installing the following artifacts:
-Dversion=1.2.6 -Dpackaging=jar -Dfile=spring-1.2.6.jar
-Dversion=1.5.2 -Dpackaging=jar -Dfile=wsdl4j.jar
-Dversion=1.0.4 -Dpackaging=jar -Dfile=commons-logging-1.0.4.jar
-Dpackaging=jar -Dfile=xbean-2.1.0.jar
-Dversion=1.0.3 -Dpackaging=jar -Dfile=XmlSchema-1.0.3.jar
-Dversion=2.5 -Dpackaging=jar -Dfile=xbean-spring-2.5.jar

I changed the POM as indicated in this forum to get around the xfire pluggin problem and things appear to work except for this final error at the end of the compile:


[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] Copying 18 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 50 source files to C:\aaTestDev\begspringcode_091809\wrox-pix-w
eb\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

C:\aaTestDev\begspringcode_091809\wrox-pix-web\src\main\java\com\wrox\beginspring\pix\web\Alb umsController.java:[62,13] addObject(java.lang.String,java.lang.Object) in org.springframework.web.servlet.ModelAndView cannot be applied to (java.util.List<com.wrox.beginspring.pix.model.Alb um>)

C:\aaTestDev\begspringcode_091809\wrox-pix-web\src\main\java\com\wrox\beginspring\pix\web\Alb ums2Controller.java:[62,13] addObject(java.lang.String,java.lang.Object) in org.springframework.web.servlet.ModelAndView cannot be applied to (java.util.List<com.wrox.beginspring.pix.model.Alb um>)

C:\aaTestDev\begspringcode_091809\wrox-pix-web\src\main\java\com\wrox\beginspring\pix\web\Ove rviewController.java:[19,12] addObject(java.lang.String,java.lang.Object) in org.springframework.web.servlet.ModelAndView cannot be applied to (java.util.List<com.wrox.beginspring.pix.model.Alb um>)

C:\aaTestDev\begspringcode_091809\wrox-pix-web\src\main\java\com\wrox\beginspring\pix\web\Alb umPicturesController.java:[43,5] addObject(java.lang.String,java.lang.Object) in org.springframework.web.servlet.ModelAndView cannot be applied to(com.wrox.beginspring.pix.model.Album)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Thu May 20 10:28:47 PDT 2010
[INFO] Final Memory: 21M/51M
[INFO] ------------------------------------------------------------------------
C:\aaTestDev\begspringcode_091809\wrox-pix-web>


Any Suggestions?

Regards,
Mark





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 -- To Do List -- import java.util.ArrayList? SteveOliverC BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 April 3rd, 2009 02:50 PM
Compile problem wrox-pix-web marshad77 BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 0 July 1st, 2008 11:01 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.