Problem with Vaadin Servlet

When I do alter Vaadin`s url-pattern to anything but the default “/" or "/VAADIN/”… the page does not render on Firefox or Chrome and the strangest thing happens, on IE it renders only if I open the url, go to another page and then go back to the url. This is very strange.

These are my web.cfg contents:

Filter com.vaadin.terminal.gwt.server.ApplicationServlet application br.com.Filter widgetset br.com.widgetset.FilterGWTWidgetset Application widgetset
<servlet>
	<servlet-name>Crypto</servlet-name>
	<servlet-class>br.com.servlet.CommInServlet</servlet-class>
</servlet>

<!-- Vaadin Servlet Mapping -->
<servlet-mapping>
	<servlet-name>Filter</servlet-name>
[b]

/ <<<<<<<<<<<<<<< IF I ALTER THIS FOR ANYTHING DIFFERENT THEN "/" OR “/VAADIN/*”, MY PAGE DOES NOT RENDER… WHY?
[/b]

<!-- Criptography Servlet Mapping -->
<servlet-mapping>
	<servlet-name>Crypto</servlet-name>
	<url-pattern>/Crypto</url-pattern>
</servlet-mapping>

The other Servlet (Crypto) redirects back to Vaadin Url after including few thing on the user session.

if using any other context than /, you
also
need to specify /VAADIN/
to point to the same servlet; otherwise the browser won’t load the widgetset or themes from the correct location.

How to do that?

I tried renaming “/VAADIN/*” folder inside WebContent, but that was stupid, because it gets re-generated when the project is recompiled. So…

Again… how to make this work?

Like this:[code]

yourservlet
/application/*

<servlet-mapping>
	<servlet-name>yourservlet</servlet-name>
	<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>

[/code]

Thomas,

How can we achieve the same using annotations ?

Regards,
Nilesh

Found it.

@WebServlet(urlPatterns = {“/application/", "/VAADIN/”}, asyncSupported = true)

Thanks.