I am facing a strange problem in
tomcat web server. I am using custom beans for storing information obtained from users while registering with my site. When I save the bean class file in Web-inf\classes directory, the server cannot access the bean but when the same bean is saved in a JAR file in package hierarchy in Web-inf\lib, the same is easily accessed by server. Why does this happen ?