You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2015/02/18 17:04:37 UTC

[Bug 57594] New: ERROR An element with the identifier "LOG4J_LOG_APPENDERREF" must appear in the document.

https://bz.apache.org/bugzilla/show_bug.cgi?id=57594

            Bug ID: 57594
           Summary: ERROR An element with the identifier
                    "LOG4J_LOG_APPENDERREF" must appear in the document.
           Product: Log4j
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Appender
          Assignee: log4j-dev@logging.apache.org
          Reporter: jethoma@aol.com

when starting up application  get this in logs 
log4j:ERROR Parsing error on line 32 and column 23
log4j:ERROR An element with the identifier "LOG4J_LOG_APPENDERREF" must appear
in the document.
log4j: Threshold ="all".
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [com.ctl.oam] additivity to [false].
log4j: Level value for com.ctl.oam is  [LOG4J_LOG_LEVEL].
log4j: com.ctl.oam level set to DEBUG
log4j:ERROR No appender named [LOG4J_LOG_APPENDERREF] could be found.
log4j: Appender named [LOG4J_LOG_APPENDERREF] not found.
log4j: Class name: [org.apache.log4j.ConsoleAppender]
log4j:WARN No such property [datePattern] in org.apache.log4j.ConsoleAppender.
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d [%t] %-5p [%c]
[%X{sessionId}] - %m%n].
log4j: Adding appender named [stdout] to category [com.ctl.oam].
log4j: Level value for root is  [info].
log4j: root level set to INFO
log4j: Class name: [org.apache.log4j.DailyRollingFileAppender]
log4j: Setting property [datePattern] to ['.'MM-dd-yyyy].
log4j: Setting property [file] to [/tmp/CTLOAM.log].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d [%t] [%C{1}] [%X{sessionId}]
- %m%n].
log4j: setFile called: /tmp/CTLOAM.log, true
log4j: setFile ended
log4j: Appender [LOG4J_LOG_APPENDER] to be rolled at midnight.
log4j: Adding appender named [LOG4J_LOG_APPENDER] to category [root].

my classes log4j
<log4j:configuration debug="true" threshold="all"
    xmlns:log4j="http://jakarta.apache.org/log4j/">

    <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
        <param name="DatePattern" value="'.'MM-dd-yyyy" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d [%t] %-5p [%c]
[%X{sessionId}] - %m%n" />
        </layout>
    </appender>
    <appender name="LOG4J_LOG_APPENDER"
class="org.apache.log4j.DailyRollingFileAppender">
        <param name="DatePattern" value="'.'MM-dd-yyyy" />
        <param name="file" value="/tmp/CTLOAM.log" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d [%t] [%C{1}]
[%X{sessionId}] - %m%n" />
        </layout>
    </appender>

    <logger name="com.ctl.oam" additivity="false">
        <level value="LOG4J_LOG_LEVEL" />
        <appender-ref ref="LOG4J_LOG_APPENDERREF" />
        <appender-ref ref="stdout" />
    </logger>
    <root>
        <priority value="info"></priority>
        <appender-ref ref="LOG4J_LOG_APPENDER" />
    </root>

</log4j:configuration>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[Bug 57594] ERROR An element with the identifier "LOG4J_LOG_APPENDERREF" must appear in the document.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57594

--- Comment #4 from James Thomas <je...@aol.com> ---
fair enough, thanks for the update.(In reply to Ralph Goers from comment #3)
> We couldn't possibly know the answer to that. I can only speculate that it
> was a typo.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[Bug 57594] ERROR An element with the identifier "LOG4J_LOG_APPENDERREF" must appear in the document.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57594

--- Comment #2 from James Thomas <je...@aol.com> ---
(In reply to Ralph Goers from comment #1)
> logger com.ctl.oam has a reference to LOG4J_LOG_APPENDERREF. There is no
> appender with that name defined. Presumably you want to change it to
> LOG4J_LOG_APPENDER.

thanks for reply, question would this LOG4J_LOG_APPENDERREF have come from some
other area in the setup that got lost, or should a LOG4_LOG_APPENDREF be
defined ? where would I look to find, all this was "turned over " as previous
person has left.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[Bug 57594] ERROR An element with the identifier "LOG4J_LOG_APPENDERREF" must appear in the document.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57594

Ralph Goers <Ra...@dslextreme.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Ralph Goers <Ra...@dslextreme.com> ---
logger com.ctl.oam has a reference to LOG4J_LOG_APPENDERREF. There is no
appender with that name defined. Presumably you want to change it to
LOG4J_LOG_APPENDER.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[Bug 57594] ERROR An element with the identifier "LOG4J_LOG_APPENDERREF" must appear in the document.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57594

--- Comment #3 from Ralph Goers <Ra...@dslextreme.com> ---
We couldn't possibly know the answer to that. I can only speculate that it was
a typo.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org