----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Jim,
I wanna help you so that the guys who know all the complicated stuff can
concentrate on their complicated stuff... I build Apache with JServ on
Linux all the time for our customers and our ASP servers and what-not, so I
think I'll be able to get you going.
First, one thing seems to sound a little backwards to me. In old Apache
servers, you would build JServ and then configure Apache for it and build
Apache afterwards, which is what you seem to have indicated in point #1 down
there. In the new configuration, (I'm sure you probably read the
instructions, but I want to clarify it with you) you configure Apache for
DSO first, build it, and then configure and build JServ. That should be the
end of the process - no rebuild of Apache is necessary. You need a JDK and
JSDK2.0. Make sure your $JAVA_HOME, $JSDK_HOME, $CLASSPATH, and $PATH are
all set right in your .bash_profile and that you log out and back in once
you've altered that file. Mine looks like this in the middle:
JAVA_HOME=/usr/local/jdk1.2.2
JSDK_HOME=/usr/local/JSDK2.0
CLASSPATH=$JSDK_HOME/lib/jsdk.jar
PATH=$JAVA_HOME/bin:$JSDK_HOME/bin:$PATH:$HOME/bin
ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME ENV PATH JAVA_HOME JSDK_HOME CLASSPATH
If you have an older 1.1.7 or 1.1.8 JDK, you'll need to include
classes.zip in your classpath. Once those are set, build Apache first, and
then JServ. The relevant commands are:
Configure Apache for DSO support; from /path/to/apache_1.3.12/:
./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-m
odule=so
Make Apache with make; make install
Configure JServ to plug in to Apache, from /path/to/ApacheJServ-1.1/:
./configure --prefix=/usr/local/jserv --with-apxs=/usr/local/apache/bin/apxs
\
--with-JSDK=/path/to/JSDK2.0/lib/jsdk.jar
Make JServ with make; make install
That will add the jserv directory under your /usr/local/apache/conf
directory and all of the files it needs to run. Add the Include statement
to /usr/local/apache/conf/httpd.conf; you can try it without starting it by
using "/usr/local/apache/bin/apachectl configtest". That should just say
"Syntax OK". Start it as you always would.
I'm not sure about this, but I fear you may have wiped out everything
JServ did with its make install when you remade apache over top of it. I
can't be sure about that, but this technique will *definitely* work, I do it
once or twice a week.
Lemme know.
Garrison
----- Original Message -----
From: Jim Miani <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Thursday, April 27, 2000 11:37 AM
Subject: Re: Apache won't recognize JServ
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
>
> There is no "jserv" directory under the <apache_home>/conf directory
> There does exist a /usr/local/jserv/etc/jserv.conf file, and that's
> what I am using in my httpd.conf file.
>
> This is where the installation package created it - I have not taken
> it upon myself to move things around.
>
> Even if the default location of the jserv.conf file is under
> <apache_home>/conf/jserv why should it make a difference if I've got it
> somewhere else as long as I reference it correctly in Apache's
> httpd.conf file?
>
> So I'm still baffled ...
>
> Jim
>
> >
> >Jim,
> >
> > I believe the Include statement in your httpd.conf file should be:
> >"Include path/to/apache/conf/jserv/jesrv.conf" without the quotes, of
> >course.
> >That's where your JServ 1.1 puts all of the files that apache wants, and
> >where you should be making your configurations.
> >
> >Garrison
> >
> >----- Original Message -----
> >From: Jim Miani <[EMAIL PROTECTED]>
> >To: Java Apache Users <[EMAIL PROTECTED]>
> >Sent: Thursday, April 27, 2000 11:10 AM
> >Subject: Apache won't recognize JServ
> >
> >Hi, I hate to be a barnacle-like newbie, but I'm _still_ having
> >trouble installing JServ. I've given up on SCO Open Server because of the
> >servlet returning an empty document problem I was talking about on this
> >list about a week ago.
> >
> >I've now moved over to Linux - Red Hat 6.1 Pro - and I'm having a
> >completely different problem. Apache 1.3.12 and JServ 1.1
> >
> >I cannot get Apache to recognize the fact that JServ is out there and
should
> >have servlet requests passed to it. Apache starts and runs fine, but
JServ
> >does
> >not get launched - there is nothing in the log file to indicate an error.
> >
> >If I compare the log files from my SCO server where JServ is working
> >intermittently,
> >there is a difference. On SCO, when I restart Apache, I get
> >[Wed Apr 26 18:40:03 2000] [notice] Apache/1.3.12 (Unix)
> >ApacheJServ/1.1.1b1 ...
> >but on Linux,
> >[Thu Apr 27 10:47:26 2000] [notice] Apache/1.3.12 (Unix) configured -- re
> >
> >so it doesn't look like Apache is attempting to start JServ at all. Also,
if
> >I
> >try to access a servlet from the browser, I get a 404 and a look at the
log
> >file shows that it is trying to find a document called /servlets/Hello,
> >rather
> >than passing the request off to JServ. It's as if Apache has no idea that
> >JServ
> >exists!
> >
> >If I start JServ up manually, it _seems_ to run fine - it logs a
> >startup message to the jserv.log, ps -eaf | grep java shows the threads
> >running, no problems I can see.
> >
> >A few points:
> >1. I DID reconfigure, make and install Apache AFTER I configured, made
and
> >installed
> > JServ. I did it twice to be absolutely sure.
> >2. I did put Include /usr/local/jserv/etc/jserv.conf into Apache's
> >httpd.conf file.
> >
> >My questions:
> >
> >1. Anybody have any idea what I'm doing wrong?
> >2. Is there a way I can test JServ in manual mode - i.e. pass an HTTP
> >request
> > to it - I tried using ab but get a message "broken pipe"
> >
> >Thanks ...
> >
> >Jim
> >--
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]