Hi, Currently we are having a problem in dispatching requests to a tenants webapp in a situation where the tenant is not loaded yet and the WebContextRoot is set to some value apart from root (/).
For example, if we set the WebContextRoot to "/foo". And then if we send a request to a webapp at "/t/kishanthan.org/webapps/example/" before the tenant is loaded, the request does not go through. This is because, when tomcat resolves requests to contexts, it fails to identify "/t/ kishanthan.org/webapps/example/" as this context is not loaded into tomcat yet. This will work in a situation when the WebContextRoot is left with default value (/). Since tomcat can still dispatch any requests which start with "/". The solution is to register a dummy context (/t) with tomcat for the sake of dispatching the webapp requests which start with "/t/*". We need this to get requests reach Tomcat Valve's, so the when the TenantlazyLoaderVlave gets hit, it can load the tenant and then redirect the requests. @Pradeep, I have fixed this at core and attached is the patch for that. Can you please verify this and apply? Thanks, Kishanthan. -- *Kishanthan Thangarajah* Software Engineer, Development Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan*
tomcat_ext.patch
Description: Binary data
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
