ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | April 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [enhydra] Enhydra and JOnAS / EJOSA Problem


Hi,
 
> Hi Sinisa,
>
> thanks for your fast response.
>
> <quote>
> Maybe problem is different versions of log4j in Enhydra (we use 1.2.5)
> and in Jonas (default implementation for monolog logging in Jonas).
> See:
>
> [java] Caused by: java.lang.NoSuchMethodError:
> org.apache.log4j.spi.LoggingEvent.getLevel()Lorg/apache/log4j/Level;
>
> Enhydra uses its own Logger with two possible implementations (log4j and
> Standard - old way). You can configure which implementation will be used
> in application conf file.
> </quote>
>
> The problem is that this exception will directly happen just as soon
> as you include the enhydra.jar in the classpath of JOnAS
> ...
> -Djonas.classpath="the enhydra.jar"
> ...
>

Logger interface and Log4j implementation is in util.jar of Enhydra 5.1 (not in enhydra.jar).

In Enhydra 5.0 Logger interface and only Standard implementation was in core.jar. In Enhydra 5.1, Logger (with two implementations - Standard and Log4j) is in util.jar. That?s a difference.


> So, you have no chance to do anything.
>
> I also have the feeling that the Logger of enhydra and jonas is
> not compatible just as you told me above (because if I use the
> enhydra.jar from the 5.0 version, it works just fine).
>
Jonas uses Monolog for logging - Enhydra uses its own Logger.
For 'future' Enhydra 6.0 we made Enhydra Logger implementation for Monolog and on that way we use the same logger for Jonas and Enhydra Application Framework and Enhydra applications. And it works.
 
 
Regards,
Sinisa
 


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.