cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat Connector problem ... with tiny_mce Javascript editor

michaelk
Champ in-the-making
Champ in-the-making
I have configured Alfresco to use Apache using the Tomcat Connector. This is because I wanted to use SSL through the webserver (with a legitimate certificate).
Everything works fine EXCEPT if I try to use the inline editor (say editing a Wiki page or creating HTML content) The editor comes up and I can type but if I try to insert an image, create a table (or change a table property) I receive an error message ….

Not Found
The requested URL /share/res/modules/editors/tiny_mce/plugins/table/table.htm was not found on this server.
I can try the URL … https://foobar.com/share/res/modules/editors/tiny_mce/plugins/table/table.htm and sure enough I can't access the file but if I try https://foobar.com:8443/share/res/modules/editors/tiny_mce/plugins/table/table.htm there is no problem.

What am I missing in the connector that is causing this anomaly ?
workers.property is …
worker.list=tomcat
worker.tomcat.port=8009
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
worker.tomcat.lbfactor=1
and my apache conf has …
JkMount /share/* tomcat
JkMount /share tomcat
JkMount /alfresco tomcat
JkMount /alfresco/* tomcat

Michael
2 REPLIES 2

michaelk
Champ in-the-making
Champ in-the-making
A really kludgy workaround is to serve these files statically from Apache

This directive (after the JkMount commands tells Apache not to use the Tomcat connector (and serve the files statically from Apache)
 JkUnMount /share/res/modules/editors/tiny_mce/* tomcat
You then make a directory tree to mimic the file system in Tomcat (for tiny_mce)
share/res/modules/editors/tiny_mce 
cp -a ~/alfresco-4.0.c/tomcat/webapps/share/modules/editors/tiny_mce /my/apache/www-root/share/res/modules/editors

Another way to achieve the same end is to Alias the files in Apache
AliasMatch ^/share/res/modules/editors/tiny_mce/(.*) /var/home/whoever/alfresco-4.0.c/tomcat/webapps/share/modules/editors/tiny_mce/$1

michaelk
Champ in-the-making
Champ in-the-making
Actually aliasing the URL that includes the "res" directory works…
AliasMatch ^/share/res/modules/editors/tiny_mce/(.*) /share/modules/editors/tiny_mce/$1

The "res" directory doesn't exist and must be a "virtual" directory in generated by Tomcat. The Tomcat Connector does not seem to handle this case…