Groups > IBM > WebSphere Studio Workbench > Re: how to run ant scripts programtaclly in smf bundle in WSSD




how to run ant scripts programtaclly in smf bundle in WSSD
5.1.2

how to run ant scripts programtaclly in smf bundle in WSSD 5.1.2
Wed, 18 Oct 2006 09:33:02 EDT
Hi,
I am using WSSD 5.1.2 and tring to submit a bundle programatically. I run ant
build file in one bundle and try to submit another bundle bu running this buid
file. The code I am tring to run is similar to the code given in the site 
"http://www-128.ibm.com/developerworks/websphere/library/techarticles/0502_
gawor/0502_gawor.html" in a bundle, but it gives classdefnotfoexceptions on
this. 

java.lang.NoClassDefFoundError: org/apache/tools/ant/Project
	at oulu.info.rmtsvcrunner.Runner.antRun(Runner.java:38)
	at oulu.info.rmtsvcrunner.Runner.run(Runner.java:55)
	at java.lang.Thread.run(Thread.java:513)
I included java files in the budle build but did not work out. If any one can
suggest a solution it would be a great help.
Thank you.
Post Reply
Re: how to run ant scripts programtaclly in smf bundle in WSSD
Thu, 19 Oct 2006 03:51:27 EDT
In the ant buid file I have prepared I tried two approches. 
when I try to run the ant build file out of the IDE I recieve thie Null pointer
exception arrises from the follwing
<smfbd.submitJarBundle bundlepath="/HelloWorld"
replace="true">
ant tasks bundle path element. Can any one suggest a way to over come one of
this problems. the ant build files works fine with out any exception when I run
them using the "Run ant" option provided by the IDE.


Post Reply
about | contact