Page 1 of 1

web.xml missing from servlet configuration

Posted: Wed Aug 10, 2005 8:07 am
by ajury
Hi,

Despite having run /opt/scalix/bin/configurator --install --sac there seems to be a missing servlet configuration file that should be located inside the Tomcat installation (5.0.28). The file in question is called $TOMCAT/webapps/sac/WEB-INF/web.xml. catalina.out seems to be in agreement with me:

INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sac]

Also the SAC does nothing but print the following message:

Could Not Login
Could not fetch configuration information.
Possible problem with administration server

There doesn't seem to be any addition logging available other than what Tomcat writes to stdio/stderr during startup. Can anyone advise??

Cheers,
Andy

Forgot to add...

Posted: Wed Aug 10, 2005 8:14 am
by ajury
The admin console prints the following to caa.log when trying to log in.

2005-08-10 13:12:52,623 ERROR [GetServerNameGenerationRules.createSOAPResponseMessage:140] [OM 28506] Which Scalix Server system?
2005-08-10 13:12:52,693 ERROR [GetServerMailAddressGenerationRules.createSOAPResponseMessage:152] [OM 28506] Which Scalix Server system?

Does this give any more clues?

Regards...

...and a bit more...

Posted: Wed Aug 10, 2005 9:28 am
by ajury
Good old 'omsolve' tells me that the $OMCURRENT variable isn't set correctly. So I add it to 'catalina.sh' /etc/profile, just be on the safe side. Still have the same problem. Watch the Java servlet engine with 'strace' and see the following:

28287 stat64("/opt/scalix/global/config", {st_mode=S_IFREG|0644, st_size=100, ...}) = 0
28287 open("/opt/scalix/global/config", O_RDONLY) = 3
28287 futex(0xb4cb24, FUTEX_WAKE, 2147483647) = 0
28287 fstat64(3, {st_mode=S_IFREG|0644, st_size=100, ...}) = 0
28287 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f28000
28287 read(3, "\nOMNAME=mailhost\nOMHOSTNAME=mailh"..., 4096) = 100
28287 read(3, "", 4096) = 0
28287 stat64("/var/opt/om.mailhost", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
28287 close(3) = 0
28287 munmap(0xb7f28000, 4096) = 0
28287 write(2, "[OM 28506] Which Scalix Server s"..., 39 <unfinished ...>
28288 <... read resumed> "[OM 28506] Which Scalix Server s"..., 8192) = 39

So, it is reading /opt/scalix/global/config for the answer. Any mistakes here?

OMNAME=mailhost
OMHOSTNAME=mailhost
OMCURRENT=mailhost
OMDATADIR=/var/opt/om.mailhost
OMAUTOSTART=true

Regards...

Posted: Wed Aug 10, 2005 1:26 pm
by ScalixSupport
The file /opt/scalix/global/config is only required in multiple instance environments.
Because you ran ommakeom with a name, the command assumed you were building a multi-instance message store and created the config file.

I see from your other posts that you only did this because you had problems with the installer. As you have re-downloaded the file and verified that the installer is present, I'd advise reinstalling.

Cheers

Dave

Update!

Posted: Wed Aug 10, 2005 2:50 pm
by ajury
Dave,

Yes, on the advice of Nick, I downloaded the whole thing from scratch and discovered that the orginal tarbal must have been corrupted! The installer script was present this time complete with the READMEs etc, which hadn't been there before.

I completely removed everything, ran the installer and all seem to be working very well! However, I can't help thinking everyone should try and do a manual install at some point to find out what actually goes on in the background! That's my excuse anyway!!

Many thanks,
Andy

Posted: Wed Aug 10, 2005 4:17 pm
by florian
Andy,

doing a manual install is perfectly fine, the only point is that you should run the "ommakeom" command mentioned in the manual procedure without any options or parameters; doing so will create an unnamed default instance of scalix, which will work.

as of Scalix 9.4 and earlier, named scalix instances are not supported and admin console will fail to work in such environments. we plan to support multiple named instances on a single server in one of the next scalix releases.

-- florian.