in your Application declaration then it would'nt work ( it will create the view port before registering the remote api) the solution is quite simple, just set autoCreateViewport to false, and than in Application.launch create the viewport manually after registering the remote api: