configured JAX-RS and added PingResource