You cannot directly add entries to the Web App Libraries container. This
container automatically picks up libraries in the projects WEB-INF/lib
directory and adds them to the project classpath.
Can you describe your scenario in more detail? There are other ways to get
libraries on to web project's classpath such that they will get properly
bundled into the WAR in the end.