openSuSE 10.1 and Scalix 11 Error 403

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

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

Postby florian » Sun Feb 25, 2007 12:53 pm

but when you change it, do you see tomcat listening on port 8009 now using lsof?

Florian.
Florian von Kurnatowski, Die Harder!

SirAdam
Posts: 41
Joined: Sun Feb 18, 2007 5:44 am

Postby SirAdam » Sun Feb 25, 2007 1:15 pm

No.

Still nothing.

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

Postby florian » Sun Feb 25, 2007 1:22 pm

- does the new hostname you put in there resolve to an ip address?
- did you restart tomcat after the change to server.xml


this is the thing you need to solve - before java/tomcat does not listen on 8009 there is no point in trying to access the page through apache.

i would suggest that you:
1. make sure you can "ping" the name that's in the file
2. stop tomcat
3. delete all logfiles in the tomcat/logs directory
4. start tomcat
5. check if it is listening
6. if not, check the catalina.out logfile - if it doesn't manage to bring the listener up, it should actually have an error message in there.

f.
Florian von Kurnatowski, Die Harder!

SirAdam
Posts: 41
Joined: Sun Feb 18, 2007 5:44 am

Postby SirAdam » Sun Feb 25, 2007 1:43 pm

Yes it resolves to my IP address.

I can't ping my host, but I don't know why I have set my iptables to

Code: Select all

iptables -A OUTPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A INPUT  -p icmp --icmp-type echo-reply   -j ACCEPT


I restartet Tomcat after changing the server.xml

catalina.out give me this

Code: Select all

25.02.2007 18:37:47 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.pa
th: /usr/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/amd64/server:/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/amd64:/usr/l
ib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/../lib/amd64
25.02.2007 18:37:47 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1352 ms
25.02.2007 18:37:47 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
25.02.2007 18:37:47 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
25.02.2007 18:37:47 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled


ps -ef | grep tomcat gives me


Code: Select all

suse10164lamp:/var/opt/scalix/sp/tomcat/logs # ps -ef | grep tomcat
root      4280     1  3 18:37 pts/0    00:00:08 /usr/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/bin/java -server -Djava.net.preferIPv4Stack=true -Dscalix.instance=/var/opt/scalix/sp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/opt/scalix/sp/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/scalix-tomcat/common/endorsed -classpath /usr/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/tools.jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/var/opt/scalix/sp/tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/var/opt/scalix/sp/tomcat/temp org.apache.catalina.startup.Bootstrap start


service scalix-tomcat status gives me

Code: Select all

suse10164lamp:/var/opt/scalix/sp/tomcat/logs # service scalix-tomcat status
Instance (suse10164lamp) is not running
                                                                      unused


I can remember that I have seen it "used"

Cheers Michaels

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

Postby florian » Sun Feb 25, 2007 2:02 pm

your catalina.out looks far to short for me. this should look like:

Code: Select all

Feb 19, 2007 2:36:15 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
Feb 19, 2007 2:36:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 994 ms
Feb 19, 2007 2:36:16 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 19, 2007 2:36:16 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
Feb 19, 2007 2:36:16 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
RES: Initializing log4j using file /var/opt/scalix/sy/res/config/log4j.properties
SIS received contextInitialized event
SIS initialized with config from /var/opt/scalix/sy/sis/sis.properties
log4j:WARN No appenders could be found for logger (org.hibernate.proxy.BasicLazyInitializer).
log4j:WARN Please initialize the log4j system properly.
Feb 19, 2007 2:36:27 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/opt/scalix/sy/tomcat/webapps/caa/WEB-INF/lib/j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
CAA: scalix.instance is /var/opt/scalix/sy
CAA: caa-root-directory is /var/opt/scalix/sy/caa/
CAA: Loaded web.xml init params
CAA: caa-config-directory is /var/opt/scalix/sy/caa/config
CAA: log4j-init-file is /var/opt/scalix/sy/caa/config/log4j.properties
CAA: caa-framework-init-file is /var/opt/scalix/sy/caa/config/framework-config.xml
SWA:reading configuration @ /var/opt/scalix/sy/webmail/swa.properties
Feb 19, 2007 2:36:28 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on stingray/10.17.33.52:8009
Feb 19, 2007 2:36:28 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/138  config=null
Feb 19, 2007 2:36:29 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Feb 19, 2007 2:36:29 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13398 ms


when i was referring to the ping, i was thinking of executing the "ping" command locally on the server. that MUST work, otherwise something is wrong with your hostname and/or hostname resolution.

