Do you have any idea where I could start looking? Do you know if this is an error of only the gora-tutorial or from the other modules? I will be searching for some maven tips on the web in the meantime. Thanks for responding Lewis!
Renato M. 2012/5/17 Lewis John Mcgibbney <[email protected]>: > Hi Renato, > > This is a problem which has come to the surface in the last while and > yes it is most certainly a bug which needs rooted out and fixed! > > I'm currently investigating gora-tutorial pom.xml [0], which has next > to no dependencies apart from data store implementations which are > used within the tutorial. It also seems to include a rather random > reference to the build-helper-maven-plugin, which I don't understand > as the src/main/java directory is effectively acting as > src/examples/java does in other modules. > > I made a commit yesterday which I thought addressed some early > problems within the tutorial, but it seems that there is still some > digging to be done here. This is most likely to have happened during > the transition from Ant/Ivy to Maven for build lifecycle. > > I have work to do for the next tow hours but I will certainly have a > look into this again tonight. > > Thanks for reporting > > Lewis > > [0] http://svn.apache.org/repos/asf/gora/trunk/gora-tutorial/pom.xml > > On Thu, May 17, 2012 at 5:32 PM, Renato Marroquín Mogrovejo > <[email protected]> wrote: >> Hi all, >> >> I am starting a new thread on the user´s list (: >> I started doing this tutorial [1] so I can see gora actually working, >> but I am getting this classpath error when I try to execute the >> logManager: >> >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/gora/tutorial/log/LogManager >> Caused by: java.lang.ClassNotFoundException: >> org.apache.gora.tutorial.log.LogManager >> at java.net.URLClassLoader$1.run(URLClassLoader.java:217) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:205) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:321) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:266) >> Could not find the main class: >> org.apache.gora.tutorial.log.LogManager. Program will exit. >> >> When I looked into the classpath variable, I realized that I have not >> gotten the gora-tutorial/lib, and that it is not being generated for >> some reason. >> >> :/usr/lib/jvm/java-6-openjdk/lib/tools.jar:/home/hadoop/gora/gora-tutorial/lib/*.jar:/home/hadoop/gora/gora-tutorial/build/*.job:/home/hadoop/gora/gora-tutorial/build/classes:/home/hadoop/gora/gora-tutorial/build/test/classes:/home/hadoop/gora/conf:/home/hadoop/gora/gora-tutorial/conf >> >> where gora-tutorial/lib/ doesn´t exist. Any help is highly apreciated!! >> >> >> Renato M. >> >> [1] http://gora.apache.org/docs/current/tutorial.html > > > > -- > Lewis

