Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 92982 invoked from network); 8 Feb 2001 01:20:35 -0000 Received: from web12602.mail.yahoo.com (216.136.173.225) by h31.sny.collab.net with SMTP; 8 Feb 2001 01:20:35 -0000 Message-ID: <20010208012037.21630.qmail@web12602.mail.yahoo.com> Received: from [216.72.158.89] by web12602.mail.yahoo.com; Wed, 07 Feb 2001 19:20:37 CST Date: Wed, 7 Feb 2001 19:20:37 -0600 (CST) From: =?iso-8859-1?q?Jos=E9=20Vicente=20N=FA=F1ez=20Zuleta?= Subject: I fixed the Makefile for building NSAPI redirector on Solaris (Makefile.solaris) but still unable to connect! (help needed!) To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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 (josevnz@yahoo.com) 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