Page 1 of 1
other webapps in scalix-tomcat webapps
Posted: Wed Mar 29, 2006 6:27 am
by tanchai
One of my webapps actually using tomcat 5.5, once I installed the scalix, it is hard to make both instance exist. I have tried running 2 tomcat 5.5 and scali-tomcat, but cannot get the site to work properbly. Is there anyway I can put the webapp in the scalix-tomcat webapps? I simply copied it in but doesnt work, also I cannot find any configuration for the webapps in the scalix-tomcat.
Posted: Fri May 12, 2006 7:05 pm
by peden
I have the exact same problem. If anyone has any ideas on this, it would be appreciated.
Posted: Fri May 12, 2006 7:36 pm
by ScalixSupport
What do you mean it doesn't work?
If you've accepted the default installation of scalix 10 mod_jk is used to connect tomat to apache and hence run over port 80. The installer will have disabled port 8080 in server.xml. If your app requires 8080, edit the file and re-enable the port.
Regards,
Don
Posted: Mon May 15, 2006 7:22 am
by ScalixSupport
In addition to what Don said, you need to mount the directory to a worker. This is set in
/etc/apache2/conf.d/scalix-jk-common.conf e.g.
JkMount /youwebbappPath* worker1
Please note this is not an officially supported configuration, mixing Tomcat 5.5 and 5.0 on a Scalix production server will bring my managers wrath onto me ...
Cheers,
Sascha.
Posted: Mon May 15, 2006 12:49 pm
by peden
Perfect. Thank you. The particular webapp I am using works on tomcat 5.0 so with the help of that JkMount tip my webapp is working perfectly. Thank you for the prompt and accurate response.
Posted: Mon May 15, 2006 1:41 pm
by axsom1
Sascha,
Would something like this work:
Reason I ask is we have some external webpages that reference
http://www.ourpage.com/resources ... and with the default scalix-jk-common.conf it wants to run those pages through tomcat.
Thanks,
John
Posted: Mon May 15, 2006 2:45 pm
by peden
I would think that adding
JkMount /resources/* worker1
to /etc/apache2/conf.d/scalix-jk-common.conf would do the trick to get your webapp with url /resources to work on
http://www.ourpage.com/resources.
Basically with JkMount, you are telling apache that anything under this url tree should be sent to this tomcat process (in this case, 'worker1'). More info here
http://tomcat.apache.org/tomcat-3.3-doc ... o.html#s73
Then tomcat recognizes the webapp based on the settings in WEB-INF/web.xml file (usually).
Make sure that the webapp works with tomcat 5.0
Posted: Mon May 15, 2006 2:50 pm
by axsom1
Yeah thats the problem, I dont want our resources page to go through tomcat and with the default scalix-jk-common.conf its sending everything from /res and on through tomcat.
Thanks,
John
Posted: Mon May 15, 2006 2:53 pm
by peden
Oh. Got yah. Sorry, that's beyond my mod_jk, tomcat knowlege.
Posted: Mon May 15, 2006 2:55 pm
by axsom1
Yeah, I probally shouldnt have posted in this thread, but I thought it would be somewhat relevant since it was talking about modifying the scalix-jk-common.conf file.
John
Posted: Tue May 16, 2006 6:25 am
by ScalixSupport
axsom1 wrote:Sascha,
Would something like this work:
John
I just gave that a quick test and it seems to work for me - YMMV.
Cheers,
Sascha.