开发者

EHCache implementation with Spring DAO

开发者 https://www.devze.com 2023-01-28 07:58 出处:网络
I am trying to implement EHCache with Spring DAO . I have a requirement where i need to show the same output when coming form 2nd JSP page to 1st JSP page , so ideally if i will put the data retrived

I am trying to implement EHCache with Spring DAO . I have a requirement where i need to show the same output when coming form 2nd JSP page to 1st JSP page , so ideally if i will put the data retrived earlier from database to the cache then i can retrieve it in stead of making database connection once again and bring the data .

Below is the list of JAR files with version i am using for EHCache

  1. spring.jar
  2. ehcache-core-2.2.0.jar
  3. slf4j-api-1.6.0.jar
  4. slf4j-log4j12-1.6.1.jar
  5. slf4j-jdk14-1.5.11.jar

BUt while building the application with ant script i am getting "NoSuchMethodError" . Clearly that method in the JAR file . And when i am putting the proper jar file it i开发者_如何学JAVAs throwing error that some class is missing .

Can somebody suggest the exact version and list of JAR files for EHCache ? I am using JDK 1.6 .

Thanks

Satyajit


I don't know if it is the problem (and details on what the missing method is will help), but it is odd that you have two slf4j implementation jars (log4j and jdk14). You also seem to be mixing 1.5 and 1.6 level slf4j jars which likely isn't a good idea.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号