ajp with Apache front end

Has any body correctly configured Apache ajp with Vaadin? I have the following configuration:

[color=#0019ff]
<VirtualHost *:80>

ServerName www.myapp.com
ServerAlias myapp.com

ProxyRequests On
ProxyPreserveHost On

<Proxy *>
Order deny,allow
Allow from all

ProxyPassReverseCookiePath /MyApp /

ProxyPass / ajp://127.0.0.1:8009/MyApp/
ProxyPassReverse / ajp://127.0.0.1:8009/MyApp/

ProxyPass /VAADIN/ ajp://127.0.0.1:8009/MyApp/VAADIN/
ProxyPassReverse /VAADIN/ ajp://127.0.0.1:8009/MyApp/VAADIN/

ProxyPass /APP/ ajp://127.0.0.1:8009/MyApp/APP/
ProxyPassReverse /APP/ ajp://127.0.0.1:8009/MyApp/APP/

CustomLog /var/log/apache2/myapp.log combined

[/color]

And I get the following error:

[color=#ff0000]
Failed to load the widgetset: /MyApp/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/com.vaadin.terminal.gwt.DefaultWidgetSet.nocache.js?1359751249920

[/color]
If ajp does not work with Vaadin, which other alternatives can anybode suggest: put tomcat on port 80?

We use normal modproxy ( not ajp, different Java container and apache server), with no problem , Use
FireBug
or similar addon for your browser and check the original request , make sure it is mapped properly …

We only have these proxy rules: ( Note no / at the end )
[color=#2a4dfc]

ProxyPass // http://:8080//
ProxyPassReverse // http://:8080//

ProxyPass / http://:8080/
ProxyPassReverse / http://:8080/

[/color]

Only the bottom two is needed though…

I dont use the default WidgetSet but a custom one. So my WidgetSet request looks like :
[color=#2a4dfc]

https:////VAADIN/widgetsets/org.xxxxx.WidgetSet/org.xxxxx.WidgetSet.nocache.js?1359978749755

[/color]

It is a slightly different setup than yours , but I don’t see that AJP is your problem , it is the mod proxy rule and reverse rule set that is the issue.

as a note the servlet pattern mapping is define as


@WebServlet( ..... ,
      urlPatterns = {"/VAADIN/*", "/vaadin/*", "/<servlet-pattern>", "/<servlet-pattern>/*"}, 
 .... )

Try to first map only /MyApp to ajp://127.0.0.1:8009/MyApp , if that works try and play with the rules to map / to ajp://127.0.0.1:8009/MyApp , you could always try a RewriteRule or a simple redirect index.html to redirect requests from / to /MyApp …