Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=58086 Rework the change made with r1688563. When the war location points to a local path the FileInputStream will be used otherwise URLConnection will be used.