Apache integration missing jsoap

Discuss the Scalix web client

Moderators: ScalixSupport, admin

gcc008

Apache integration missing jsoap

Postby gcc008 » Sun Jan 01, 2006 7:42 pm

Am trying to access swa via Apache and mod_jk rather than Tomcat directly. However, I got the following error message in my Apache log after I submit username and password at the login page.

[Sun Jan 01 22:09:07 2006] [error] [client 192.168.21.163] File does not exist:
/opt/jakarta-tomcat-5.0.28/webapps/webmail/jsoap

Have followed the insructions in the forum to use mod_jk. See config below. Must be some configuration issues but I have little to no knowledge of JAVA and Tomcat. Could someone give me some hints on this.

Environment:
Linux: Redhat EL4
Apache: 2.0.52
Tomcat: 5.0.28 (comes with Scalix)
J2SDK: 1.4.2_10 (from Sun)
mod_jk: 1.2.14.1 (from jpackage.org)

mod_jk.conf
------------------------
LoadModule jk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

Alias /webmail "/opt/jakarta-tomcat-5.0.28/webapps/webmail"
<Directory "/opt/jakarta-tomcat-5.0.28/webapps/webmail">
Options FollowSymLinks
</Directory>
JkMount /webmail/servlet/* ajp13
JkMount /webmail/*.jsp ajp13

Alias /sac "/opt/jakarta-tomcat-5.0.28/webapps/sac"
<Directory "/opt/jakarta-tomcat-5.0.28/webapps/sac">
Options FollowSymLinks
</Directory>
JkMount /sac/servlet/* ajp13
JkMount /sac/*.jsp ajp13

Alias /caa "/opt/jakarta-tomcat-5.0.28/webapps/caa"
<Directory "/opt/jakarta-tomcat-5.0.28/webapps/caa">
Options FollowSymLinks
</Directory>
JkMount /caa/servlet/* ajp13
JkMount /caa/*.jsp ajp13

DirectoryIndex index.jsp
-------------------------

workers.properties
-------------------------
workers.tomcat_home=/opt/jakarta-tomcat-5.0.28/
workers.java_home=/usr/java/j2sdk1.4.2_10/
ps=/

worker.list=ajp12, ajp13, jboss

worker.ajp12.port=8007
worker.ajp12.host=127.0.0.1
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=127.0.0.1
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.jboss.port=8809
worker.jboss.host=127.0.0.1
worker.jboss.type=ajp13
worker.jboss.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13, jboss

worker.inprocess.type=jni

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar

worker.inprocess.cmd_line=start

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
-----------------------------------

Many Thanks,

gcc008

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Jan 02, 2006 1:36 pm

Looks relatively good... ;-)

Please excuse if I don't want to play around with your complete stack, but maybe this helps somehow...

- We use JK a lot, so it works.
- The next Scalix release will include automated setup for JK; the config files we ship with this look similar to the following....as follows:

Code: Select all

[conf.d]# more scalix-jk-common.conf
#
# Scalix JK connector configuration
# (file common to all platforms)
#

# Setup JK connector needed to run Tomcat under Apache server:

<IfModule mod_jk.c>
# Set the jk log level [debug/error/info]
JkLogLevel          info
# Select the log format
JkLogStampFormat   "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions          +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# Send everything for context /examples to worker named worker1 (ajp13)
JkMount            /webmail* worker1
JkMount            /sac* worker1
JkMount            /caa* worker1
JkMount            /webcal* worker1
JkMount            /res* worker1
</IfModule>

[conf.d]# more scalix-jk-redhat.conf
#
# Scalix JK connector configuration
# (file specific to RedHat platforms)
#

<IfModule mod_jk.c>
# Where to find workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to acce
ss_log)
JkLogFile     /var/log/httpd/mod_jk.log
</IfModule>

[conf.d]# more /etc/httpd/conf/workers.properties
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300





I'm sure there are many more versions of the config that will work, but this is running like that on one of our QA servers.

Cheers,
Florian.
Florian von Kurnatowski, Die Harder!

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Jan 02, 2006 1:37 pm

Again, we found that this is one of the most useful and good configurations, but also one of the more difficult ones, therefore, we'll be including it in our installer very soon! ;-)

Cheers,
Florian.
Florian von Kurnatowski, Die Harder!

gcc008

Postby gcc008 » Mon Jan 02, 2006 9:56 pm

OK. I see the difference.

I change:

Code: Select all

JkMount /webmail/servlet/* ajp13
JkMount /webmail/*.jsp ajp13


to

Code: Select all

JkMount /webmail* ajp13


and the same for sac and caa.

It works perfectly now.


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 1 guest