<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Nsjk2</id>
	<title>Nsjk2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Nsjk2"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Nsjk2&amp;action=history"/>
	<updated>2026-04-19T07:33:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Nsjk2&amp;diff=2897&amp;oldid=prev</id>
		<title>WikiSysop: imported from WiKit id 234</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Nsjk2&amp;diff=2897&amp;oldid=prev"/>
		<updated>2005-08-24T20:22:11Z</updated>

		<summary type="html">&lt;p&gt;imported from WiKit id 234&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Project page: [http://sourceforge.net/project/showfiles.php?group_id=3152&amp;amp;package_id=110562]&lt;br /&gt;
----&lt;br /&gt;
[[Dossy]] 18nov2004: After much struggling trying to get the JNI channel working, I stumbled across this bug in the Apache Bugzilla database: [http://issues.apache.org/bugzilla/show_bug.cgi?id=28003 JK2 documentation and usage issues] ([http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg55852.html copy]).  It specifically speaks to running Tomcat 5/mod_jk2/Apache 2 in-process with JNI -- very applicable for anyone running AOLserver/Tomcat 5/nsjk2 in-process with JNI.  In the Bugzilla report, there's a link to the [http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html Tomcat 4.1 JK2 documentation] which isn't very well linked to.&lt;br /&gt;
&lt;br /&gt;
[[Dossy]] 11nov2004: I have just checked in changes to nsjk2 to simplify the build process -- I'm still not done yet, but it's much better than it was before.  Read the README.build file for step-by-step instructions on how to build nsjk2 and all the required pre-requisites.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
NB. On Linux 2.4 kernel as of 3rd Oct 2004. You can't compile the CVS source for nsjk2 against APR 1.0.0. Even after changing the build scripts to point to APR-1 instead of APR-0. It does compile successfully against APR 0.9.4. &lt;br /&gt;
&lt;br /&gt;
Also (missing for the build instructions) you need to symlink ''libaprutil-0.so'' to ''libaprutil.so'' as you do with ''libapr-0.so'' otherwise ''ant all'' fails.&lt;br /&gt;
&lt;br /&gt;
Steve Manning (steve@manning.net)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
BUG: [http://aolserver.com/sf/bug/984785 Sun JVM 1.4 on Linux SIGCHLD handler interferes w/Tcl exec]&lt;br /&gt;
&lt;br /&gt;
There is a known bug in the Sun JVM 1.4 on Linux where it unnecessarily installs a SIGCHLD signal handler which interferes with Tcl's [exec] command.  The bug has been fixed in JVM 1.5.0_beta2.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
http://listserv.aol.com/cgi-bin/wa?A2=ind0408&amp;amp;L=aolserver&amp;amp;P=29122&lt;br /&gt;
&lt;br /&gt;
  Date:         Thu, 19 Aug 2004 15:34:04 -0400&lt;br /&gt;
  From:         Timothy Suh &lt;br /&gt;
  Subject:      Re: nsjk2 - SEVERE error message.&lt;br /&gt;
&lt;br /&gt;
There seems to be a bug with tomcat 5.0.27 specifically with&lt;br /&gt;
tomcat-jni.jar package (see explanation below). I will report the bug to&lt;br /&gt;
tomcat folks.&lt;br /&gt;
&lt;br /&gt;
Solution is to use tomcat-5.0.19 which I know works. Other versions&lt;br /&gt;
between 5.0.27 and 5.0.19 may also work if they do not contain the bug.&lt;br /&gt;
I also tried replacing 5.0.27 with tomcat-jni.jar from 5.0.19. That&lt;br /&gt;
worked too. Of course, not sure if tomcat will behave overall. But this&lt;br /&gt;
is another option if you must use 5.0.27.&lt;br /&gt;
&lt;br /&gt;
Boring explanation follows:&lt;br /&gt;
&lt;br /&gt;
Basically, signature does not match. Looking at source code&lt;br /&gt;
(MsgContext.java and ChannelSocket.java) for both 5.0.19 and 5.0.27, the&lt;br /&gt;
problem is that&lt;br /&gt;
&lt;br /&gt;
ChannelSocket.java has&lt;br /&gt;
&lt;br /&gt;
  Public class ChannelSocket extends JkHandler&lt;br /&gt;
  ...&lt;br /&gt;
    MsgContext ep = new MsgContext()&lt;br /&gt;
    ep.setSource(this);&lt;br /&gt;
&lt;br /&gt;
this is fine when&lt;br /&gt;
&lt;br /&gt;
  MsgContext.java (5.0.19)&lt;br /&gt;
&lt;br /&gt;
    public final void setSource(JkHandler ch)&lt;br /&gt;
&lt;br /&gt;
however you get NoSuchMethod error when&lt;br /&gt;
&lt;br /&gt;
  MsgContext.java (5.0.27)&lt;br /&gt;
&lt;br /&gt;
    public final void setSource(JkChannel ch)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
http://listserv.aol.com/cgi-bin/wa?A2=ind0408&amp;amp;L=aolserver&amp;amp;P=21315&lt;br /&gt;
&lt;br /&gt;
  Date:         Tue, 17 Aug 2004 15:34:32 -0400&lt;br /&gt;
  From:         Dossy Shiobara &lt;br /&gt;
  Subject:      Change of ownership of the nsjk2 module&lt;br /&gt;
&lt;br /&gt;
On August 6, there were some changes at AOL that folks may want to be&lt;br /&gt;
aware of.&lt;br /&gt;
&lt;br /&gt;
The first is that Mark Page has left AOL.  We all wish him the best in&lt;br /&gt;
his new gig.  If we're lucky, maybe he'll still keep an eye on the&lt;br /&gt;
project and poke around once in a while.&lt;br /&gt;
&lt;br /&gt;
The second change is that Elizabeth Thomas has transitioned to a&lt;br /&gt;
different group within AOL, and is no longer involved in&lt;br /&gt;
AOLserver-specific development.  Therefore, ownership of the nsjk2&lt;br /&gt;
module has been transferred to Timothy Suh.&lt;br /&gt;
&lt;br /&gt;
Questions and issues should continue to be raised on this list or on the&lt;br /&gt;
wiki, but in case folks want to contact someone directly, please&lt;br /&gt;
redirect concerns to Tim's attention, now.  Thanks!&lt;br /&gt;
&lt;br /&gt;
-- Dossy&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
http://listserv.aol.com/cgi-bin/wa?A2=ind0405&amp;amp;L=aolserver&amp;amp;P=14159&lt;br /&gt;
&lt;br /&gt;
  Date: Fri, 21 May 2004 10:48:26 -0400&lt;br /&gt;
  From: Elizabeth Thomas&lt;br /&gt;
  Subject: Re: [[AOLSERVER]] Java support in AOLserver&lt;br /&gt;
&lt;br /&gt;
First off, I'm very excited about Dossy's new role. It's great news for&lt;br /&gt;
the AOLserver project. I would also like to take this opportunity to&lt;br /&gt;
introduce Timothy Suh, who is on our team here at AOL and is also&lt;br /&gt;
working on nsjk2.&lt;br /&gt;
&lt;br /&gt;
For the benefit of any newcomers, nsjk2 is a module which provides the&lt;br /&gt;
ability to run the Tomcat servlet container with AOLserver (much like it&lt;br /&gt;
is done with Apache). Tomcat can run either in the AOLserver process&lt;br /&gt;
(recommended) or out-of-process. With nsjk2, you can have an AOLserver&lt;br /&gt;
fielding requests for 'traditional' aolserver pages and as well as JSPs&lt;br /&gt;
and servlets. Its javatclbridge utilities enable your java pages access&lt;br /&gt;
to tcl and adp processing which allow you to leverage existing&lt;br /&gt;
AOLserver-based infrastructure. As AOL has a large AOLserver-based&lt;br /&gt;
investment, this bridging ability is a critical driver for our interest&lt;br /&gt;
in nsjk2 for those projects which, for various reasons, choose a&lt;br /&gt;
java-based implementation. This investment includes not only the&lt;br /&gt;
services coded in ADP/TCL, but also our operational administration and&lt;br /&gt;
configuration built around AOLserver. Strategically, the future of&lt;br /&gt;
AOLserver/Tomcat is somewhat uncertain - it will simply depend on who&lt;br /&gt;
finds it useful. However, there has been a great deal of interest in it&lt;br /&gt;
here.&lt;br /&gt;
&lt;br /&gt;
We are currently working on the following enhancements to nsjk2. These&lt;br /&gt;
are driven from requirements of internal projects at AOL.&lt;br /&gt;
&lt;br /&gt;
'''1. Tomcat 5 support'''&lt;br /&gt;
&lt;br /&gt;
This is nearly done. In fact, if you check out the head of the CVS&lt;br /&gt;
tree for nsjk2, you should be able to run nsjk2 with Tomcat 5. The main&lt;br /&gt;
trunk is forming the basis for an upcoming v2 release.&lt;br /&gt;
&lt;br /&gt;
For now, Tomcat 4 compatibility with only be supported on the (new) v1&lt;br /&gt;
branch (until such time that we can make v2 backward compatible). We&lt;br /&gt;
will backport the new features described below to the v1 branch as well.&lt;br /&gt;
&lt;br /&gt;
nsjk2_v1_r4 has been tagged (but not yet posted on sourceforge) - it&lt;br /&gt;
consists of just a minor fix to the java NsLog bridge to automatically&lt;br /&gt;
load the correct library.&lt;br /&gt;
&lt;br /&gt;
'''2. Java-implemented tcl commands'''&lt;br /&gt;
&lt;br /&gt;
We have a requirement to allow a tcl command to be implemented in java&lt;br /&gt;
and available from the AOLserver tcl interps - this is particularly&lt;br /&gt;
useful for administrative commands to be made available in the aolserver&lt;br /&gt;
control port. This is not a full 'calling java from tcl' approach a la&lt;br /&gt;
tclBlend, but more along the lines of how we implement tcl commands in&lt;br /&gt;
C. The command is implemented in java, and exposed through creating a&lt;br /&gt;
tcl command API. (Note that this does not prohibit future integration of&lt;br /&gt;
tclBlend should someone be so motivated :) )&lt;br /&gt;
&lt;br /&gt;
'''3. Java-controlled logging.'''&lt;br /&gt;
&lt;br /&gt;
Tomcat and AOLserver have separate logging mechanisms, which is often&lt;br /&gt;
undesirable to Operations, which wishes a single log (or single logging&lt;br /&gt;
configuration mechanism). The existing NsLog class in the javatclbridge&lt;br /&gt;
allows java code to log via the AOLserver Ns_Log mechanism. However, we&lt;br /&gt;
have projects that wish to control all their logging on the Java side&lt;br /&gt;
using facilities like log4j. To enable this, we are adding the ability&lt;br /&gt;
in AOLserver for a module to 'take over' the Ns_Log functionality by&lt;br /&gt;
registering callbacks.&lt;br /&gt;
&lt;br /&gt;
The final completion of all these items is scheduled for late July,&lt;br /&gt;
although you are likely to see them 'trickle in' to the baseline between&lt;br /&gt;
now and then. In the process, we'll also be looking for and addressing&lt;br /&gt;
issues that might affect AOLserver/Tomcat's viability in a production&lt;br /&gt;
environment.&lt;br /&gt;
&lt;br /&gt;
We are excited to hear about people's experiences with this combo and&lt;br /&gt;
welcome any additional fixes/enhancements that others are able to&lt;br /&gt;
contribute.&lt;br /&gt;
&lt;br /&gt;
-Elizabeth&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
</feed>