avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: [GUMP] Build Failure - excalibur-logger
Date Mon, 14 Oct 2002 12:36:37 GMT

The following information can be useful in correcting this:

1) The Hierarchy class still exists but it is an implementation of 
LoggerRepository. As of log4j 1.2, all log4j classes manipulate 
LoggerRepositories instead of Hierarchies. Thus, simply renaming "hierarchy"
as "loggerRepository" should get rid of most compilation problems.

2) Category.getDefaultHierarchy has been deprecated. You should use 
LogManager.getLoggerRepository() instead.

3) hierarchy.getInstance should be replaced with loggerRepository.getLogger

Hope this helps,

At 11:24 13.10.2002 +0000, Peter Donald wrote:

>compile:
>     [mkdir] Created dir: 
> /home/rubys/jakarta/jakarta-avalon-excalibur/logger/build/classes
>     [javac] Compiling 25 source files to 
> /home/rubys/jakarta/jakarta-avalon-excalibur/logger/build/classes
>     [javac] 
> /home/rubys/jakarta/jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java:92:

> cannot resolve symbol
>     [javac] symbol  : constructor 
> Log4JLoggerManager  (org.apache.log4j.spi.LoggerRepository)
>     [javac] location: class 
> org.apache.avalon.excalibur.logger.Log4JLoggerManager
>     [javac]         this( Category.getDefaultHierarchy() );
>     [javac]         ^
>     [javac] 
> /home/rubys/jakarta/jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java:109:

> cannot resolve symbol
>     [javac] symbol  : constructor 
> Log4JLoggerManager  (java.lang.String,org.apache.log4j.spi.LoggerRepository)
>     [javac] location: class 
> org.apache.avalon.excalibur.logger.Log4JLoggerManager
>     [javac]         this( prefix, Category.getDefaultHierarchy() );
>     [javac]         ^
>     [javac] 
> /home/rubys/jakarta/jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java:119:

> cannot resolve symbol
>     [javac] symbol  : method getInstance  (java.lang.String)
>     [javac] location: class org.apache.log4j.Hierarchy
>     [javac]               new Log4JLogger( hierarchy.getInstance( "" ) ) );
>     [javac]                                         ^
>     [javac] 
> /home/rubys/jakarta/jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java:183:

> cannot resolve symbol
>     [javac] symbol  : method getInstance  (java.lang.String)
>     [javac] location: class org.apache.log4j.Hierarchy
>     [javac]         logger = new Log4JLogger( m_hierarchy.getInstance( 
> categoryName ) );
>     [javac]                                              ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 4 errors
>
>BUILD FAILED
>file:/home/rubys/jakarta/jakarta-avalon-excalibur/logger/build.xml:205: 
>Compile failed; see the compiler error output for details.
>
>Total time: 3 seconds

--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message