log4j:ERROR Attempted to append to closed appender named [stdout]

Ralph Mellor ralph at dimp.com
Thu May 29 17:19:52 PDT 2003


Hi all,

TIA for any help on this.

First, a note about having cross-posted:
  First, please note that this email has been cross-posted
  (is that the right term?) to 3 very distinct lists. I haven't
  set the Reply-To to for the same reason I've posted
  to multiple lists in the first place -- I don't know which
  is appropriate. I hope this is ok. Anyone replying to this,
  please reply-all (so later searchers see the reply) but use
  Reply-To to guide /further/ posts. Thanks. I spent a few
  hours researching this before posting this email, and read
  what I found in the way of list charters and this seemed
  the right thing to do given my circumstances. (Although I
  perhaps should have picked the emulation list from the
  FreeBSD project?)

At this stage I'm just trying to nail down which party to
focus on. It seems there might be a gotcha related to
FreeBSD Linux emulation or that a log4j or ofbiz
developer might be able to guide me in the right
direction for how to debug this. Any help from any
party is much appreciated.

The following line is appearing on my server's console:

    log4j:ERROR Attempted to append to closed appender named [stdout].

This appears as a java application called ofbiz attempts to
start. I'd like to work out why it is happening. (Later on the
application I'm trying to run segfaults, but I'll deal with that
in another email once I have a better idea of which list this
question should focus on.) Here's the detail:

OS is FreeBSD 4.2, emulating Linux:
# uname -a
   FreeBSD <host info> 4.2-RELEASE FreeBSD
   4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000
   jkh at bento.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386

I installed linux emulation, and linux_base_7.1.2. (Is there a
command that prints data out about linux emulation details?)

I installed Sun's JDK for Linux and switched it to use the classic VM:
# java -version:
   java version "1.3.1_08"
   Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_08-b03)
   Classic VM (build 1.3.1_08-b03, green threads, nojit)

I wrote/ran a HelloWorld to confirm basic Java worked.

I installed OfBiz 2.1.1 then launched it. It makes good progress
but has this log4j / stdout problem and then eventually dies with
a segfault. Here's what appears on the console (the 'expr: syntax
error' is nothing to worry about):

# $JAVA_HOME/bin/java -Dlog4j.debug -jar ofbiz.jar
expr: syntax error
Loading ./lib/common...
Loading ./lib/datavision...
Loading ./lib/jasperreports...
Loading ./lib/jotm...
Loading ./lib/scripting...
Loading ./lib/share...
Loading ./lib/weka...
Loading ./lib/worldpay...
Loading ./lib/compile/xerces.jar...
Loading ./lib/compile/activation.jar...
Loading ./lib/compile/mail.jar...
Loading ./lib/compile/jdbc2_0-stdext.jar...
Loading ./core/lib...
Loading ./commonapp/lib...

java.home......: /usr/local/jdk1.3.1_08/jre
java.version...: 1.3.1_08
ofbiz.home.....: .
server.class...: org.mortbay.jetty.Server
config.file....: ./setup/jetty/etc/ofbiz.xml

16:24:17.905 EVENT  Statistics on = false for 
org.mortbay.jetty.Server at 1cec00f0
16:24:18.004 EVENT  Starting Jetty/4.2.9
16:24:18.025 EVENT  Started org.mortbay.http.NCSARequestLog at 1cf961e2
16:24:18.633 EVENT  Started WebApplicationContext[/commonapp,Open For 
Business - commonapp]
log4j: Trying to find [log4j.xml] using context classloader 
org.mortbay.http.ContextLoader(file:/root/ofbiz/commonapp/webapp/WEB-INF/classes/) 
/ java.net.URLClassLoader at 1cf6a9bf.
log4j: Trying to find [log4j.xml] using java.net.URLClassLoader at 1cf6a9bf 
class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader 
org.mortbay.http.ContextLoader(file:/root/ofbiz/commonapp/webapp/WEB-INF/classes/) 
/ java.net.URLClassLoader at 1cf6a9bf.
log4j: Using URL 
[jar:file:/root/ofbiz/lib/share/jakarta-poi-1.5.1-final.jar!/log4j.properties] 
for automatic log4j configuration.
log4j: Reading configuration from URL 
jar:file:/root/ofbiz/lib/share/jakarta-poi-1.5.1-final.jar!/log4j.properties
log4j: Parsing for [root] with value=[FATAL, stdout].
log4j: Level token is [FATAL].
log4j: Category root set to FATAL
log4j: Parsing appender named "stdout".
log4j: Parsing layout options for "stdout".
log4j: Setting property [conversionPattern] to [%-4r [%t] %-5p %c %x - 
%m%n].
log4j: End of parsing for "stdout".
log4j: Parsed "stdout" options.
log4j: Parsing for [org] with value=[FATAL,  stdout].
log4j: Level token is [FATAL].
log4j: Category org set to FATAL
log4j: Parsing appender named "stdout".
log4j: Appender "stdout" was already parsed.
log4j: Handling log4j.additivity.org=[null]
log4j: Finished configuring.
log4j: Parsing for [root] with value=[ALL, stdout].
log4j: Level token is [ALL].
log4j: Category root set to ALL
log4j: Parsing appender named "stdout".
log4j: Parsing layout options for "stdout".
log4j: Setting property [conversionPattern] to [%-5r[%24F:%-3L:%-5p]%x 
%m%n].
log4j: End of parsing for "stdout".
log4j: Parsed "stdout" options.
log4j: Parsing for [org.ofbiz] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category org.ofbiz set to INFO
log4j: Handling log4j.additivity.org.ofbiz=[null]
log4j: Parsing for [freemarker] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category freemarker set to INFO
log4j: Handling log4j.additivity.freemarker=[null]
log4j: Parsing for [NoModule] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category NoModule set to INFO
log4j: Handling log4j.additivity.NoModule=[null]
log4j: Parsing for [org.ofbiz.core.control] with value=[ALL].
log4j: Level token is [ALL].
log4j: Category org.ofbiz.core.control set to ALL
log4j: Handling log4j.additivity.org.ofbiz.core.control=[null]
log4j: Parsing for [org.jpublish] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category org.jpublish set to INFO
log4j: Handling log4j.additivity.org.jpublish=[null]
log4j: Finished configuring.
log4j:ERROR Attempted to append to closed appender named [stdout].
0    [     ControlServlet.java:62 :INFO ] [ControlServlet.init] Loading 
Control Servlet mounted on path /root/ofbiz/commonapp/webapp/


I can provide lots more detail, but I'm hoping the above is
enough. Anyone have any ideas? Thanks for reading this far
and any ideas you might have.

-- 
ralph mellor



More information about the freebsd-questions mailing list