Add a filter to the WAR.
Before you can add a filter to the Web archive, you must have set the classpath. See Setting a Project Classpath .
Use unique filter names in a Web archive.