tag:blogger.com,1999:blog-5532324792230149469.post6146576570851380204..comments2023-05-31T14:13:53.872+01:00Comments on Monster Sandwich: Shopping Cart Web Application - Part 8 - SpringAnonymoushttp://www.blogger.com/profile/13723216682713567244noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-5532324792230149469.post-6774257560886284252011-06-10T06:49:04.774+01:002011-06-10T06:49:04.774+01:00hi there, did you download the ShoppingCartSpringP...hi there, did you download the ShoppingCartSpringPart8.zip file? If you extract it you can see 2 folders, in the shopping-cart-web-spring-part8 folder the WEB-INF folder exists in the WebContent folder. <br /><br />As for the libraries I didn't include them in the attachment as it would have made the download to big. Instead I configured the project to look for the libraries in a separate project called LIBS and then provide each library as a separate download. You can get all the libraries I used by stepping through each part of the tutorial starting with <a href="http://monstersandwich.blogspot.com/2009/05/shopping-cart-web-application-test.html" rel="nofollow">test cases - part 3</a>rmahonynoreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-67353526396491983922011-06-10T01:49:36.187+01:002011-06-10T01:49:36.187+01:00Hi,
I did this :
Please choose one archive and i...Hi,<br /><br />I did this :<br /><br />Please choose one archive and import both projects into your Eclipse environment:ShoppingCartSpringPart8 - Hibernate session sample application<br /><br />It's very confusing, two project imported in eclipse and no one has WEB-INF or a library.<br /><br />Please can you help us.<br />thanksKamalnoreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-41334734603972616072010-01-19T12:56:47.999+00:002010-01-19T12:56:47.999+00:00Thank you very much for your patience!
My email:
...Thank you very much for your patience!<br /><br />My email:<br />boxchampion(at)gmx.de<br /><br />Cheers!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-52290693318169094792010-01-18T17:00:37.682+00:002010-01-18T17:00:37.682+00:00Hi,
You shouldn't create a dynamic project. ...Hi, <br /><br />You shouldn't create a dynamic project. Within your Eclipse workspace you should do the following:<br /><br />1. Click on File -> Import -> General -> existing projects into workspace<br />2. Select the 'Select archive file' radio button<br />3. Click browse button and navigate to the ShoppingCartSpringJpaPart8.zip<br />4. Click the Finish button<br /><br />The project expects a project called LIBS to be in your workspace with all the libraries. If not already created you can do so by:<br />1. File -> Project -> General -> Project<br />2. Project name: LIBS<br />3. Finish<br /><br />Since this is the 8th part to the tutorial I suggest stepping through each one (starting with <a href="http://monstersandwich.blogspot.com/2009/05/shopping-cart-web-application-test.html" rel="nofollow">JUnit Part 3</a>.<br /><br />The reason I did it like that was because of the different versions of the application I had I didn't want to duplicate libraries all over the place and if I included all the libraries in one download it would exceed the size limit set on my box.net account. <br /><br />After all the libraries have been copied to the LIBS project you will probably need to configure your web project's build path as I have it pointing to Tomcat server. Therefore once you have configured your Tomcat server in Eclipse right click on the shopping-cart-web-spring-jpa-part8 project -> Libraries -> You will notice Server Library [Apache Tomcat] Highlight that and click the edit button --> if you configured Eclipse properly it should have your Tomcat configuration in a list to choose from.<br /><br />If there is anything else please send me your email and I will do my best to help you.Anonymoushttps://www.blogger.com/profile/13723216682713567244noreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-64162255032037971772010-01-18T16:40:25.047+00:002010-01-18T16:40:25.047+00:00Hi Ross,
applicationContext.xml has the bean defi...Hi Ross,<br /><br />applicationContext.xml has the bean definition inside and there are no Java EE Module Dependencies.<br /><br />Just to be sure, how should I import the project into Eclipse?<br /><br />What I did:<br /><br />- created new dyanmaic web project<br />- imported shopping-cart-core-spring-jpa-part8<br />-imported shopping-cart-web-spring-jpa-part8 into the same projectAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-41865137573674018762010-01-14T16:58:07.819+00:002010-01-14T16:58:07.819+00:00That's very strange.
You mustn't copy DA...That's very strange. <br /><br />You mustn't copy DAO's over. <br /><br />Do you have all 4 projects in your workspace?<br /><br />Please do this for me: Right click on your shopping-cart-web-spring-jpa-part8 project and go to Java EE Module Dependencies. Make sure shopping-cart-web-spring-jpa-part8 is checked and NOT shopping-cart-web-spring-part8.<br /><br />Your applicationContext.xml file in the shopping-cart-web-spring-jpa-part8 project should have the shoppingService bean definition looking like:<br /><br /><bean id="shoppingService" class="com.mydomain.shoppingcart.service.impl.ShoppingManager" />Anonymoushttps://www.blogger.com/profile/13723216682713567244noreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-90917051532544902232010-01-14T16:35:17.652+00:002010-01-14T16:35:17.652+00:00Ok. I've imported the shopping-cart-core-sprin...Ok. I've imported the shopping-cart-core-spring-jpa-part8 and shopping-cart-web-spring-jpa-part8 into one Eclipse-project. The result was the exception I mentioned above.<br /><br />Now, I've additionally copied the missing DaoClasses from shopping-cart-core-spring-part8 into this Eclipse-project and it works. But I'm not sure if this is the way it meant to be...<br /><br />GreetingsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-79309725845251284132010-01-14T14:44:06.363+00:002010-01-14T14:44:06.363+00:00Thank you and yes I am still supporting it and app...Thank you and yes I am still supporting it and appreciate all the feedback. <br /><br />It looks as if you may have the different versions of the application mixed up. Please check the following for me:<br /><br />ShoppingCartSpringPart8 - should have 2 eclipse projects (shopping-cart-core-spring-part8 and shopping-cart-web-spring-part8). <br /><br />ShoppingCartSpringJpaPart8 - should have 2 eclipse projects (shopping-cart-core-spring-jpa-part8 and shopping-cart-web-spring-jpa-part8).<br /><br /><br />It looks to me based on the exception you are getting that you are using the shopping-cart-web-spring-part8 with the shopping-cart-web-spring-part8. The reason I say that is because the shopping-cart-web-spring-part8 project should have the spring bean definitions you mentioned but the shopping-cart-web-spring-jpa-part8 shouldn'tAnonymoushttps://www.blogger.com/profile/13723216682713567244noreply@blogger.comtag:blogger.com,1999:blog-5532324792230149469.post-81813331393900954602010-01-14T14:28:55.995+00:002010-01-14T14:28:55.995+00:00Hi Ross!
Great tutorial! I don't know if you a...Hi Ross!<br />Great tutorial! I don't know if you are still "supporting" this one but I get an exception when starting the JPA-one:<br /><br />org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shoppingService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'itemDao' while setting bean property 'itemDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'itemDao' is defined<br /><br />Any help is appreciated!Anonymousnoreply@blogger.com