Posts Tagged Spring

java.lang.ClassNotFoundException: org.apache.commons.collections.map.LRUMap


Problem: Another issue, this time with JUnit 4 and Spring3, 
Hibernate application, where in i encountered the following  
issue that 
java.lang.ClassNotFoundException: 
org.apache.commons.collections.map.LRUMap 

Solution:  Add the following dependency to the pom.xml to resolve 
java.lang.ClassNotFoundException: 
org.apache.commons.collections.map.LRUMap 

<dependency> 
<groupId>commons-collections</groupId>
 <artifactId>commons-collections</artifactId>
 <version>3.1</version> </dependency> 

, ,

1 Comment

package org.springframework.orm.hibernate3 does not exist


Problem: Recently i am working on SpringMVC REST +Hibernate application, where in i encountered the following 
issue during the integration package org.springframework.orm.hibernate3 does  not exist 

 Solution:  Add the following dependency to the pom.xml

 <dependency>  
<groupId>org.springframework</groupId>
 <artifactId>spring-orm</artifactId>   
<version>${org.springframework.version}</version> </dependency> 

Replace the above version with the actual version or specify the version as a property in pom.xml.  
Note that, when i was working on Spring 2.5 + Hibernate, the above dependency was not needed, 
 but with Spring 3 and Hibernate, to resolve the issue that package org.springframework.orm.hibernate3
 does not exist, i added the above dependency 

, ,

Leave a comment