A) Note As of Spring 3.0, Spring requires 2 or later. Source: Spring 3.1. X Reference > springframework. Orm-3.1.0.
M1. Jar org.springframework. Transaction-3.1.0.
M1. Jar spring-2.5.6. Jar spring-beans-2.0.4.
Jar Do you really think mixing current pre-release versions (3.1. X) with ancient versions (2.0.4 was released in 2007) is a good idea? As matt says: use a dependency managements system like Maven, what you are dealing with is jar hell. Here's an article about referencing Spring 3.
X artifacts from maven: Obtaining Spring 3 Artifacts with Maven.
Sean thanks for your quick response and the useful link I am going through this link but I am a newbie and just configured a simple program I want to know why I need these dependencies what is the criteria for choosing these dependencies. How to know which dependency is required and which is not. – Anupam Gupta Mar 16 at 13:58 2 @Anupam there's no easy answer, I'm afraid.
You need to develop an understanding of many different technologies and their workings together. Tutorials like this one can help but are almost always outdated. I'd suggest to stick with the current Spring Release version 3.0.
X and study their hibernate reference and samples – Sean Patrick Floyd Mar 16 at 14:03 Thanks Sean ... let me do this homework and 'll also study about maven... I hope that will make my situation little better.......any idea about the exception I mentioned above? – Anupam Gupta Mar 16 at 14:07 @Anupam your config looks ok, I'm guessing you have issues with the different version. Remove all spring* and org.
Springframework* jars, download the latest release version and just put all spring jars from that version on the classpath. That should get you up'n'running until you have more time to actually sort things out – Sean Patrick Floyd Mar 16 at 14:21 1 ..thanks a lot your guidance helped me a lot now every thing is working smoothly.. now I know what dependencies are required and why we need them. Version mismatch was the evil!
– Anupam Gupta Mar 167 at 11:59.
I suggest using a dependency management tool like Maven or Apache Ivy so you don't have to handle sorting through the dependencies and required versions on your own. Bernate docs on using with Maven.
Matt thanks for the response and the provided link...i will learn the dependency management but before learning that I want to learn what is the minimum set required and what is the role of each dependency...can you plz suggest me a link where I can know the flow of basic spring-hibernate integration program and which dependency is playing what role – Anupam Gupta Mar 16 at 14:05.
Got my problem resolved ...As pointed by Sean it was due to mixing different versions of spring and hibernate. Message for other newbies is please use latest version of spring and hibernate. As of Spring 3.0, Spring requires 2 or later.
One should never mix old and new version.
Nice in sending message to other newbies :) – Bragboy Apr 27 at 19:27.
Here's a simple file that worked for me, I used transaction manager and not template. Post.hbm. Xml Tag.hbm.
Xml User.hbm. Xml hibernate. Dialect=org.hibernate.dialect.
MySQLInnoDBDialect Also, I think the hibernate download package comes with separate folders that indicate what its specific dependencies are. As for the interrelation between hibernate and spring, I think you will have to use some dependency management tool as others have suggested. I do not think maven is a convenient tool.
Just don't ever depart from maven's expected project structure and you should be fine.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.