You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hassan Siddiqui <hs...@astro.estec.esa.nl> on 2001/05/11 13:11:07 UTC

Netscape server 3.5.1 & tomcat error

Hi

I'm pretty much a newbie with regards to using tomcat, and to this mailing
list, so forgive me if this has already been covered.

I've built a nsapi_redirector.so using Jose Zuleta's advice in a prev email
on this mailing list (8 Feb 2001), and configured my Netscape Server obj.conf
file according to Gal Shachor's Tomcat Netscape How-To. The relevant entries
to my obj.conf file read:

Init fn="load-modules" funcs="jk_init,jk_service"
shlib="/usr4/users/hsiddiqu/tmp/TOMCAT-NS/jakarta/jakarta-tomcat/src/native/netscape/nsapi_redirector.so"
Init fn="jk_init"
worker_file="/usr4/users/hsiddiqu/FIRST/Web/servlet/tomcat/test/3_2_1/jakarta-tomcat-3.2.1/conf/workers.properties"
log_level="debug"
log_file="/usr4/users/hsiddiqu/FIRST/Web/servlet/tomcat/test/3_2_1/jakarta-tomcat-3.2.1/nsapi.log" 

NameTrans fn="assign-name" from="/servlet/*" name="servlet"
NameTrans fn="assign-name" from="/examples/*" name="servlet"

<Object name=servlet> 
ObjectType fn=force-type type=text/plain 
Service fn="jk_service" worker="ajp12" 
</Object> 


When I try to restart Netscape Server
I get the following errors:

Status:
    [https-firstws1]: pclose() failed. (2: unknown early startup error)
    [https-firstws1]: conf_init: Error running init function(late) jk_init:
unknown error 
    [https-firstws1]: server exit: status 1 

Any ideas as to what the error could be?

NES & tomcat: Zuleta email

Posted by Hassan Siddiqui <hs...@astro.estec.esa.nl>.
Jesse Reynolds wrote:
> 
> At 13:11 +0200 11/5/2001, Hassan Siddiqui wrote:
> 
> >I've built a nsapi_redirector.so using Jose Zuleta's advice in a prev email
> >on this mailing list (8 Feb 2001), and configured my Netscape Server obj.conf
> >file according to Gal Shachor's Tomcat Netscape How-To. The relevant entries
> >to my obj.conf file read:
> 
> Is there any chance you could repost Jose Zuleta's advice from 8 Feb
> 2001 on building nsapi_redirector.so ??? I am trying to work out how
> to get tomcat and nes working on solaris, as are a whole bunch of
> people who have been asking this question on this list lately...
> 
> Then maybe i'll run into the same problem you're now having ;-)
> 
> Cheers
> 
> Jesse


No probs, Jesse. I'm a newbie on this mailing list, and I had found it
via a google search:

http://www.perl.jann.com/tomcat/200102/msg00830.html

His full email is also copied below. 

BTW I fixed the problem that I had had when
I posted the email you responded to (silly mistake - forgot to add
a newline between Init fn specifiers in obj.conf), but it that only
revealed *another* problem, which I shall post in a separate message.

I'm glad to hear of someone else working on a similar problem at the moment;
hopefully we can help each other out. (But what the tomcat project needs is a
decent searchable mailing list and faq - I couldn't find either).

Cheers  -Hassan.

############################################


Modified Makefile NSAPI connector under Solaris 2.6 (hope thi
s helps!)



    To: tomcat-user@xxxxxxxxxxxxxxxxxx, tomcat-dev@xxxxxxxxxxxxxxxxxx 
    Subject: Modified Makefile NSAPI connector under Solaris 2.6 (hope thi s
helps!) 
    From: José Vicente Núñez Zuleta <ja...@xxxxxxxxx> 
    Date: Thu, 8 Feb 2001 06:02:45 -0600 (CST) 
    Delivered-To: mailing list tomcat-user@jakarta.apache.org 
    list-help: <ma...@jakarta.apache.org> 
    list-post: <ma...@jakarta.apache.org> 
    list-unsubscribe: <ma...@jakarta.apache.org> 
    Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm 
    Reply-To: tomcat-user@xxxxxxxxxxxxxxxxxx 



Greetings

I managed to compile the NSAPI connector for
Jackarta-Tomcat under the following configuration
(itried to find if someone managed to compile the
module but i found no answer).

Thi is my current configuration
* java version "1.3.0_01" Java(TM) 2 Runtime
Environment, Standard Edition (build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed
mode)
* GNU Make version 3.76.1, by Richard Stallman and
Roland McGrath.
* Tomcat 3.2
* Netscape Enterprise Server 3.6
* SunOS xxxx 5.6 Generic_105181-23 sun4u sparc
SUNW,Ultra-250

Here are the steps to compile the NSAPI connector
using this modified Makefile:

1) Define the following 3 environment variables
(JAVA_HOME, JK_INCLUDE, SUITESOPT_HOME) (i'm using
tcsh on the example but you should change the
syntax on other shells. Also remeber to put your real
paths):

setenv JAVA_HOME /local/usr/j2se
setenv SUITESPOT_HOME /local/netscape/suitespot
setenv JK_DIR
/local5/src/jakarta_source/jakarta-tomcat/src/native/jk

2) Check the new Makefile just to see if everithing is
Ok:

#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) Compile the source the NSAPI redirector (i suppouse
yo are in the same directory as the Makefile):
make -f Makefile.solaris

4) Copy the nsapi_redirector.so file to the desired
location and follow the instructions at

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-netscape-howto.html
 
 
I followed all the instructions and the NSAPI module
worked without a problem.

I hope this help anyone with the same problem i got :)

José Vicente Núñez Zuleta


=====
José Vicente Núñez Zuleta
System Engineer / Developer
Development Leader, Diario El Universal
http://www.eluniversal.com
http://www.autofuturo.com (current project)

################################################################################

-- 
 Hassan Siddiqui                      ESA/SCI/SAX
 Tel:   +31-(0)71-565 5899            Room Dd 015, ESTEC  
 Fax:   +31-(0)71-565 4690            PO Box 299, 2200 AG Noordwijk 
 http://astro.estec.esa.nl            The Netherlands

Re: Netscape server 3.5.1 & tomcat error

Posted by Jesse Reynolds <li...@va.com.au>.
At 13:11 +0200 11/5/2001, Hassan Siddiqui wrote:

>I've built a nsapi_redirector.so using Jose Zuleta's advice in a prev email
>on this mailing list (8 Feb 2001), and configured my Netscape Server obj.conf
>file according to Gal Shachor's Tomcat Netscape How-To. The relevant entries
>to my obj.conf file read:

Is there any chance you could repost Jose Zuleta's advice from 8 Feb 
2001 on building nsapi_redirector.so ??? I am trying to work out how 
to get tomcat and nes working on solaris, as are a whole bunch of 
people who have been asking this question on this list lately...

Then maybe i'll run into the same problem you're now having ;-)

Cheers

Jesse

-- 

       Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
                                                  jesse (at) va.com.au