If a null pointer occurs when you deploy of a WAR package, you can use the following method to fix the issue.

Error message

deployWAR NullPointException

Solution

Run jar xvf xxx.war to check whether the WAR package can be decompressed as expected.