Update jersey to 1.18 and fix compiler warning in eclipse