I admit that I am pretty new to all this but still assuming should not face so many issues…
Here is the stuff:
I have default vaadin app created as follows:
package vik.sakshum.sakshumweb.server;
import java.util.Date;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.Window;
import com.vaadin.ui.Button.ClickEvent;
public class SubscribeModule extends Application{
@Override
public void init() {
final Window mainWindow =
new Window("Sakshum Application");
Label label = new Label("Hello Vik");
mainWindow.addComponent(label);
mainWindow.addComponent(
new Button("What is the time?",
new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
mainWindow.showNotification(
"The time is " + new Date());
}
}));
setMainWindow(mainWindow);
}
}
The web.xml shows it as:
SubscribeModule
com.vaadin.terminal.gwt.server.GAEApplicationServlet
Subscribe/Unsubscribe module
application
vik.sakshum.sakshumweb.server.SubscribeModule
SubscribeModule
/*
So, if i run it as a web app it comes fine with the url: http://localhost:3187/Sakshumweb2.0
However, as per my requirements I need to embed it into a web page. So for that reasons i created a page index.html in the war folder. Here comes the real problem. If i run it as http://localhost:3187/Sakshumweb2.0/index.html it still shows me vaadin widget. Someone suggested me that it is due to default url patter /. Fair enough I replaced the url pattern to /server/
Now if i run http://localhost:3187/Sakshumweb2.0/index.html this works fine. But i m now unable to run the vaadin widget using http://localhost:3187/Sakshumweb2.0/server or http://localhost:3187/Sakshumweb2.0/server/SubscribeModule
So what i m missing here? please help me to get going on this