Daniel Frey wrote:

Hi there,

I'm having problems running my test case with AbstractMerlinTestCase. The
test fails with NPE when calling the first time getLogger().


The unit test package is dependent on the latest build of Merlin.


I did build merlin from scratch. I've got now
Implementation: merlin:merlin-impl;3.3-SNAPSHOT (20040312.154102)

However, going into avalon/merlin and doing a "maven merlin:update" does
fail with a 'Goal "merlin:update" does not exist in this project.' I do not
know whether this is done correctly. Is it the right directory? Maybe it is
not necessary in any case?

Its been updated to "maven avalon:update" (part of a process of getting everything consistent).



When using the abstract testcase you need to include the following dependency statement in your project.xml file...


I did do that, however with a newer version

        <dependency>
            <groupId>merlin</groupId>
            <artifactId>merlin-unit</artifactId>
            <version>3.2.6-dev</version>
        </dependency>

The version of the merlin unit test that runs against CVS HEAD is 3.3-SNAPSHOT.



It is strongly recommended that you remove any avalon-* and merlin-*
directories from you maven repository.  In addition, if your updating
Merlin to the latest binary release then please replace both the
MERLIN_HOME/bin directory and the MERLIN_HOME/system directory.


I did remove and I am running merlin from the snapshot directory
taraget/merlin directory. From other threads I learned that LogKit 1.2 has
to be in the classpath too.

        <dependency>
            <groupId>logkit</groupId>
            <artifactId>logkit</artifactId>
            <version>1.2</version>
        </dependency>

You should not need LogKit unless your actually using the api - the correct version is already included in the core.


By the way, is LogKit 1.2 the old version of avalon-logging 1.0?

No. Avalon Logging is a logging management system that manages pluggable logging implementations. One implementation plugin is based on LogKit, another on Log4J.


Cheers, Stephen.


However, test keep failing.

I am struggling for hours now to get this simple example working and am
looking forward to any help.

Thanks in advance.
Daniel Frey


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to