This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NoSuchMethodError  RSS feed

wbrian radley
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code is using the method org.apache.commons.collections.CollectionUtils.exists;
commons-collections-3.2.jar is on the classpath, on WEB-INF\lib, on C:\Tomcat\server\lib, and on the Hibernate home dir; there are no earlier versions on the classpath nor on these directories nor on any other of the Tomcat directories; there is only 1 version of Tomcat running: 5.5.26;
I re-installed it to be sure an older version wasn't been cached;
I can run the code that uses CollectionUtils.exists from the command line
just fine; I have the same set up at work; same version of Tomcat, etc
and all works fine;

but on this machine at home I get a javax.servlet.ServletException,
java.lang.NoSuchMethodError: org.apache.commons.collections.CollectionUtils.exists
(Ljava/util/Collection;Lorg/apache/commons/collections/Predicate Z

I hoping someone has some suggestions as to where the problem might lie;
thank you for any help that might be able to provide,

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!