[kepler-dev] ant run fails with NoClassDefFoundError ... ModulesTxtReader

Christopher Brooks cxh at eecs.berkeley.edu
Sat Apr 25 12:10:19 PDT 2009


Hi Jianwu,

Hmm, a clean check out with:
   mkdir kepler
   cd kepler
   svn co 
https://code.kepler-project.org/code/kepler/trunk/modules/build-area
   cd build-area
   ant change-to -Dsuite=kepler
   ant run

fails for me as below. I just did it again to be sure.
Interestingly, the ant change-to -Dsuite=kepler has this message

change-to:
[change-to] java.io.FileNotFoundException: 
c:\tmp\cxh\src\kepler\build-area\modules.txt (The system cannot fin
d the file specified)
[change-to]     at java.io.FileInputStream.open(Native Method)
[change-to]     at java.io.FileInputStream.<init>(FileInputStream.java:106)
[change-to]     at java.io.FileReader.<init>(FileReader.java:55)
[change-to]     at 
org.kepler.build.modules.ModulesTxt.readHelper(ModulesTxt.java:68)
[change-to]     at 
org.kepler.build.modules.ModulesTxt.read(ModulesTxt.java:57)
[change-to]     at 
org.kepler.build.modules.ModulesTxt.init(ModulesTxt.java:23)
[change-to]     at 
org.kepler.build.modules.ModulesTask.init(ModulesTask.java:61)
[change-to]     at 
org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:223)
[change-to]     at 
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:414)
[change-to]     at 
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
[change-to]     at org.apache.tools.ant.Task.perform(Task.java:347)
[change-to]     at org.apache.tools.ant.Target.execute(Target.java:357)
[change-to]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
[change-to]     at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[change-to]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[change-to]     at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[change-to]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[change-to]     at org.apache.tools.ant.Main.runBuild(Main.java:758)
[change-to]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
[change-to]     at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[change-to]     at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[change-to] Copying 1 file to c:\tmp\cxh\src\kepler\build-area
[change-to] Retrieving modules....
[change-to]


Interestingly, 
./build-area/src/org/kepler/build/modules/ModulesTxtReader.java
exists.  My guess is that it is not getting compiled.

Could you try finding and removing any ModulesTxtReader.class files?



_Christopher

Jianwu Wang wrote:
> Hi Christopher,
> 
>    I just did "ant change-to -Dsuite=kepler". It works for me. :)
> 
> Best wishes
> 
> Sincerely yours
> 
> Jianwu Wang
> jianwu at sdsc.edu
> http://users.sdsc.edu/~jianwu/
> 
> Scientific Workflow Automation Technologies (SWAT) Laboratory
> San Diego Supercomputer Center University of California, San Diego
> San Diego, CA, U.S.A.
> 
> 
> Christopher Brooks wrote:
>> Actually, a clean build on a Windows machine failed with a similar
>> message.  I did a checkout and then "ant change-to -Dsuite=kepler".
>>
>> Does the build work for anyone?
>>
>> _Christopher
>>
>>
>>
>> Christopher Brooks wrote:
>>> I'm not sure what's up with this, but "ant run"
>>> fails for me:
>>>
>>> run:
>>>       [run] args:
>>>       [run] Exception in thread "main" 
>>> java.lang.NoClassDefFoundError: 
>>> org/kepler/core/ant/common/ModulesTxtReader
>>>       [run]     at 
>>> org.kepler.core.loader.ModulesManager.constructModules(ModulesManager.java:22) 
>>>
>>>       [run]     at 
>>> org.kepler.core.loader.SystemPropertyLoader.load(SystemPropertyLoader.java:18) 
>>>
>>>       [run]     at org.kepler.core.loader.Loader.main(Loader.java:60)
>>>
>>>
>>> My suite is kepler-trunk, changing to the kepler suite is not possible
>>> as I'm connecting via dialup and "ant change-to -Dsuite=kepler"
>>> wants to do a svn co of kepler, which is huge.
>>>
>>> This is not a huge deal, I can wait until I have a faster connection.
>>>
>>> _Christopher
>>>
>>

-- 
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480


More information about the Kepler-dev mailing list