logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aidan Monroe <kms_lo...@yahoo.com>
Subject Startup Error Messages
Date Mon, 10 Mar 2003 22:20:42 GMT
I am trying to install Log4J into my web application.
So far all I've done is place my log4j.xml file into
the WEB-INF/classes directory of my application
distribution and added a few debug statement in my
code.

Now, whenever I start up my app server (WebLogic 7.0),
I get the following errors:

     [exec] log4j:ERROR Parsing error on line 2 and
column 69
     [exec] log4j:ERROR Element type
"log4j:configuration" must be declared.
     [exec] log4j:ERROR Parsing error on line 3 and
column 68
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 4 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 5 and
column 74
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 8 and
column 65
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 9 and
column 48
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 10 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 11 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 12 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 15 and
column 64
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 16 and
column 47
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 17 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 18 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 19 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 22 and
column 62
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 23 and
column 45
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 24 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 25 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 26 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 29 and
column 60
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 30 and
column 43
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 31 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 32 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 33 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 36 and
column 61
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 37 and
column 44
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 38 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 39 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 40 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 43 and
column 66
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 44 and
column 49
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 45 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 46 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 47 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 50 and
column 67
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 51 and
column 50
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 52 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 53 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 54 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 57 and
column 66
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 58 and
column 49
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 59 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 60 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 61 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 64 and
column 65
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 65 and
column 48
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 66 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 67 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 68 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 71 and
column 64
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 72 and
column 47
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 73 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 74 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 75 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 78 and
column 63
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 79 and
column 46
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 80 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 81 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 82 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 85 and
column 62
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 86 and
column 45
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 87 and
column 39
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 88 and
column 50
     [exec] log4j:ERROR Element type "layout" must be
declared.
     [exec] log4j:ERROR Parsing error on line 89 and
column 64
     [exec] log4j:ERROR Element type "param" must be
declared.
     [exec] log4j:ERROR Parsing error on line 92 and
column 75
     [exec] log4j:ERROR Element type "appender" must
be declared.
     [exec] log4j:ERROR Parsing error on line 93 and
column 65
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 94 and
column 28
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 95 and
column 32
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 97 and
column 64
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 98 and
column 28
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 99 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 101 and
column 62
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 102 and
column 28
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 103 and
column 29
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 105 and
column 60
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 106 and
column 25
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 107 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 109 and
column 61
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 110 and
column 26
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 111 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 113 and
column 66
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 114 and
column 31
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 115 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 117 and
column 67
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 118 and
column 32
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 119 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 121 and
column 66
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 122 and
column 31
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 123 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 125 and
column 65
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 126 and
column 30
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 127 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 129 and
column 64
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 130 and
column 29
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 131 and
column 31
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 133 and
column 63
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 134 and
column 28
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 135 and
column 30
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 137 and
column 62
     [exec] log4j:ERROR Element type "category" must
be declared.
     [exec] log4j:ERROR Parsing error on line 138 and
column 28
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 139 and
column 29
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.
     [exec] log4j:ERROR Parsing error on line 141 and
column 8
     [exec] log4j:ERROR Element type "root" must be
declared.
     [exec] log4j:ERROR Parsing error on line 142 and
column 27
     [exec] log4j:ERROR Element type "priority" must
be declared.
     [exec] log4j:ERROR Parsing error on line 143 and
column 29
     [exec] log4j:ERROR Element type "appender-ref"
must be declared.



My log4j.xml file does have all the proper elements
defined. Here it is:

<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/">
	<appender name="console"
class="org.apache.log4j.ConsoleAppender">
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d %-5p
%C{2} (%F:%L) - %m%n"/>
		</layout>
	</appender>
	<appender name="caching"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/caching.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="client"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/client.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="core"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/core.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="db"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/db.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="ejb"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/ejb.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="entities"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/entities.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="messaging"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/messaging.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="security"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/security.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="service"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/service.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="taglib"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/taglib.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="tools"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/tools.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="util"
class="org.apache.log4j.FileAppender">
		<param name="File" value="logs/util.log"/>
		<param name="Append" value="false"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%5p (%F:%L)
- %m%n"/>
		</layout>
	</appender>
	<appender name="null"
class="org.apache.log4j.performance.NullAppender"/>
	<category name="com.avexus.impresa.caching"
additivity="false">
		<priority value="debug"/>
		<appender-ref ref="caching"/>
	</category>
	<category name="com.avexus.impresa.client"
additivity="false">
		<priority value="debug"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.core"
additivity="false">
		<priority value="debug"/>
		<appender-ref ref="core"/>
	</category>
	<category name="com.avexus.impresa.db"
additivity="false">
		<priority value="db"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.ejb"
additivity="false">
		<priority value="ejb"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.entities"
additivity="false">
		<priority value="entities"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.messaging"
additivity="false">
		<priority value="messaging"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.security"
additivity="false">
		<priority value="security"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.service"
additivity="false">
		<priority value="service"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.taglib"
additivity="false">
		<priority value="taglib"/>
		<appender-ref ref="client"/>
	</category>
	<category name="com.avexus.impresa.tools"
additivity="false">
		<priority value="debug"/>
		<appender-ref ref="tools"/>
	</category>
	<category name="com.avexus.impresa.util"
additivity="false">
		<priority value="debug"/>
		<appender-ref ref="util"/>
	</category>
	<root>
		<priority value="warn"/>
		<appender-ref ref="util"/>
	</root>
</log4j:configuration>


WebLogic does start up properly. And I do have some
log statements in my code that do get printed to the
correct files. So these messages appear to be
harmless, but I'm trying to find out why there are
caused.

TIA.

Aidan.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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


Mime
View raw message