joako wrote:It works when installed manually on CentOS 5.
I have tried the manual installation.
This is what I got after the manual installation:
Code: Select all
[root@sys0 ~]# cd /etc/opt/scalix-tomcat/connector/
[root@sys0 connector]# cd ajp/
[root@sys0 ajp]# ll
total 32
-rw-r--r-- 1 root root 118 Dec 23 15:52 app-sys0.api.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.caa.conf
-rw-r--r-- 1 root root 51 Dec 23 15:52 app-sys0.m.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.res.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.sac.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.sis.conf
-rw-r--r-- 1 root root 63 Dec 23 15:52 app-sys0.webmail.conf
-rw-r--r-- 1 root root 474 Dec 23 15:46 instance-sys0.conf
And this is the content of the same directory after installing it with the supported way (scalix-installer):
Code: Select all
[root@sys0 ajp]# ll
total 36
-rw-r--r-- 1 root root 118 Dec 23 15:52 app-sys0.api.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.caa.conf
-rw-r--r-- 1 root root 51 Dec 23 15:52 app-sys0.m.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.res.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.sac.conf
-rw-r--r-- 1 root root 55 Dec 23 15:52 app-sys0.sis.conf
-rw-r--r-- 1 root root 63 Dec 23 15:52 app-sys0.webmail.conf
-rw-r--r-- 1 root root 162 Feb 10 20:36 app-sys0.wireless.conf
-rw-r--r-- 1 root root 474 Dec 23 15:46 instance-sys0.conf
Surprise, theres a new include!
Code: Select all
[root@sys0 ajp]# cat app-sys0.wireless.conf
ProxyPass /Microsoft-Server-ActiveSync ajp://sys0.scalixtraining.com:8009/wireless timeout=800
ProxyPassReverseCookiePath /wireless /Microsoft-Server-ActiveSync
On Exchange, "Microsoft-Server-ActiveSync" is a virtual directory for the IIS. And this is what the AS-devices are asking for. It would never work if we dont tell Apache how to handle requests for this URL.
From the first line in the conf-file we can see that request goes through AJP to the "wireless"-app provided by scalix-tomcat.
Code: Select all
[root@sys0 localhost]# pwd
/var/opt/scalix/s0/tomcat/conf/Catalina/localhost
[root@sys0 localhost]# ll
total 0
lrwxrwxrwx 1 root root 23 Dec 23 15:52 api.xml -> /opt/scalix/web/api.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 caa.xml -> /opt/scalix/web/caa.xml
lrwxrwxrwx 1 root root 21 Dec 23 15:52 m.xml -> /opt/scalix/web/m.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 res.xml -> /opt/scalix/web/res.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 sac.xml -> /opt/scalix/web/sac.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 sis.xml -> /opt/scalix/web/sis.xml
lrwxrwxrwx 1 root root 27 Dec 23 15:52 webmail.xml -> /opt/scalix/web/webmail.xml
lrwxrwxrwx 1 root root 28 Feb 10 20:36 wireless.xml -> /opt/scalix/web/wireless.xml
We can see the symlink to the wireless.xml. If this doesnt exist, the wireless webapp would never be deployed.
Code: Select all
[root@sys0 webapps]# pwd
/var/opt/scalix/s0/tomcat/webapps
[root@sys0 webapps]# ll
total 36
drwxr-xr-x 4 root root 4096 Dec 23 15:52 api
drwxr-xr-x 4 root root 4096 Dec 23 15:52 caa
drwxr-xr-x 5 root root 4096 Dec 23 15:52 m
drwxr-xr-x 4 root root 4096 Dec 23 15:52 res
drwxr-xr-x 4 root root 4096 Dec 23 15:46 ROOT
drwxr-xr-x 8 root root 4096 Dec 23 15:52 sac
drwxr-xr-x 5 root root 4096 Dec 23 15:52 sis
drwxr-xr-x 9 root root 4096 Dec 23 15:52 webmail
drwxr-xr-x 4 root root 4096 Feb 10 20:36 wireless
This subdirectory was created during the restart of scalix-tomcat.
Its worth to mention that a manual upgrade of any of the webapps with "rpm -U" would just update files in /opt/scalix/ but leave the files in the tomcat working directory untouched.
Trust me, I have seen enough cases where even the installer failed to do this upgrade back in time.
If one really wants to live without the installer, at least this tool would be needed:
Code: Select all
[root@sys0 bin]# /opt/scalix-tomcat/bin/sxtomcat-webapps
Usage: /opt/scalix-tomcat/bin/sxtomcat-webapps [--add|--del] instance [--timeout <seconds>] [ALL|app1 app2...]
Disclaimer: Use sxtomcat-webapps at your own risk.
Hope that makes it a bit more clear.