[kepler-users] Cannot run suite 'kepler-2.0.0', error is: java.lang.ClassNotFoundException: org.kepler.Kepler

2010-08-13 Thread Tomasz Żok
Hi,

Since kepler-2.0.0 is the released suite  
(http://code.kepler-project.org/code/kepler/releases/released/) I decided  
to try it. However I cannot run it at all. I did the following:
`ant clean-all`
`ant change-to -Dsuite=kepler-2.0.0`
`ant run`

The error is:
   [run] Caused by: java.lang.ClassNotFoundException: org.kepler.Kepler
   [run] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   [run] at java.security.AccessController.doPrivileged(Native  
Method)
   [run] at  
java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   [run] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   [run] at  
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   [run] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

`ant update` does not change the situation either.


This error is strange, so I searched for the reason. And what I found is  
that for example for module 'actors-2.0.0' there are no *.class files.
`ls actors-2.0.0`:
actors-2.0.0.zip
build.xml
lib
module-info
resources
target
tests
workflows

`ls actors-2.0.0/target/`:
actors-2.0.0.jar

`unzip -t actors-2.0.0/target/actors-2.0.0.jar | grep class | wc -l`:
0

This actors-2.0.0.jar contains only KARs. I checked also other  
directories, but there is no *.class. Why is such situation there for  
suite 'kepler-2.0.0'? If I am doing something wrong, what is it?

Regards,
Tomek


-- 
Tomasz Zok
Poznan Supercomputing and Networking Center
ul. Noskowskiego 10, 61-704 Poznan, POLAND
http://www.man.poznan.pl


[kepler-users] Cannot run suite 'kepler-2.0.0', error is: java.lang.ClassNotFoundException: org.kepler.Kepler

2010-08-13 Thread Matt Jones
Thanks, Thomas, for the feedback. I'll ask David to take a look at the issue
you report and see if there's an improvement to the build that is needed.

Regards,
Matt

On Fri, Aug 13, 2010 at 5:40 AM, Tomasz ?ok tzok at man.poznan.pl wrote:

 Hi again,

 I have just fixed this issue. Previously I deleted target/*.jar but
 regenerated them with `ant jar`. However these two jarfiles are not the
 same. What's more, doing `ant update`, `ant get -Dsuite=kepler-2.0.0`, `ant
 change-to -Dsuite=kepler-2.0.0` did not help. I had to remove all 2.0.0
 modules, fetch them again and do not delete these jars this time ;). Maybe a
 suggestion from me - I believe it could be easily check with `ant get
 -Dsuite=...` if such jarfiles are missing or not. It would help in such
 situations as mine.

 Best regards,
 Tomek


 Tomasz ?ok tzok at man.poznan.pl:


  Hi,

 Since kepler-2.0.0 is the released suite (
 http://code.kepler-project.org/code/kepler/releases/released/) I decided
 to try it. However I cannot run it at all. I did the following:
 `ant clean-all`
 `ant change-to -Dsuite=kepler-2.0.0`
 `ant run`

 The error is:
   [run] Caused by: java.lang.ClassNotFoundException: org.kepler.Kepler
   [run] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   [run] at java.security.AccessController.doPrivileged(Native
 Method)
   [run] at
 java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   [run] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   [run] at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   [run] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

 `ant update` does not change the situation either.


 This error is strange, so I searched for the reason. And what I found is
 that for example for module 'actors-2.0.0' there are no *.class files.
 `ls actors-2.0.0`:
 actors-2.0.0.zip
 build.xml
 lib
 module-info
 resources
 target
 tests
 workflows

 `ls actors-2.0.0/target/`:
 actors-2.0.0.jar

 `unzip -t actors-2.0.0/target/actors-2.0.0.jar | grep class | wc -l`:
 0

 This actors-2.0.0.jar contains only KARs. I checked also other
 directories, but there is no *.class. Why is such situation there for suite
 'kepler-2.0.0'? If I am doing something wrong, what is it?

 Regards,
 Tomek




 --
 Tomasz Zok
 Poznan Supercomputing and Networking Center
 ul. Noskowskiego 10, 61-704 Poznan, POLAND
 http://www.man.poznan.pl
 ___
 Kepler-users mailing list
 Kepler-users at kepler-project.org
 http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users

-- next part --
An HTML attachment was scrubbed...
URL: 
http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20100813/854c872c/attachment.html