Set api to be localhost:8080.  You can override this in a context.xml if you need.