Problem forwarding from servlet to vaadin app


to avoid the under!/thread/4440607
described problem, I want to write a servlet that geocodes an adress and calls the vaadin app to show the adress on a map.
To do so, I have to forward from the preceding servlet to the vaadin app in order to keep the original URL.

To test this process I have written a servlet with the following code in the doGet-function:

    final String forwardUrl = "/api/";
    final RequestDispatcher dispatcher = request.getRequestDispatcher(forwardUrl);
    dispatcher.forward(request, response);

and have modified the app’s web.xml to:

        <servlet-name>Vaadin Application Servlet</servlet-name>

        <servlet-name>Vaadin Application Servlet</servlet-name>


The servlet is listining to the url-pattern /GeocodingSevlet/* where the vaadin app runs under /api/. I also integrated the /VAADIN/-pattern.

When forwarding to /api I see the spinner and in the js console an “Uncaught SyntaxError: Unexpected end of input” appears.
When forwarding to /api/ I get “failed to load vaadinBootstrap.js”, although when manualy requested per url in the browser the js-file is found.

Any ideas what I’m doing wrong? Help is very much appreciated!

Thanks in advance