NoClassDefFound from JSP

I've modified the CLASSPATH for Tomcat to include /usr/share/commons-beanutils/lib/commons-beanutils.jar (which exists). My application has been built using ant and the JAR is included in build.xml as part of the classpath.

When viewed, my servlet throws "java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanUtils", when it's trying to populate a bean, using a class that was compiled successfully by ant. All the class does is call BeanUtils.populate(..) and it does have an "import" statement.

Because the class calling BeanUtils compiles correctly using ant , I suspect this is a problem with the classpath in Tomcat, therefore:

Can I check that Tomcat has the correct classpath? Is there any other reason Tomcat wouldn't be seeing the JAR, or that this error would occur?

Thanks.

[830 byte] By [edecaa] at [2007-10-1 2:35:45]
# 1
Not sure if it's the correct directory where it would look for the JARs. Try placing the same in WEB-INF/lib for your web-app.***Annie***
annie79a at 2007-7-8 11:43:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I have fixed this by symlinking /opt/tomcat5/server/lib/commons-beanutils.jar into my-app/build/WEB-INF/lib. This is a nasty fix, is there any specific reason I have to do it?Why aren't things in /opt/tomcat5/server/lib/ included by default?
edecaa at 2007-7-8 11:43:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
You may want to go through this http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
amber_vaidyaa at 2007-7-8 11:43:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...