On Thu, Apr 10, 2014 at 12:29 PM, Kasun Gajasinghe <[email protected]> wrote:
> Hi, > > While testing this feature, we found that Tomcat unpacks the war files > outside the appBase to the appBase directory as well. ie. the tenant > webapps are also getting unpacked in the > repository/deployment/server/webapps/ folder. > > I tested this in Tomcat 7.0.52, and also is Tomcat 6.x. Tomcat's behavior > is to unpack all the webapps in the appBase directory. The reason is that > each context (webapp) should be associated with a (Virtual) Host. A Host > defines its own appBase directory. So, even if the webapp is outside the > appBase, it is associated with the appBase directory, hence every webapp > gets unpacked in the appBase. > > In our case, we only define one Virtual Host (localhost) which points to > the appBase, repository/deployment/server/webapps/ (as defined in > catalina-server.xml). The tenants use the same Virtual Host. So, war files > of tenants also gets unpacked in repo/dep/server/webapps. > AFAIR Azeez was telling we considered host per tenants but it was a dead end so this option won't work for tenant. BTW as we planning to support VHosts on AS this could be a valuable option please keep this reference. Thanks ! > > Then, I looked into creating different Virtual Hosts for each and every > tenant. There is an Tomcat API to do this. But the issue is that we have to > set different domain names for each v.host. I guess it's not ideal for us. > What we require is one Virtual Host with separate appBase directories for > each tenant. But Tomcat does not support that. > > > > > > On Mon, Feb 17, 2014 at 8:48 PM, Nuwan Bandara <[email protected]> wrote: > >> +1 useful for jaggery as well. >> >> Regards, >> /Nuwan >> >> >> On Mon, Feb 17, 2014 at 9:19 AM, Sagara Gunathunga <[email protected]>wrote: >> >>> >>> >>> >>> On Mon, Feb 17, 2014 at 7:42 PM, Kasun Gajasinghe <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> It seems that Tomcat now supports the unpackWARs=true attribute for >>>> unpacking wars outside the Host's appBase. So, in the context of AS, the >>>> webapps deployed to tenants too will be unpacked by default. In the Tomcat >>>> 7.0.34 version we used before did not unpack the wars outside the Host's >>>> appBase. I think there were some users who requested this. In Carbon 4.3.0, >>>> we are planning to update Tomcat to 7.0.50, so we can support this now. >>>> >>> >>> Great ! This was one of the main limitation of AS tenant mode, make >>> sure include this into test plan. >>> >>> Thanks ! >>> >>>> >>>> This is documented under the Tomcat migration guide. [1] Related ticket >>>> at [2]. >>>> >>>> [1] http://tomcat.apache.org/migration-7.html#Deployment >>>> [2] https://issues.apache.org/bugzilla/show_bug.cgi?id=51294 >>>> >>>> Regards, >>>> KasunG >>>> >>>> -- >>>> *Kasun Gajasinghe* >>>> Software Engineer; >>>> WSO2 Inc.; http://wso2.com >>>> >>>> >>>> , >>>> *email: * >>>> *kasung AT spamfree wso2.com <http://wso2.com> ** cell: **+94 (77) >>>> 678-0813 <%2B94%20%2877%29%20678-0813>* >>>> *linked-in: *http://lk.linkedin.com/in/gajasinghe >>>> >>>> >>>> >>>> *blog: **http://kasunbg.org* <http://kasunbg.org> >>>> >>>> >>>> >>>> *twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg> >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Sagara Gunathunga >>> >>> Senior Technical Lead; WSO2, Inc.; http://wso2.com >>> V.P Apache Web Services; http://ws.apache.org/ >>> Linkedin; http://www.linkedin.com/in/ssagara >>> Blog ; http://ssagara.blogspot.com >>> >>> >>> _______________________________________________ >>> Architecture mailing list >>> [email protected] >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> >> >> >> *Thanks & Regards,Nuwan Bandara Technical Lead; **WSO2 Inc. * >> *lean . enterprise . middleware | http://wso2.com <http://wso2.com> * >> >> *blog : http://nuwanbando.com <http://nuwanbando.com>; email: >> [email protected] <[email protected]>; phone: +1 812 606 7390 >> <%2B1%20812%20606%207390> * >> <http://www.nuwanbando.com/> >> > > > > -- > > *Kasun Gajasinghe*Software Engineer, WSO2 Inc. > > email: kasung AT spamfree wso2.com > linked-in: http://lk.linkedin.com/in/gajasinghe > blog: http://kasunbg.org > > > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services; http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
