• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Spring framework and Guava version compatability  RSS feed

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the bug reported here: https://nvd.nist.gov/vuln/detail/CVE-2018-1199 I am upgrading Spring in my project as follows: Spring framework from 4.3.10 to 4.3.16; Spring security from 4.2.3 to 4.2.4;
I am able to make the build successfully with upgraded new version, but it gives following error when I deploy this build on Tomact: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableAsList
I use Guava version, which is 12.0.0 in my project. I tried to upgrade this Guava version from 12.0.0 to 16.0 or 19.0, 24.1-jre ; but then it gives compilation error in my existing code for the following import:

import javax.annotation.concurrent.Immutable;

Can someone please suggest me, what could be the possible fix for this error I get here. I am absolutely clueless.
If I could know:: Which version for Guava is compatible with SPRING4.3.16 & JDK1.7. That will help me to get solution.

Thank you for your time to reading my question.
 
Ramesh Kumar Swarnkar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is misleading. Because the Spring configuration file was looking for log4j property file which cannot be found. When I added the log4j property files, the spring context could inject it in the declared element and went fine now. Thanks !
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!