I have been having a tough time putting either the web client or the AjaxTK examples on Tomcat and accessing them through Apache using mod_proxy.
I am using Apache 2.0.55, Tomcat 5.5.12. I have done what I have always done before to make this work, adding proxyName and proxyPort to Tomcat's server.xml, and ProxyPass and ProxyPassReverse to Apache's httpd.conf. That is:
<Connector port=8080 ...
in Tomcat's server.xml and:
ProxyPass / http://www.mycompany.com:8080/
ProxyPassReverse / http://www.mycompany.com:8080/
in Apache's httpd.conf.
I have built both the ajax.war from AjaxTK and zimbra.war from the web mail client, and they work flawlessly in Tomcat without proxying.
When I turn proxying on as above, I can, for example, access all the Tomcat examples fine through the proxy. When I access http://www.mycompany.com/ajax, I am directed to the examples.html page, and all the links seem to be correct. When I actually select one of the examples, things seem to get busy with the initial download of all the included .js files, but eventually, the page is blank. I suspect the DwtShell hasn't been created, because, unlike when I access them directly through Tomcat, the browser window context menu is still available. I have compared the actual downloaded content when accessed through either Apache (port 80) or directly from Tomcat (port 8080), and it seems the actual rendered pages are identical. I can only assume that there is a problem with the included or imported files, but all the URL's are relative to the server root, and should work fine.
I'm sure there is just something stupid I am doing wrong, but I am stumped at this point. Any ideas would be greatly appreciated.