Florian.
Florian von Kurnatowski, Die Harder!

SirAdam
Posts: 41
Joined: Sun Feb 18, 2007 5:44 am

Postby SirAdam » Sun Feb 25, 2007 2:09 pm

Alright, I can ping localy and my domain now :)

catalina.out just gives me

Code: Select all

suse10164lamp:/var/opt/scalix/sp/tomcat/logs # vi catalina.out
25.02.2007 19:06:16 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/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/amd64/server:/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/amd64:/usr/lib64
/jvm/java-1.5.0-sun-1.5.0_update10/jre/../lib/amd64
25.02.2007 19:06:16 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1285 ms
25.02.2007 19:06:16 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
25.02.2007 19:06:16 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
25.02.2007 19:06:16 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled


Don't know why.

Cheers

Michael

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

Postby florian » Sun Feb 25, 2007 2:22 pm

It's probably not even using the correct config file. how do you restart tomcat? using /etc/init.d/scalix-tomcat start?

Florian.
Florian von Kurnatowski, Die Harder!

SirAdam
Posts: 41
Joined: Sun Feb 18, 2007 5:44 am

Postby SirAdam » Sun Feb 25, 2007 2:43 pm

Yes that is the way I use.

catalina.out after i changed server.xml to suse10164lamp again

Code: Select all

log4j:WARN No appenders could be found for logger (com.mchange.v2.async.ThreadPoolAsynchronousRunner).
log4j:WARN Please initialize the log4j system properly.
25.02.2007 19:50:54 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/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/amd64/server:/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/amd64:/usr/lib64
/jvm/java-1.5.0-sun-1.5.0_update10/jre/../lib/amd64
25.02.2007 19:50:54 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1277 ms
25.02.2007 19:50:54 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
25.02.2007 19:50:54 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
25.02.2007 19:50:54 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
RES: Initializing log4j using file /var/opt/scalix/sp/res/config/log4j.properties
SIS received contextInitialized event
SIS initialized with config from /var/opt/scalix/sp/sis/sis.properties


Cheers Michael

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

Postby florian » Sun Feb 25, 2007 2:58 pm

what does your /etc/opt/scalix/instance.cfg contain

All-in-all this looks like a big hostname/dns mess.

I would almost dare to suggest that you first install scalix on a simple box with no virtual servers installed and then try to move the config over to the hosting box.

Florian.
Florian von Kurnatowski, Die Harder!

SirAdam
Posts: 41
Joined: Sun Feb 18, 2007 5:44 am

Postby SirAdam » Sun Feb 25, 2007 3:03 pm

It contains

Code: Select all

OMNAME=suse10164lamp
OMHOSTNAME=suse10164lamp.site
OMDATADIR=/var/opt/scalix/sp/s
OMAUTOSTART=TRUE


I could try it on my notebook. But the system will be different from the root-server.

my /etc/hosts contains

Code: Select all

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
127.0.0.1       localhost
88.198.60.116   my-domain.info server
88.198.60.116   suse10164lamp.site suse10164lamp


I guess I could delete my-domain.info.

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

Postby florian » Sun Feb 25, 2007 3:05 pm

and what does hostname, hostname -s and hostname --fqdn return?

-- f.
Florian von Kurnatowski, Die Harder!

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

Postby florian » Sun Feb 25, 2007 3:07 pm

and /opt/scalix-tomcat/bin/sxtomcat-get-mounted-instances

and /opt/scalix-tomcat/bin/sxtomcat-get-inst-dir suse10164lamp

Florian.
Florian von Kurnatowski, Die Harder!

SirAdam
Posts: 41
Joined: Sun Feb 18, 2007 5:44 am

Postby SirAdam » Sun Feb 25, 2007 3:07 pm

That what it tells me

Code: Select all

suse10164lamp:/etc/opt/scalix # hostname
suse10164lamp
suse10164lamp:/etc/opt/scalix # hostname -s
suse10164lamp
suse10164lamp:/etc/opt/scalix # hostname --fqdn
suse10164lamp.site
suse10164lamp:/etc/opt/scalix #


Cheers Michael

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

Postby florian » Sun Feb 25, 2007 3:11 pm

is there any additional security package like selinux installed on the server that prevents tomcat from listening on 8009?

florian.
Florian von Kurnatowski, Die Harder!

SirAdam
Posts: 41
Joined: Sun Feb 18, 2007 5:44 am

Postby SirAdam » Sun Feb 25, 2007 3:13 pm

No and the SuSE firewall is turned off as well.

Michael


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 5 guests