[kepler-dev] Custom actor deployment

Chad Berkley berkley at nceas.ucsb.edu
Fri May 12 08:50:19 PDT 2006


Hi Siva,

What does the moml look like that you are adding to the kar file?  If it 
is standard ptII moml then it won't work.  You need to use the kepler 
extensions.  See src/actors/Constant for an example.  Also, you should 
not have to copy the kar file by hand to the kar directory.  If you are 
using 'ant buildkarlib' it should be copied automatically.  Another 
thought is that if your class really is in src/fpkg, you'll probably 
need to alter the build file because I don't believe that everything in 
the src directory is built.  If you put it under org.kepler.* it should 
be built properly.  Check the kepler.jar file to see if your class 
actually makes it in there.

chad

Sivagowri Swaminathan wrote:
> Hi all
> 
> I am having similar problems trying to deploy a custom actor in kepler alpha 
> 9.0 version.
> 
> I created a folder under kepler-1.0.0alpha9/src/actor and  copied the custom 
> actor's manifest and the xml files into it. say it was 
> kepler-1.0.0alpha9/src/actor/fileChooserActor -----> name of my actor.
> 
> Under kepler/src, I copied the source java files. say it was 
> kepler-1.0.0alpha9/src/fpkg -----> The package containing my actor's source 
> code. My actor is extended from Typedatomic actor as is given in the 
> helloworld example.
> 
> I copied the kar files into kepler-1.0.0alpha9/kar folder. I got the same 
> error as what Mohana got, say,
> The class name you entered was not found in the classpath. Note that the 
> class you are trying to enter must be in the classpath from which you 
> launched this program:fpkg.FileChooserActor.
> I edited the kepler.bat file to add fpkg in the classpath but still I got 
> the same error.
> 
> Instead of directly pasting the kar files in the folder, i tried to first 
> run kepler alpha 9.0 and then as matt and chad suggested, I tried to 'import 
> the kar file'.
> I got 'error creating the component enty from actor metadata: null'
> 
> Can somebody tell me how to deploy a custom actor in an existing kepler 
> installation. This is very crucial for me as I have to deploy the actors in 
> my project manager's machine which also has kepler alpha 9.0.
> 
> Thanx
> Siva
> 
> 
> 
> 
>>From: Mohana Ramaratnam <mramarat at wustl.edu>
>>To: kepler-dev at ecoinformatics.org
>>Subject: [kepler-dev] Adding Case to Kepler
>>Date: Wed, 10 May 2006 14:45:26 -0500
>>
>>Hello,
>>
>>I am trying to add the Case actor (ptolemy.actor.lib.hoc.Case) into the 
>>Kepler Ontology. I have taken the following steps:
>>
>>a) Created $kepler/src/Case folder with Case.xml and MANIFEST.MF
>>b) Performed
>>   ant full-clean,
>>   ant ptolemy
>>   deleted ~/.kepler folder
>>   ant buildkarlib
>>   ant run-dev
>>
>>The last step gave me an error:
>>
>>The class name you entered was not found in the classpath.  Note that the 
>>class you are trying to enter must be in the classpath from which you 
>>launched this program: ptolemy.actor.lib.hoc.Case
>>    [java] java.lang.NullPointerException: Could not clone actor 'Case' 
> 
>>from the 'ptolemy.actor.lib.hoc.Case' class, the actor null, meaning it was 
> 
>>not found? Perhaps there is a classpath problem of the karlib needs to be 
>>flushed?
>>
>>ptolemy.jar contains the ptoley.lib.hoc.* classes and is in my classpath 
>>within the eclipse environment.
>>
>>What am I doing wrong/missing?
>>
>>~Mohana
> 
> 
> 
>>Manifest-Version: 1.4.2
>>KAR-Version: 1.0
>>lsid: urn:lsid:kepler-project.org:kar:479:1
>>
>>Name: Case.xml
>>lsid: urn:lsid:kepler-project.org:actor:479:1
>>type: actorMetadata
> 
> 
> 
>><< Case.xml >>
> 
> 
> 
>>_______________________________________________
>>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