If using wso2as as the webcontainer dependency jars should be avoided from being packed into the webapp,
otherwise there might be conflict of jars.
If using maven as the build tool add the following block to the pom.xml of your webapp.

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <packagingIncludes>WEB-INF/lib/org.wso2.carbon.identity.entitlement.filter-1.0.0.jar,**/*.xml,**/*.properties,**/*.class,**/*.png,**/*.css,**/*.js,**/*.jsp</packagingIncludes>
        </configuration>
      </plugin>
    </plugins>
  </build>