ajp with Apache front end

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

<VirtualHost *:80>

ServerName www.myapp.com
ServerAlias myapp.com

ProxyRequests On
ProxyPreserveHost On

<Proxy *>
Order deny,allow
Allow from all

ProxyPassReverseCookiePath /MyApp /

ProxyPass / ajp://
ProxyPassReverse / ajp://

ProxyPass /VAADIN/ ajp://
ProxyPassReverse /VAADIN/ ajp://

ProxyPass /APP/ ajp://
ProxyPassReverse /APP/ ajp://

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


And I get the following error:

Failed to load the widgetset: /MyApp/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/com.vaadin.terminal.gwt.DefaultWidgetSet.nocache.js?1359751249920

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
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 )

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

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


Only the bottom two is needed though…

I dont use the default WidgetSet but a custom one. So my WidgetSet request looks like :



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:// , if that works try and play with the rules to map / to ajp:// , you could always try a RewriteRule or a simple redirect index.html to redirect requests from / to /MyApp …