If you move the default /* mapping for a Vaadin application you also need to make sure that Vaadin can find the /VAADIN/* url from where it loads all the static resources.
I have the same secnario, where i have downloaded vaadin hello world application, for that i have added a Restful service, however, i would not be able to configure the remaining part, how to connect this rest full service to the vaadin application UI. i do not hve web.xml in hellow world app, could you please attache a working sample, with this restfull webservice implementation with vaadin application. i have tried a lot but no luck.
[code] @Theme(“valo”) @SuppressWarnings(“serial”)
public class HelloWorldUI extends UI {
private int clickCounter = 0;
private Label clickCounterLabel;
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = HelloWorldUI.class)
public static class Servlet extends VaadinServlet {
}
@Override
protected void init(VaadinRequest request) {
final VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
layout.setSpacing(true);
setContent(layout);
layout.addComponent(new Label("Hello World!"));
…
[/code]rest full web service with jersy
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
@Path("/hello")
public class HelloWorldService {
@GET
@Path("/{param}")
public Response getMsg(@PathParam("param") String msg) {
String output = "Jersey say : " + msg;
return Response.status(200).entity(output).build();
}
}
Here i would like to connect these two, vaadin UI and web service, that would give the out put as follows: