Why packaging is important ? Original code was pretty straight forward Java coding which looks and works quite smoothly . However, all compiled classes appear to be placed in one folder WEB-INF/classes/ and in some way this minor design issue hides a business logic of apps.
Source: LXer – Adding packaging and refactoring one sample of Java CRUD Application for Tomcat 9.0.41