From owner-freebsd-questions@FreeBSD.ORG Thu May 29 17:19:52 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B08937B401 for ; Thu, 29 May 2003 17:19:52 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5700B43F85 for ; Thu, 29 May 2003 17:19:51 -0700 (PDT) (envelope-from ralph@dimp.com) Received: (qmail 11563 invoked from network); 30 May 2003 00:19:50 -0000 Received: from unknown (HELO dimp.com) (ingridlr@[68.165.14.33]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 May 2003 00:19:50 -0000 Message-ID: <3ED69AB3.8090904@dimp.com> Date: Thu, 29 May 2003 18:41:39 -0500 From: Ralph Mellor User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030515 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 To: ofbiz-users@lists.sourceforge.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: log4j-user@jakarta.apache.org cc: freebsd-questions@freebsd.org Subject: log4j:ERROR Attempted to append to closed appender named [stdout] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 00:19:52 -0000 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 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000 jkh@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@1cec00f0 16:24:18.004 EVENT Starting Jetty/4.2.9 16:24:18.025 EVENT Started org.mortbay.http.NCSARequestLog@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@1cf6a9bf. log4j: Trying to find [log4j.xml] using java.net.URLClassLoader@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@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