RE: compiling mod_jk under AIX (or any other OS it wasn't develop ed on)

2002-11-07 Thread Kajen, Michael
Hi,
Some months ago, I built mod_jk for HPUX and AIX with some difficulty. (The
Solaris build was postponed indefinitely.)
I read all the posted documentation, and nothing compiled 'out of the box'.
I found that many people posted identical errors that I encountered.
The basic problem, as I see it, is that the native compilers are too stupid
to compile the dialect of C code now used in public domain software. (I say
this having been a compiler implementer on a variety of platforms many years
ago).
Based on the errors I encountered with the build scripts and the C code, it
is my opinion that the build scripts were never tested on these platforms.

While it is certainly possible to hack the connector source to compile with
the various native compilers, I think a more realistic approach is to use
GCC, which is what I ended up doing.

mk

-Original Message-
From: Madere, Colin [mailto:colin.madere@;ieminc.com]
Sent: Wednesday, November 06, 2002 5:47 PM
To: 'Tomcat Users List'
Subject: RE: compiling mod_jk under AIX (or any other OS it wasn't
develop ed on)


I'm having the same build war with my Solaris 7 box.  Have the build scripts
using cc in places even when gcc is specified, have it telling me my apxs
path is invalid when I am absolutely sure it is valid and is not corrupt in
any way.  Every time I fix one thing, another is a problem.

Anyone know what platform you can actually compile the latest version of
JK/JK2 on without errors?  Isn't the whole purpose of having a buildconf and
configure script to solve most of those "where's the library" and other
platform issues?

> -Original Message-
> From: Milt Epstein [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 05, 2002 8:27 PM
> To:   Tomcat Users List
> Subject:  Re: compiling mod_jk under AIX
> 
> On Tue, 5 Nov 2002, Maureen Barger wrote:
> 
> > Thanks. I have googled and see lots of folks with the error but none
> > with the solution. Same with the archives.
> 
> Well, I did a quick search earlier today when I sent that earlier
> response, and I saw lots of people posting with similar errors, and
> lots of responses with suggestions.  And I myself had similar troubles
> some time back, and was able to make use of those suggestions to get
> things working.  So I know there is good information there.  Again,
> the solution involves specifying certain loader/linker options.
> 
> 
> > I am using apache 1.3.14 but my systems group should be pushing
> > 1.3.26 out later today or tomorrow. So John Turner's links don't
> > help -- I tried that too ;-)
> 
> Then the best thing is probably to wait until that's available, for
> many reasons.
> 
> 
> > Now I have discovered that there are a bunch of configure scripts
> available
> > at
> >
>  2.0/src/>
> > and am trying to work with those .. but of course I am still running
> into
> > some problems (some of which are probably my own doing as I am new to
> this
> > I am afraid).
> >
> > I am running
> > ./configure --with-apxs=/path-to/apache_1.3.14/bin/apxs
> > --with-java-home=path-to/jdk_130
> >
> > which goes ok.
> >
> > Then when I issue make, I receive
> > Making all in common
> >
> /bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr
> /bin/X11:/sbin:/var/ifor
> > --mode=compile gcc -I/web2_sys/apache_1.3.14/include -g -O2 -DAIX=43
> > -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -qnogenpcomp
> > -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_HSREGEX -DEAPI
> -D_ALL_SOURCE
> > -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES
> > -qlonglong -g -O2  -I /include -I /include/ -c ./jk_ajp12_worker.c
> > /usr/bin/sh:
> >
> /bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr
> /bin/X11:/sbin:/var/ifor:
> > not found.
> > make: 1254-004 The error code from the last command is 127.
> >
> >
> > Stop.
> > make: 1254-004 The error code from the last command is 1.
> >
> >
> > Stop.
> >
> >
> > Near as I can figure, my /sbin directory does not contain what the
> script
> > is looking for (in this case, /sbin/var/ifor). In fact the sbin
> directory
> > contains only 3 files and one other dir named helpers. So I am not sure
> if
> > I can comment that out or go back to the systems group and ask them or
> what.
> >
> >
> > At 01:26 PM 11/5/2002 -0600, Milt Epstein wrote:
> > >If you really want to build it yourself, I'd take the above error
> > >message and go search comp.unix.aix at groups.google.com.  This is
> > >really an AIX shared library question, not an Apache module question.
> > >I've seen this error before, and the solution is to use certain
> > >linker/loader options (I don't remember exactly which ones, but you
> > >can find them in comp.unix.aix), and/or perhaps find an apxs that
> > >works with AIX.  (If you're using an old Apache, upgrading might help,
> > >because I'd think newer versions would have an apxs that has been
> > >"fi

RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Kajen, Michael

correct - that eliminates that.


-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 8:54 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


Michael,

I pinged Localhost and got the message:

Reply from 127.0.0.1: bytes=32 time<10ms TTL64

I presume from this all is fine, as I have a reply?


Geoff

-Original Message-
From: Kajen, Michael [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 13:31
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


HI,
See if you can ping localhost. Maybe something happened to your dns
settings. mk

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,
 
Sorry for the off topic manner of this email but I am having trouble
with my Apache server and was wondering if anyone on this list can help
me?
 
For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ <http://localhost/>  (or http://127.0.0.1/
<http://127.0.0.1/> )  in my browser and be able to see the directories
with all my files in them and edit them accordingly.
 
However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the
directory I would get a "Pager cannot be displayed" error.
 
I tested this in IE, Netscape and Mozilla (along with clearing the cache
in each browser) and all of them were the same.
 
I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that
if I started with a newer version of Apache the problem would be
eradicated and I  would have a more up-to-date version of the server.
 
This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a "Page
cannot be displayed" error message if I try and navigate to a specific
file within the directory.
 
I have scanned the Apache web site, trawled through the newsgroups,
studied my config file indepth, but cannot see where the problem lies.
 

Could someone please take a look at my config file and try to see why
this is happening because as far as I can tell everything is fine and I
haven't changed anything since the last time it worked OK?
 
Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out
the Localhost problem.
 
Your help would be very much appreciated.
 
 
Regards,
 
 
Geoff Khan B.Sc (Hons)
 <http://www.shining-path.com> www.shining-path.com

 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Kajen, Michael

HI,
See if you can ping localhost. Maybe something happened to your dns
settings.
mk

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,
 
Sorry for the off topic manner of this email but I am having trouble with my
Apache server and was wondering if anyone on this list can help me?
 
For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/   (or http://127.0.0.1/
 )  in my browser and be able to see the directories with
all my files in them and edit them accordingly.
 
However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the directory
I would get a "Pager cannot be displayed" error.
 
I tested this in IE, Netscape and Mozilla (along with clearing the cache in
each browser) and all of them were the same.
 
I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that if
I started with a newer version of Apache the problem would be eradicated and
I  would have a more up-to-date version of the server.
 
This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a "Page
cannot be displayed" error message if I try and navigate to a specific file
within the directory.
 
I have scanned the Apache web site, trawled through the newsgroups, studied
my config file indepth, but cannot see where the problem lies.
 

Could someone please take a look at my config file and try to see why this
is happening because as far as I can tell everything is fine and I haven't
changed anything since the last time it worked OK?
 
Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out the
Localhost problem.
 
Your help would be very much appreciated.
 
 
Regards,
 
 
Geoff Khan B.Sc (Hons)
  www.shining-path.com

 




Can tomcat 3.3 run cgi scripts

2002-08-30 Thread Kajen, Michael

Hi,
I see that Tomcat 4.0 has CGIServlet.
At the moment I'm stuck on tomcat 3.3.
Is there a way to configure it to run CGI scripts?

Thanks for any help.
Michael Kajen

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_jk w/ tomcat 4: worker file not found

2002-08-02 Thread Kajen, Michael

Hi,
I ran into a similar error message recently, where Apache would not start
with the message:
[emerg] Error while opening the workers

I tracked this down to a routine in  jk_connect.c.

I discovered that in the workers.properties file I had to use the actual
host name, not 'localhost'.
Don't know why 'localhost' didn't resolve.

Since it appears you turned on tomcat debugging, have a look at the
mod_jk.log. 

Hope this helps. 
mk






-Original Message-
From: Polito, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 3:24 PM
To: Tomcat Users List
Subject: mod_jk w/ tomcat 4: worker file not found


hi, folks.

i'm running tomcat + apache via mod_jk on openbsd 3.0, and have had some
problems with mod_jk. after starting apache (via apachectl sslstart), i
consistently see the following in apache's error_log:
---
[Fri Aug  2 11:51:48 2002] [error] Error while opening the workers, jk will
not work

[Fri Aug  2 11:51:53 2002] [error] (2)No such file or directory: Error while
opening the workers, jk will not work
---
playing around with mod_jk.c and jk_map.c, the error condition occurs
because conf->worker_file is non-null when called during set-up in
jk_set_worker_file(), but is null by the time that jk_init() calls
map_read_properties().

i'm guessing that i've either configured something incorrectly or have some
incompatible components; can anyone advise? if i set conf->worker_file to my
workers.properties file's absolute path before passing it to
map_read_properties(), the error is no longer reported and i can make a
socket connection based on a redirect, etc.

system details:
OpenBSD 3.0
mod_jk 1.2.0
apache 1.3.19
tomcat 4.0.4 
jdk1.3.1_04  

excerpts from httpd.conf:
---
LoadModule jk_module /usr/local/lib/mod_jk.so
AddModule mod_jk.c
[...]


  JkWorkersFile /var/tomcat/conf/workers.properties
  JkLogFile /var/tomcat/logs/mod_jk.log
  JkLogLeveldebug  
  JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
  JkMount /my_servlet_mount/* ajp13

---

excerpts from workers.properties
---
workers.tomcat_home=/var/tomcat
workers.java_home=/java/1.3-linux
ps=/
worker.list=ajp13

worker.ajp13.port=xyzw
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

---

excerpts from server.xml
---

---

has anyone else run into this? or is there something odd about the
component-and-version list above that catches someone's eye? thanks much
-jp2

/*  [EMAIL PROTECTED];  415.514.3529;  601 MCB  */

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: