On Thu, Jun 14, 2012 at 11:04 AM, Afkham Azeez <[email protected]> wrote:

>
>
> On Wed, Jun 13, 2012 at 7:11 PM, Muhammed Shariq <[email protected]> wrote:
>
>> Hi Pradeep,
>>
>> Guess I managed to make a breakthrough with regard to this issue :)
>>
>> I did some debugging and noticed that the AxisConfiguration for a tenant
>> is not getting created when a tenant login to the server. By debugging
>> further I managed to get the tenant's AxisConfiguration created by fixing
>> the ActivationHandler as follows;
>>
>> shariq@shariq-laptop:~/src/trunk/platform/components/stratos/org.wso2.carbon.activation$
>> svn diff
>> Index:
>> src/main/java/org/wso2/carbon/activation/module/ActivationHandler.java
>> ===================================================================
>> --- src/main/java/org/wso2/carbon/activation/module/ActivationHandler.java 
>> (revision
>> 129954)
>> +++ src/main/java/org/wso2/carbon/activation/module/ActivationHandler.java 
>> (working
>> copy)
>> @@ -57,7 +57,7 @@
>>          int tenantId = getTenantId(messageContext);
>>          if (service != null &&
>> "ActivationService".equals(service.getName())) {
>>              log.debug("Granted access to the Activation Service");
>> -            if (tenantId > 0) {
>> +            if (tenantId != MultitenantConstants.SUPER_TENANT_ID) {
>>
>>  TenantAxisUtils.getTenantAxisConfiguration(getTenantDomain(messageContext),
>>                          messageContext.getConfigurationContext());
>>                  log.debug("Loaded Tenant Configuration");
>>
>>
>> As you can see the tenantId check is wrong. Now when the tenant login the
>> you will notice that the tenant AxisConfiguration is created. But still
>> when we deploy a service it gets deployed in ST space. This looks like an
>> issue in the DeploymentInterceptor, you might need to
>> debug DeploymentInterceptor to see what going wrong there ...
>>
>
> DeploymentInterceptor does not copy services into deployment directories.
> When you upload services from a tenant, check where that file gets written
> to. Most probably it is geting written to the ST dir.
>

Yes, when deploying from tenants, all the artifacts(webapps, services) are
going to ST repository.

>
>
>>
>>
>>
>> On Tue, Jun 12, 2012 at 6:19 PM, Pradeep Fernando <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> im working on it
>>>
>>> --Pradeep
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> Thanks,
>> Shariq.
>> Phone: +94 777 202 225
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Software Engineer,
Development Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to