Yes , That is why we are defining run-time. In that case, how we avoid
loading jenkins classes (more than 20 jars in jenkins runtime) per tenant ?
Then you have to remove jenkins jars also from run-time.


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* <http://www.apache.org/>*
*email: **[email protected]* <[email protected]>* cell: +94 71 5186770  , +94 *
*774617784twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>*
*harshathirimannlinked-in: **http:
<http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
<http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*

*Lean . Enterprise . Middleware*


On Tue, Dec 16, 2014 at 2:02 PM, Mahesh Chinthaka <[email protected]> wrote:
>
> Hi Samith, Harsha,
>
>
> On Tue, Dec 16, 2014 at 1:49 PM, Samith Dassanayake <[email protected]>
> wrote:
>>
>> Hi Mahesh,
>> As Harsha has mentioned why did you moved those bundle into the
>> dropings?
>>
>
> If we keep those jars in runtime/jenkins each and every tenant will load
> those classes individually. In a situation which we have lot of tenants it
> will be a inefficient memory usage.
> So AFAIK as a practice we dont copy that kind of jars to jenkins runtime.
>
>
>> If you move those jars then those jars will be installed as OSGI bundles
>> and you may have to install other dependencies as well.
>>
>> Yes this problem is there. We need to find the best way to overcome this.
> We are working on it.
>
>> Thanks,
>> Samith
>>
>> On Tue, Dec 16, 2014 at 12:31 PM, Mahesh Chinthaka <[email protected]>
>> wrote:
>>>
>>> Hi all,
>>> I found out that above repository.mgt.service bundle stops at INSTALLED
>>> status without going to ACTIVE status because of following reason.
>>>
>>> gogo: BundleException: The bundle
>>> "org.wso2.carbon.appfactory.repository.mgt.service_2.1.0 [195]" could not
>>> be resolved. Reason: Missing Constraint: Import-Package: com.gitblit;
>>> version="[1.4.0,2.0.0)"
>>>
>>> And in repository.mg pom file we have com.giltblit as a dependency and
>>> we have dynamic import.
>>>
>>> As a solution what I did was adding following llines to pom file.
>>>
>>>  <Import-Package>com.gitblit.*;resolution:=optional,</Import-Package>
>>>
>>> Then the bundle got activated successfully. Have I done the correct
>>> thing or does it have some harmful effects ???
>>>
>>> Or is there any other way to overcome this ??
>>>
>>> On Tue, Dec 16, 2014 at 11:28 AM, Harsha Thirimanna <[email protected]>
>>> wrote:
>>>>
>>>> To keep these appfactory jars as separate we can create new run-time
>>>> for that and refer it from jenkins war. WDYT ?
>>>>
>>>>
>>>> *Harsha Thirimanna*
>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>> * <http://www.apache.org/>*
>>>> *email: **[email protected]* <[email protected]>* cell: +94 71 5186770  ,
>>>> +94 *
>>>> *774617784twitter: **http://twitter.com/
>>>> <http://twitter.com/afkham_azeez>*
>>>> *harshathirimannlinked-in: **http:
>>>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>>>
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>> On Tue, Dec 16, 2014 at 11:16 AM, Harsha Thirimanna <[email protected]>
>>>> wrote:
>>>>>
>>>>> Hi Mahesh,
>>>>>
>>>>> Why you moved those bundle in to the dropings ? Because we are just
>>>>> referring those bundle as jars only not as OSGi bundle. That is why we 
>>>>> have
>>>>> put those in to the jenkins runtime.
>>>>>
>>>>>
>>>>> *Harsha Thirimanna*
>>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>>> * <http://www.apache.org/>*
>>>>> *email: **[email protected]* <[email protected]>* cell: +94 71 5186770  ,
>>>>> +94 *
>>>>> *774617784twitter: **http://twitter.com/
>>>>> <http://twitter.com/afkham_azeez>*
>>>>> *harshathirimannlinked-in: **http:
>>>>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>>>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>>>>
>>>>> *Lean . Enterprise . Middleware*
>>>>>
>>>>>
>>>>> On Tue, Dec 16, 2014 at 11:05 AM, Mahesh Chinthaka <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>> When I move jars from *lib/runtime/jenkins* to 
>>>>>> *repository/components/dropins
>>>>>> *I get following warn log in buildserver and it doesnt proceed
>>>>>> beyond this point.
>>>>>>
>>>>>> [2014-12-16 11:01:33,036]  WARN
>>>>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
>>>>>> is
>>>>>> delayed due to the following unsatisfied items:
>>>>>>
>>>>>> [2014-12-16 11:01:33,036]  WARN
>>>>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
>>>>>> OSGiAxis2Service: org.wso2.carbon.appfactory.repository.mgt.service-2.1.0
>>>>>>
>>>>>>
>>>>>> Any thoughts ???
>>>>>>
>>>>>> On Tue, Dec 16, 2014 at 10:20 AM, Manjula Rathnayake <
>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> +1 for avoiding copying jars into jenkins.war.
>>>>>>> Please clean duplicated jars in jenkins runtime and dropins.
>>>>>>>
>>>>>>> thank you.
>>>>>>>
>>>>>>> On Mon, Dec 15, 2014 at 10:38 PM, Danushka Fernando <
>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>> You dont have to patch jenkins war. Just copy the jars to build
>>>>>>>> server
>>>>>>>>
>>>>>>>> Thanks & Regards
>>>>>>>> Danushka Fernando
>>>>>>>> Software Engineer
>>>>>>>> WSO2 inc. http://wso2.com/
>>>>>>>> Mobile : +94716332729
>>>>>>>>
>>>>>>>> On Mon, Dec 15, 2014 at 10:37 PM, Danushka Fernando <
>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>> @Rajeevan: Please apply this for the setup in 16.2. Its updated by
>>>>>>>>> the merged code. Do these manually, restart the buildserver and test
>>>>>>>>>
>>>>>>>>> Thanks & Regards
>>>>>>>>> Danushka Fernando
>>>>>>>>> Software Engineer
>>>>>>>>> WSO2 inc. http://wso2.com/
>>>>>>>>> Mobile : +94716332729
>>>>>>>>>
>>>>>>>>> On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Danushka,
>>>>>>>>>>
>>>>>>>>>> This is how I used to patch while testing,
>>>>>>>>>>
>>>>>>>>>> 1). patch jenkins.war
>>>>>>>>>>
>>>>>>>>>> 2). copy following jars to location :
>>>>>>>>>> buildserver/lib/runtime/jenkins
>>>>>>>>>>
>>>>>>>>>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>>>>>>>>>
>>>>>>>>>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>>>>>>>>>
>>>>>>>>>> org.wso2.carbon.appfactory.deployers-2.1.0.jar
>>>>>>>>>>
>>>>>>>>>> org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 3). copy following jars to location :
>>>>>>>>>> buildserver/repository/components/dropins
>>>>>>>>>>
>>>>>>>>>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>>>>>>>>>
>>>>>>>>>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> For the moment you can do above, and I'm working on avoiding
>>>>>>>>>> copying jars to runtime/jenkins
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>>
>>>>>>>>>> On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi Mahesh
>>>>>>>>>>> Please consider doing $subject. Current setup is failing due to
>>>>>>>>>>> this.
>>>>>>>>>>>
>>>>>>>>>>> Thanks & Regards
>>>>>>>>>>> Danushka Fernando
>>>>>>>>>>> Software Engineer
>>>>>>>>>>> WSO2 inc. http://wso2.com/
>>>>>>>>>>> Mobile : +94716332729
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>>>>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>>>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>>>>>>>>> Email: [email protected] | Web: www.wso2.com
>>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Manjula Rathnayaka
>>>>>>> Software Engineer
>>>>>>> WSO2, Inc.
>>>>>>> Mobile:+94 77 743 1987
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>>>>> Email: [email protected] | Web: www.wso2.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: [email protected] | Web: www.wso2.com
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> --
>> Best Regards
>>
>> Samith Dassanayake
>> Software Engineer, WSO2 Inc.
>>
>>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: [email protected] | Web: www.wso2.com
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to