From: Vincent Blouin <vincent.blouin_at_gmail.com>
Date: Wed, 22 Feb 2012 06:05:37 -0800 (PST)
Maybe if you created your web resource this way in your constructor :
BASE_URI = new URI("http://localhost:9998" + "/service");
resource = Client.create().resource(BASE_URI);