title: ClassNotFoundException at Spring Bean Injection
body: <p>I have a Spring <code>beans.xml</code> that specifies a certain class <code>my.package.Class</code> to be injected somewhere in my code by <strong>Autowiring</strong>. The program is actually a web application inside a Tomcat container. Now when I launch Tomcat the logfile tells me <code>my.package.Class</code> cannot be found, even though its JAR is both in the classpath and the web application's lib/ directory. Do I have to tell Tomcat or Spring where to find the JAR, too, and if so: how?</p>