other webapps in scalix-tomcat webapps

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

tanchai
Posts: 11
Joined: Wed Mar 15, 2006 10:21 am

other webapps in scalix-tomcat webapps

Postby tanchai » Wed Mar 29, 2006 6:27 am

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.

peden

Postby peden » Fri May 12, 2006 7:05 pm

I have the exact same problem. If anyone has any ideas on this, it would be appreciated.

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

Postby ScalixSupport » Fri May 12, 2006 7:36 pm

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

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

Postby ScalixSupport » Mon May 15, 2006 7:22 am

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.

peden

Postby peden » Mon May 15, 2006 12:49 pm

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.

axsom1
Posts: 69
Joined: Tue Aug 17, 2004 12:31 pm

Postby axsom1 » Mon May 15, 2006 1:41 pm

Sascha,

Would something like this work:

Code: Select all

JkMount       /res/* worker1


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

peden

Postby peden » Mon May 15, 2006 2:45 pm

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

axsom1
Posts: 69
Joined: Tue Aug 17, 2004 12:31 pm

Postby axsom1 » Mon May 15, 2006 2:50 pm

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

peden

Postby peden » Mon May 15, 2006 2:53 pm

Oh. Got yah. Sorry, that's beyond my mod_jk, tomcat knowlege.

axsom1
Posts: 69
Joined: Tue Aug 17, 2004 12:31 pm

Postby axsom1 » Mon May 15, 2006 2:55 pm

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

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

Postby ScalixSupport » Tue May 16, 2006 6:25 am

axsom1 wrote:Sascha,

Would something like this work:

Code: Select all

JkMount       /res/* worker1


John


I just gave that a quick test and it seems to work for me - YMMV.

Cheers,

Sascha.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 12 guests

cron