Topic
1 reply Latest Post - ‏2006-10-19T07:51:27Z by SystemAdmin
SystemAdmin
SystemAdmin
1479 Posts
ACCEPTED ANSWER

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

‏2006-10-18T13:33:02Z |
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.
Tharanga Wijethilake
Updated on 2006-10-19T07:51:27Z at 2006-10-19T07:51:27Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1479 Posts
    ACCEPTED ANSWER

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

    ‏2006-10-19T07:51:27Z  in response to SystemAdmin
    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.
    Tharanga Wijethilake