Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 92307 invoked from network); 19 Nov 2002 17:59:05 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Nov 2002 17:59:05 -0000 Received: (qmail 17098 invoked by uid 97); 19 Nov 2002 17:59:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 17058 invoked by uid 97); 19 Nov 2002 17:59:57 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 17044 invoked by uid 98); 19 Nov 2002 17:59:57 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3DDA7BDC.2090103@cs.com> Date: Tue, 19 Nov 2002 12:58:52 -0500 From: Alexander Leyke User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en, ru MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: JK2 module for AOLserver Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello! I am working on a JK2 module for AOLserver and would like to receive feedback on JNI and compiler issues I encountered. My environment is Solaris 7, AOLserver 3.4 and Tomcat 4.1.12. Issues: 1) Can't use JNI worker. AOLserver follows single-process, multi-threaded architectural model and its native scripting language is Tcl. Executing servlets in-process would help to bridge a gap between Java and Tcl and so is an important motivation in this project. My module loads JVM and initializes Tomcat in-process, but then I encounter 2 conditions: "ajp13" worker factory seems to be hardcoded regardless of actual worker type. Here is a snippet from JTC-4.1.12/jk/native2/common/jk_workerEnv.c: static int jk2_workerEnv_addChannel(jk_env_t *env, jk_workerEnv_t *wEnv, jk_channel_t *ch) { ... /* Automatically create the ajp13 worker to be used with this channel. */ jkb=env->createBean2(env, ch->mbean->pool, "ajp13", ch->mbean->localName ); ... } I changed the code above to use "ajp13" or "worker.jni" depending on ch->mbean->localName , but that still didn't help, because jk2_jni_worker_service function in JTC-4.1.12/jk/native2/common/jk_worker_jni.c is a placeholder. I did make sure not to use default "lb" worker for JNI. Is JNI worker intentionally disabled, or am I misinterpreting the code? I could fix jk2_jni_worker_service function with some guidance, but is there a similar implementation gap in Tomcat 4 Java classes? 2) JTC build doesn't seem to be very friendly for non-GNU compilers. I use Sun Workshop, and had to write some hacks to make ant and libtool work with Sun's C compiler. In particular, both ant and libtool insisted on supplying invalid "-W" command option to compiler. I suspect that JTC-4.1.12/jk/jkant/java/org/apache/jk/ant/compilers/CcCompiler.java is intended for UCB cc support, and I need to write a separate class for ant to work with Sun's cc and bypass libtool (which configured itself mostly correctly to use Sun cc, but still insisted on "-W"). Had anyone had any relevant experience? Thanks very much! Alex Leykekh Sr. Software Engineer, AOL Digital City -- To unsubscribe, e-mail: For additional commands, e-mail: