[kepler-dev] build a custom actor

Dan Higgins higgins at nceas.ucsb.edu
Thu Aug 7 11:46:24 PDT 2008

Hi David,
    If your jars conflict with other exisiting jars, there may be a 
problem with adding them to the kar files as I suggested. This is 
because the jars inside the kars are just dynamically added to the 
classpath in the current code (unless that has been changed in the last 
6 months!)  Kepler will thus use the first class it finds. A custom 
classloader is needed to handle this versioning problem and that was not 
yet in Kepler the last time I checked.

Dan Higgins

Dawid Szejnfeld wrote:
> Hi,
> I can't put the jars out there because they could do some conflicts 
> with some existing ones (I have some other versions for example). I 
> read that KAR's can contain jars and do some custom class loading - it 
> is the only solution here. But I can't find any tutorial how to do it, 
> how to build it and so on. I found also something about KSW files - 
> but I understand it is some deprecated stuff ?
> Dawid
> Sean Riddle wrote:
>> Putting your Jar files into kepler/lib/jar (or any level below that) 
>> will cause them to be put on the runtime classpath, I believe. 
>> Ideally, you would use KAR files to bundle up actors with stuff they 
>> need, and then you could import that in another Kepler installation; 
>> I've never actually tried it myself, though, so someone else could 
>> probably speak on that better.
>> - Sean
>> On Aug 7, 2008, at 4:39 AM, dejw wrote:
>>> Hi,
>>> I want to build a custom actor for Kepler, I saw the HelloWorld 
>>> example and it is clear for me, that's fine but...
>>> I want to create quite "big" actor with many jars included which are 
>>> not a part of kepler right now - the question how to do it, where 
>>> should I put my custom jars?
>>> How can I later exchange this actor with other kepler instances? KSW 
>>> files? If yes is out there any tutorial how to prepare KSW file with 
>>> right stuff inside?
>>> Can I later upload such actor (ksw?) to repository and download over 
>>> the wire in another kepler instance and use?
>>> My actor with the jars included may have from about 30 MB even up to 
>>> 100 MB ;)
>>> Regards,
>>> Dawid Szejnfeld
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at ecoinformatics.org
>>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev 
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev

More information about the Kepler-dev mailing list