From owner-freebsd-java Thu Aug 22 21:40:56 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03C4537B400 for ; Thu, 22 Aug 2002 21:40:53 -0700 (PDT) Received: from mgr3.xmission.com (mgr3.xmission.com [198.60.22.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43F4343E70 for ; Thu, 22 Aug 2002 21:40:52 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr3.xmission.com with spam-scanned (Exim 3.35 #1) id 17i6Ff-0005Xz-00 for freebsd-java@freebsd.org; Thu, 22 Aug 2002 22:40:52 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr3.xmission.com with esmtp (Exim 3.35 #1) id 17i6Fe-0005Xv-00 for freebsd-java@FreeBSD.ORG; Thu, 22 Aug 2002 22:40:51 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g7N4dRI34438; Fri, 23 Aug 2002 14:09:27 +0930 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 23 Aug 2002 14:09:27 +0930 From: Greg Lewis To: Dev Zero G Ltd Cc: freebsd-java@FreeBSD.ORG Subject: Re: JniHandler and ChannelUn Errors Message-ID: <20020823140927.A34395@misty.eyesbeyond.com> References: <3D656CF2.8090506@devzerog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3D656CF2.8090506@devzerog.com>; from mailing_lists@devzerog.com on Fri, Aug 23, 2002 at 12:00:02AM +0100 X-Spam-Status: No, hits=-4.1 required=8.0 tests=IN_REP_TO,X_AUTH_WARNING version=2.31 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Aug 23, 2002 at 12:00:02AM +0100, Dev Zero G Ltd wrote: > Hello, thanks for reading and PLEASE HELP! > > Building and then launching the Tomcat 4.0.4 connector for Apache 2 on > FreeBSD 4.4, linux-jdk 1.4 , we get: > > org.apache.jk.server.JkMain init > INFO: Starting Jk2, base dir= /usr/local/tomcat4.0.4_1.4.0 > conf=/usr/local/tomcat4.0.4_1.4.0/conf/jk2.properties > org.apache.jk.server.JkMain start > INFO: APR not loaded, disabling jni components: java.io.IOException: > /usr/local/ > tomcat4.0.4_1.4.0/lib/jk_jnicb.so: > /usr/local/tomcat4.0.4_1.4.0/lib/jk_jni.so: > ELF file OS ABI invalid. > > Then, we were answered: > > > I'm assuming you're running 1.4 under Linux emulation, since the > > native 1.4 isn't near finished yet :). The obvious guess would > > then be that the shared library jk_jni.so is in fact a native > > FreeBSD shared library when it needs to be a Linux shared > > library. Any shared library loaded by a Linux JDK running under > > emulation must be a Linux shared library." > > After that we have tried to build jkjni.so with native freeBSD jdk1.3, > so this shared library can use native FreeBSD methods. > But, after starting Tomcat 4.0.4 (jdk 1.3) we get: > > Error JniHandler - -nativeDispatch: error 21000 > Error ChannelUn - -receive error: 21000 > (info) [jk_jni_aprImpl.c (470)] jkInvoke() invoke 2db8bd2c > (info) [jk_channel_un.c (292)] channelUn.close(): close unix socket -1 > (error) [jk_channel_un.c (416)] channelUn.receive():error receiving -3 9 > Bad file descriptor 0x15abd0f0 -1 > > ANY ideas, suggestions, guesses - would be greatly appreciated. > Thanks in advance. Try these: 1. Compile the shared library under Linux and try your application under emulation again. As long as the JNI object format matches the JDK you're ok, it doesn't matter in which direction you go. I'd try the 1.3 Linux JDK though, 1.4 has some problems due to HotSpot. 2. Produce a small test case that demonstrates your problems and submit it as a bug. Its almost impossible to do any sort of debugging when there is almost no information about the code or what its doing. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message