/sac and /webmail show blank page on CentOS 5

Discuss Scalix Management Services ( formerly Scalix Admin Console )

Moderator: ScalixSupport

momouno

/sac and /webmail show blank page on CentOS 5

Postby momouno » Thu May 31, 2007 5:56 am

I try to search around these forums, wiki, howtos, and etc. it been many days for trying to look for solutions. it seems tomcat goes wrong, but I'm not sure how to correct this.

any help would be appreciated.
here are the information from the server.

omstat -a
PC Monitor Started NON-STOP 0
Directory Relay Server Started 16:45:52
Notification Server Started 16:45:52 0
Shared memory daemon Started NON-STOP
Notification Monitor Started NON-STOP
Session Monitor Started NON-STOP
Indexer Started NON-STOP
Stats Daemon Started NON-STOP
Container Access Monitor Started NON-STOP
Item Structure Server Stopped
Database Monitor Started 16:45:52
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 16:45:52
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 16:45:52
SMTP Relay Started 16:45:52
Mime Browser Controller Started 16:45:52
Event Server Started 16:45:52


omstat -s

Service Router Started 16:45:53 0
Local Delivery Started 16:45:53 0
Internet Mail Gateway Started 16:45:53 0
Local Client Interface Enabled 16:45:53 0
Remote Client Interface Enabled 16:45:53 0
Test Server Started 16:45:53 0
Request Server Started 16:45:53 0
Print Server Started 16:45:53 0
Bulletin Board Server Started 16:45:53 0
Background Search Service Started 16:45:53 0
CDA Server Started 16:45:53 0
POP3 interface Started 16:45:53 0
Omscan Server Started 16:45:53 0
Archiver Started 16:45:53 0

ps ax | grep tomcat
tomcat 7978 2.2 2.7 741972 56940 ? Sl 17:50 0:02 /usr/java/jre1.5.0_06/bin/java -server -Djava.net.preferIPv4Stack=true -Xms512m -Xmx512m -Dscalix.instance=/var/opt/scalix/ml -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/scalix-tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/scalix-tomcat/common/endorsed -classpath /usr/java/jre1.5.0_06/lib/tools.jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/scalix-tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/opt/scalix-tomcat/temp org.apache.catalina.startup.Bootstrap start
root 8085 0.0 0.0 3888 676 pts/1 S+ 17:52 0:00 grep tomcat



lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 2369 root 4u IPv4 7811 TCP localhost.localdomain:smtp (LISTEN)
omsmtpd 4208 root 4u IPv4 13330 TCP mail.abc.com:smtp (LISTEN)

lsof -i:8009
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 4903 tomcat 10u IPv4 15802 TCP localhost.localdomain:8009 (LISTEN)
java 4903 tomcat 12u IPv4 15803 TCP localhost.localdomain:8009->localhost.localdomain:46442 (ESTABLISHED)
httpd 4989 apache 17u IPv4 16114 TCP localhost.localdomain:46442->localhost.localdomain:8009 (ESTABLISHED)

java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-52)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

omshowlog -l 3

ERROR Browser (Service 14 ) 05.30.07 17:44:28
[OM 0]
Last Msg Id: 32625736.601180518259769.JavaMail.root(a)mail.abc.com
Last Msg DirectRef: 0001160ef25103da

tail -n 50 /var/opt/scalix/ml/tomcat/logs/catalina.out
May 31, 2007 5:50:27 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jre1.5.0_06/lib/i386/server:/usr/java/jre1.5.0_06/lib/i386:/usr/java/jre1.5.0_06/../lib/i386
May 31, 2007 5:50:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 527 ms
May 31, 2007 5:50:27 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 31, 2007 5:50:27 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
May 31, 2007 5:50:27 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 31, 2007 5:50:27 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on localhost/127.0.0.1:8009
May 31, 2007 5:50:27 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/62 config=null
May 31, 2007 5:50:27 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 31, 2007 5:50:27 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 321 ms
Last edited by momouno on Tue Jun 05, 2007 12:27 am, edited 1 time in total.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu May 31, 2007 7:08 am

Hi!

This should be path issue, since "java -version" should have returned 1.5.0_06, so
make sure that in the environment variable PATH has /usr/java/jre1.5.0_06/bin precede over
the path to bin folder of "java 1.4.2".

See if that helps.

Thanks,
Subir

momouno

Postby momouno » Thu May 31, 2007 8:09 am

Hi Subir,
Thanks for your fast response. I added following configuration into /etc/profile.d/java.sh
export JAVA_HOME="/usr/java/jre1.5.0_06"
export JAVA_PATH="$JAVA_HOME"
export PATH="$PATH:$JAVA_HOME:$JAVA_HOME/bin"

now the java -version came out the rite version.

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)

some how I still got the blank page on the /sac and /webmail page.

catalina.out output detail
May 31, 2007 8:07:03 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
May 31, 2007 8:07:03 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
May 31, 2007 8:07:08 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jre1.5.0_06/lib/i386/server:/usr/java/jre1.5.0_06/lib/i386:/usr/java/jre1.5.0_06/../lib/i386
May 31, 2007 8:07:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 521 ms
May 31, 2007 8:07:08 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 31, 2007 8:07:08 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
May 31, 2007 8:07:08 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 31, 2007 8:07:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on localhost/127.0.0.1:8009
May 31, 2007 8:07:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/64 config=null
May 31, 2007 8:07:08 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 31, 2007 8:07:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 315 ms

lsof -i:8009
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd 2730 apache 17u IPv4 9239 TCP localhost.localdomain:50845->localhost.localdomain:8009 (CLOSE_WAIT)
httpd 2731 apache 17u IPv4 9245 TCP localhost.localdomain:50846->localhost.localdomain:8009 (CLOSE_WAIT)
httpd 2732 apache 17u IPv4 11698 TCP localhost.localdomain:38595->localhost.localdomain:8009 (CLOSE_WAIT)
httpd 2733 apache 17u IPv4 11702 TCP localhost.localdomain:38596->localhost.localdomain:8009 (CLOSE_WAIT)
httpd 2734 apache 17u IPv4 11707 TCP localhost.localdomain:38597->localhost.localdomain:8009 (CLOSE_WAIT)
java 4177 tomcat 10u IPv4 11942 TCP localhost.localdomain:8009 (LISTEN)

Thanks,
Joe

momouno

Postby momouno » Thu May 31, 2007 11:03 pm

The problem resolved after the reinstall the scalix.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Jun 01, 2007 1:20 am

Hi Joe!

In the file /etc/httpd/conf.d/scalix-tomcat-connector.conf, you can know which type of connector is being used in the server from the lines between:
<IfModule ..>
..
..
Include /etc/opt/scalix-tomcat/connector/??/instance-*.conf
</IfModule>
Note: ?? could be jk or ajp. In your case it would possibly be ajp.
IfModule determines the type of connector used, whether its ajp or jk, accordingly, from the
folder /etc/opt/scalix-tomcat/connector/?? tell me the contents of instance-<hostname>.conf.

Thanks,
Subir

momouno

Postby momouno » Tue Jun 05, 2007 12:26 am

Hi Subir,
I'm using the ajp modules in apache2. Previously I'd configured tomcat to listen to localhost for ports 8009 at /var/opt/scalix/??/tomcat/conf/server.xml

My Content of /etc/opt/scalix-tomcat/connector/ajp/instance-mail.conf
<b>
<VirtualHost mail.abc.com:80>
Include /etc/opt/scalix-tomcat/connector/ajp/app-mail.*.conf
<LocationMatch "^/sac/*">
RewriteEngine on
RewriteRule ^(.*) https://mail.abc.com/sac [R,L]
</LocationMatch>
<LocationMatch "^/webmail/*">
RewriteEngine on
RewriteRule ^(.*) https://mail.abc.com/webmail [R,L]
</LocationMatch>

</VirtualHost>
<VirtualHost mail.abc.com:443>
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/mail.abc.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/mail.abc.com.key
Include /etc/opt/scalix-tomcat/connector/ajp/app-mail.*.conf
</VirtualHost>
</b>
then I changed the ajp access address at /etc/opt/scalix-tomcat/connector/ajp/app-mail*.conf like below
ProxyPass /sac ajp://localhost:8009/sac


Thanks for reply.

Regards,
Joe


Return to “Scalix Management Services”



Who is online

Users browsing this forum: No registered users and 2 guests