Of course setting the classpath is only useful for compiling the servlets and classes. The system classpath is ignored by the container serving the web application when deployed.
To deploy the classes, they must be place in one of the locations defined by the Servlet Specification. For example, WEB-INF/classes for standalone classes, or WEB-INF/lib for jar files. There are also container-defined locations to share classes across web apps.