Greetings
I modified the Makefile that comes with Jakarta Tomcat
3.2 in order to compile the Redirector under Solaris
(i found some things that didn't work under with my
configuration); I'm not sure if will work for
everybody but at least you can try :)
This is my current setup:
Solaris 2.6
Netscape Enterprise Server 3.6
Gcc 2.95.1 19990816 (release)
GNU Make version 3.76.1
Java(TM) 2 Runtime Environment, Standard Edition
(build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed
mode)
Tomcat 3.2
All you have to do is the following:
1) Set the environment variable JK_DIR; This is where
the Native source files are located (my test config is
/local5/src/jakarta_source/jakarta-tomcat/src/native/jk).
For example i typed:
setenv JK_DIR
/local5/src/jakarta_source/jakarta-tomcat/src/native/jk
2) Check the Makefiles contents to see if they are Ok;
This is the modified Makefile:
# Modified by Jose Vicente Nunez Zuleta
([EMAIL PROTECTED]) on 07/02/2001
# Defines for example NSAPI programs running under
SOLARIS
CC_CMD=gcc -DNET_SSL -DSOLARIS -D_REENTRANT
LD_SHAREDCMD=ld -G
all:
OS_TYPE=solaris
INCLUDEDIR=$(SUITESPOT_HOME)/include
JAVA_INCLUDE=$(JAVA_HOME)/include
JK_INCLUDE=$(JK_DIR)
VPATH=$(JK_INCLUDE):'pwd'
JK_OBJS = jk_ajp12_worker.o jk_ajp13_worker.o
jk_jni_worker.o jk_map.o jk_nwmain.o \
jk_sockbuf.o jk_util.o jk_ajp13.o jk_connect.o
jk_lb_worker.o jk_msg_buff.o jk_pool.o \
jk_uri_worker_map.o jk_worker.o jk_nsapi_plugin.o
INCLUDE_FLAGS=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/base
-I$(INCLUDEDIR)/frame -I$(JAVA_INCLUDE)
-I$(JAVA_INCLUDE)/$(OS_TYPE) -I$(JK_INCLUDE)
COMMON_DEFS=-DMCC_HTTPD -DXP_UNIX -DSPAPI20 -DSOLARIS
-Wall
all: nsapi_redirector.so
nsapi_redirector.so: $(JK_OBJS)
$(LD_SHAREDCMD) $(JK_OBJS) -o
nsapi_redirector.so $(EXTRA_LDDEFINES)
.c.o:
$(CC_CMD) $(COMMON_DEFS) $(INCLUDE_FLAGS) -c
$<
3) Type the following:
make -f Makefile.solaris
4) Then move the nsapi_redirector.so to the desired
location :)
I tried to test the NSAPI plugin but i got the
following error:
[root]$ HANDLER THREAD PROBLEM: java.io.IOException:
Stream broken
java.io.IOException: Stream broken
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:426)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Any ideas to solve this?
Thanks in advance.
José Vicente Núñez Zuleta.
=====
_________________________________________________________
Do You Yahoo!?
Obtenga su dirección de correo-e gratis @yahoo.com
en http://correo.espanol.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
I fixed the Makefile for building NSAPI redirector on Solaris (Makefile.solaris) but still unable to connect! (help needed!)
Jos� Vicente N��ez Zuleta Wed, 07 Feb 2001 17:06:18 -0800
