File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes NoSuchMethodError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "NoSuchMethodError" Watch "NoSuchMethodError" New topic
Author

NoSuchMethodError

wbrian radley
Greenhorn

Joined: Apr 03, 2008
Posts: 22
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,

Brian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoSuchMethodError