SWA Not working.

Discuss the Scalix web client

Moderators: ScalixSupport, admin

linuxindex

SWA Not working.

Postby linuxindex » Wed Jan 18, 2006 2:34 pm

Hi Scalix Support

We are experiancing problem with Scalix Webmail. Initially we had a problem with SAC when we were not able to login to the admin interface. The problem was fixed when we added FC4 JAVA_OPTS and JAVA_ENDORSED_DIRS option as mentioned in the FC4 sticky.

Here is out Setup.

Java

java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode)

Scalix
scalix-9.4.2-community-intel-rh

Tomcat

Scalix provided tomcat in the third party dir installed in /opt

Follwing is what we added in setclasspath.sh file of the Scalix provided tomcat server.

JAVA_OPTS="-server -Xms256m -Xmx256m -Djava.net.preferIPv4Stack=true"
JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed-Djava.net.preferIPv4Stack=true

Here is out ps -ef |grep tomcat output

root 8604 1 0 12:44 pts/1 00:00:08 /usr/java/bin/java -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/tomcat/common/endorsed-Djava.net.preferIPv4Stack=true -classpath /usr/java/lib/tools.jar:/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start

Unfortunatly, before we edited the JAVA_ENDORSED_DIRS option scalix webmail worked fine.

After we added the JAVA_ENDORSED_DIRS entry scalix webmail stops working and throws nul pointer exception on the browser.

When we disabled the JAVA_ENDORSED_DIRS the scalix webmail worked fine.
When we disable the JAVA_ENDORSED_DIRS, SAC stops working.

Now we are in a delema that we have to use either the SAC or the webmail.

Below is the detail error we see on the browser .
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)


root cause

java.lang.NullPointerException
org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)


We would love to know what are we doing wrong.

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

Postby ScalixSupport » Wed Jan 18, 2006 2:47 pm

JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed-Djava.net.preferIPv4Stack=true


You do not need to include the -Djava.net.preferIPv4Stack=true option in JAVA_ENDORSED_DIRS.
Cheers

Dave

linuxindex

Webmail Issue.

Postby linuxindex » Wed Jan 18, 2006 3:39 pm

Thanks for your information. Unfortunatly when we take remove JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed-Djava.net.preferIPv4Stack=true
the SAC stops working and does not let us login with errors that the admin server is not running. Without this entry the Webmail works fine.

When we add the JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed-Djava.net.preferIPv4Stack=true that's when SAC works but Webmail stops working.

I spent last 4 days to debug this issue and went through the forum without any sucess.

Please let us know if there is any alternative.

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

Postby ScalixSupport » Wed Jan 18, 2006 7:00 pm

I think you misunderstood me. You still need JAVA_ENDORSED_DIRS but you do not need the -D option. It's only supposed to be present in the JAVA_OPTS value.

Cheers

Dave

linuxindex

SWA Not working.

Postby linuxindex » Wed Jan 18, 2006 7:27 pm

Currently I have JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed in setclasspath.sh file.

The webmail is working but SAC is not. I can't login to SAC

Can you please provide me the correct JAVA_ENDORSED_DIRS entry so I can make both webmail and SAC to work.

Thanks

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

Postby ScalixSupport » Wed Jan 18, 2006 8:08 pm

I see your java version is 1.5.0_02. Our installation instructions spell out that you need to use 1.4.2. Please use that version of java.

Thanks,
Don

linuxindex

SWA problem Fixed.

Postby linuxindex » Thu Jan 19, 2006 12:21 am

Thanks for the tip on java version. I uninstalled the java 1.5.0_02 and installed 1.4.04.

After doing so I still experianced servelt exceptions issues.

After a brief hair pulling I finally decided to uninstall Scalix and tomcat and reinstall from the scrach.

The reinstallation worked and Now I can use both SAC and SWA.

My Setup is below just incase someone is facing same issues like me.

Java version - 1.4.04
Tomcat version - jakarta-tomcat-5.0.28 provided by scalix in the third_party dir in installation tarball which already has FC4 required changes for java.

I would recomend everone to read the installation requirements to avoid issues that I faced last couple of days.

Thanks
Scalix Support.


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 1 guest