Hi Renato,

Can you please see the patch I just loaded into GORA-137. I hope that
this solves the classloading problems that the gora-tutorial module
seems to be suffering from.

It would be great if you could patch up trunk, do mvn clean compile
-Dmaven.tests.skip=true then try out the tutorial. Remember though, in
order to use the gora.properties file within the gora-tutorial module,
you will need to have an HSQLDB instance up and running, as well as
HBase or else you're going to run into nasties.

Finally, if you find that there are some NoClassDef errors then maybe
some more dependencies are required to be added to the gora-tutorial
pom.xml and recompiled.

Would be great if you could get back to us with the results. Thank you
very much.

Lewis

On Thu, May 17, 2012 at 7:56 PM, Lewis John Mcgibbney
<[email protected]> wrote:
> I've been using the gora-cassandra backend for a range of tasks with
> Nutchgora branch. I know that gora-core and gora-hbase are also in
> healthy condition so I can only assume that the example scenario
> proposed in the gora-tutorial module is needing some attention.
>
> It is maybe unlikely that once users get to grip with gora-core, that
> they will wish to pull gora-tutorial as a dependency as it only
> currently covers the LogManager/Analysis use case scenario which we
> use as the flagship tutorial.
>
> This being said it is even more critical that we address the
> configuration issues with this module as in its entirety it provides
> the best example of the gora API usage.
>
> From teh stack traces you seem to be getting it looks like the
> GoraCompiler works... is this correct? It looks liek you start banging
> into trouble when your using gora-tutorial specific classes... I would
> therefore focus some attention over there.
>
> As I said Renato, I'll also give this a good crack tonight and see where we 
> get.
>
>
> On Thu, May 17, 2012 at 6:16 PM, Renato Marroquín Mogrovejo
> <[email protected]> wrote:
>> 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
>
>
>
> --
> Lewis



-- 
Lewis

Reply via email to