Fix for potential null-pointer during de-serialization
Excluding duplicate libraries (XML-APIs and Serializer) and JSP-API which were included in the WAR archive when building with Gradle.