In one of our production environment we have a messed up structure, The tomcat WEB-INF has ../classes with configurations and ../lib with jars.
We find that the classes directory has a directory following the package structure as below, Sample:
com/test/A.class
Within the lib directory also we have another jar with the same class packaged.
The real issue was looked into when we found that duplicate processing is happening though it is not sure if the issue is because of this.
The actual question is when tomcat starts will two instances of the same class gets created and parallel processing happen? Is it a possibility because both classes directory and lib directory is in the classpath.