PortalKit: fix bug that error when builing a war file