----------------------------------------------------------------
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!!!
----------------------------------------------------------------



well said!

David Yergovich wrote:
> 
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
> 
> Maybe a stab in the dark but have you tried explicitly setting
> 
> bindaddress=127.0.0.1
> 
> in jserv.properties.
> 
> I had a similar problem where I couldn't connect an apache webserver to
> a remote Jserv box because this directive was not set properly (to the
> IP of the network interface in my case).
> 
> Here are some of the ways I tried to debug my problem.  First I
> determined that Jserv was up by checking the ps output and also seeing
> that Jserv properly started in the jserv.log.  (you may try setting the
> logging to log.channel.debug=true) It's also important that it actually
> shuts down when restarting the webserver after changing your configs, %
> killall java works for me.
> 
> From the webserver box, I tried % telnet Jservhost 8007  and noticed the
> connection was immediately refused.  I ran a % snoop port 8007 on the
> Jservhost, tried the telnet again, and verified that I was communicating
> on that port. I could see that it was receiving the request but would
> not establish a connection.
> 
> Then on the Jservhost, I tried % telnet Jservhost 8007 and it too was
> refused.  But, on the Jservhost, when I did a % telnet localhost 8007, I
> could make a connection.  Maybe try this and see if you can connect to
> Jserv on either localhost or by hostname/IP.
> 
> From this information, I determined that Jserv was bound to the wrong
> IP.  In my case, it was bound to localhost and I needed it to be bound
> to my host IP. Once I changed the bindaddress to my IP everything worked
> as expected.
> 
> Just as a note, I'm was trying to get Jserv to work remotely, not on the
> same box as the webserver like the problem in this discussion.  But, I
> was seeing the same type of errors while working on this.  My only
> advice is to ensure that mod_jserv is looking for the Jserv on localhost
> and Jserv is bound localhost.  Once you can make sure this is the case,
> you can start looking into OS (network) settings or problems with Apache
> or Jserv on your platform.
> 
> I'm running a remote configuration:
> 
> ApacheJServ-1.1.2
> JSDK2.0
> apache_1.3.14
> 
> On SGI Origin 200's running Irix 6.5.8
> 
> Also, I start my Jserv manually, without the use of the webserver.  I
> use this script I found here:
> http://www.magiccookie.com/computers/apache-jserv/
> 
> jservd:
> #!/bin/sh
> properties=/usr/local/apache/conf/jserv/jserv.properties
> log=/usr/local/apache/logs/jserv.log
> CLASSPATH=$CLASSPATH:/usr/java/JSDK2.0/lib/jsdk.jar
> CLASSPATH=$CLASSPATH:/usr/local/apache/libexec/ApacheJServ.jar
> /usr/java/bin/java org.apache.jserv.JServ $properties $1 2>> $log &
> 
> Good luck!  I hope this helps somebody at sometime.
> 
> David Yergovich
> 
> Ed Bras wrote:
> >
> > ----------------------------------------------------------------
> > 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!!!
> > ----------------------------------------------------------------
> >
> > Last thursday I asked for some help with the AJP connection error.
> > I am struggling with it and didn't get any respons, so if someone has some
> > idea's, please let me know (have a look at the message below).
> > Originaly error message:
> > --
> > When executing a servlet and the Jserv is in automatic mode (ApJServManual
> > =off) it writes the following error in the mod_jserv.log file:
> > [14/12/2000 16:07:11:361] (EMERGENCY) ajp12: can not connect to host
> > 127.0.0.1:8
> > 007
> > [14/12/2000 16:07:11:361] (EMERGENCY) ajp12: connection fail
> > [14/12/2000 16:07:11:361] (ERROR) an error returned handling request via
> > protoco
> > l "ajpv12"
> > [
> > ---
> >
> > Regards,
> > Ed Bras
> >
> > ----- Original Message -----
> > From: "Ed Bras" <[EMAIL PROTECTED]>
> > To: "Java Apache Users" <[EMAIL PROTECTED]>
> > Sent: Thursday, December 14, 2000 4:19 PM
> > Subject: Re: Don't read the jserv.properties file ???
> >
> > > ----------------------------------------------------------------
> > > 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!!!
> > > ----------------------------------------------------------------
> > >
> > > > Hi Ed,
> > > >      I believe that 100 = 100 seconds. In my case, I was on a
> > > > PII 200MHz m/c
> > > > running RH6.2. I set it to 1800 seconds so that the JVM has all
> > > > the time in
> > > > the world to get started. One way to monitor the activity is to
> > > > do either a
> > > > ps or top and see how the processes are moving. If your jvm is
> > > > dying, you'll
> > > > notice that the pid has changed and once in a while you may
> > > > actually see a
> > > > process being declared "<defunct>". I learnt the hard way that
> > > > the jvm was
> > > > starting, but taking too much time. As a result the apache
> > > > server was giving
> > > > up quick(since the time out was very less).
> > > >
> > > > ajp error also occurs if you try to load the page right after
> > > > you restart
> > > > apache. this is because your jvm hasn't started and the
> > > > connection fails
> > > > with you getting an "Internal Server Error" in the browser.
> > > >
> > > > Apache usually spawns of multiple jvms all owned by "nobody".
> > > > Usually these
> > > > are around 6 in number.
> > >
> > > Thanks guys for the help but it still doesn't work.
> > > What I did:
> > > - I changed the ApJServTimeout to 20000.
> > > I included the tools.jar in the jserv.properties file (not the jsdk as I
> > > don't have that one):
> > > ---
> > > wrapper.classpath=/usr/lib/apache/ApacheJServ.jar
> > > wrapper.classpath=/home/httpd/classes/servlet-2.0.jar
> > > wrapper.classpath=/usr/local/java/lib/tools.jar
> > > ---
> > > - I checked the jvm with top and the while loop (on the command prompt)
> > and
> > > never noticed some "vjm starting:
> > > while true; do ps -A | grep vjm; done
> > >
> > > - I checked the traffic on port 8007 with a while loop, but didn't see
> > > anything happening:
> > > while true; do netstat | grep 8007; done
> > >
> > > It gives the APJ12 error, please some help ? and please tell me:
> > > - What should apache start through port 8007 ?(the program name). I see
> > some
> > > java executables started, so I suppose those are the one, or not ??
> > > - Why don't I see anything on port 8007 ?
> > > - Why does it work when I put the Jserv on manualy ?? (ApJServManual
> > =off).
> > > - Must I restart the JVM separately ??
> > >
> > > Hmmmmm I am confused,
> > > Ed Bras
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > >
> > > > Lemme know if this works.
> > > >
> > > > Kamesh
> > > >
> > > >
> > > >
> > > > on Dec 12, Ed Bras thus hinted about "Re: Don't read the
> > > jserv.properties..."
> > > >
> > > > EB:Date: Tue, 12 Dec 2000 17:34:29 +0100
> > > > EB:From: Ed Bras <[EMAIL PROTECTED]>
> > > > EB:Reply-To: Java Apache Users <[EMAIL PROTECTED]>
> > > > EB:To: Java Apache Users <[EMAIL PROTECTED]>
> > > > EB:Subject: Re: Don't read the jserv.properties file ???
> > > > EB:
> > > > EB:----------------------------------------------------------------
> > > > EB:BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > > > EB:WHEN YOU POST, include all relevant version numbers, log files,
> > > > EB:and configuration files.  Don't make us guess your problem!!!
> > > > EB:----------------------------------------------------------------
> > > > EB:
> > > > EB:> ajp12 error arises because the apache side is not able to connect
> > to
> > > your
> > > > EB:> servlet engine (which may not be present to answer apache's calls
> > > (since
> > > > EB:no
> > > > EB:> jvm means no servlet engine)). one way out is to usually give
> > longer
> > > > EB:> timeouts for your jvm.
> > > > EB:>
> > > > EB:> please let me know if the above solution worked.
> > > > EB:>
> > > > EB:
> > > > EB:Thanks Kamesh,
> > > > EB:
> > > > EB:I changed the ApJServTimeout to 100 in the file jserv.conf, which
> > made
> > > no
> > > > EB:difference. Is this the correct Timeout ?
> > > > EB:But I noticed that a lot java executables are running, what about
> > them
> > > ?
> > > > EB:
> > > > EB:I did a netstat on the port 8007 in a while loop, but nothing happens
> > > on
> > > > EB:that port when requesting a servlet, how come ?
> > > > EB:And why does it runs when the manual mode is off ?
> > > > EB:
> > > > EB:Regards,
> > > > EB:Ed Bras
> > > > EB:
> > > > EB:
> > > > EB:
> > > > EB:> ----- Original Message -----
> > > > EB:> From: "Ed Bras" <[EMAIL PROTECTED]>
> > > > EB:> To: "Java Apache Users" <[EMAIL PROTECTED]>
> > > > EB:> Sent: Monday, December 11, 2000 3:12 PM
> > > > EB:> Subject: Re: Don't read the jserv.properties file ???
> > > > EB:>
> > > > EB:>
> > > > EB:> > ----------------------------------------------------------------
> > > > EB:> > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > > > EB:> > WHEN YOU POST, include all relevant version numbers, log files,
> > > > EB:> > and configuration files.  Don't make us guess your problem!!!
> > > > EB:> > ----------------------------------------------------------------
> > > > EB:> >
> > > > EB:> > > What's the setting of ApJServManual in your jserv.conf?  Your
> > > > EB:> description
> > > > EB:> > > sounds like you're running in manual mode in which case JServ
> > is
> > > > EB:> > controlled
> > > > EB:> > > separately from the web server.  Can you tell if your JVM is
> > > shutting
> > > > EB:> down
> > > > EB:> > > when you kill the web server?
> > > > EB:> >
> > > > EB:> >
> > > > EB:> > Thanks Wilks,
> > > > EB:> >
> > > > EB:> > Indeed is was in manual mode.
> > > > EB:> > I have changed it now, but it now gives an error connection erro,
> > > the
> > > > EB:> > mod_jserv.log file says:
> > > > EB:> > ---
> > > > EB:> > 11/12/2000 22:14:26:336] (EMERGENCY) ajp12: can not connect to
> > host
> > > > EB:> > 127.0.0.1:8
> > > > EB:> > 007
> > > > EB:> > [11/12/2000 22:14:26:336] (EMERGENCY) ajp12: connection fail
> > > > EB:> > [11/12/2000 22:14:26:336] (ERROR) an error returned handling
> > > request via
> > > > EB:> > protoco
> > > > EB:> > l "ajpv12"
> > > > EB:> > ---
> > > > EB:> >
> > > > EB:> > What do I do about this ?
> > > > EB:> > I went through the faq, and checked the correct paths, log file
> > > names,
> > > > EB:log
> > > > EB:> > files rights, localhost lookup, and that all seem to be in order,
> > > so
> > > > EB:what
> > > > EB:> > could it be ?
> > > > EB:> >
> > > > EB:> > Resume: I do have Apache Jserv 1.1.1-1 and Apache 1.3.12 on
> > RedHat
> > > 7.0
> > > > EB:> >
> > > > EB:> > Regards,
> > > > EB:> > Ed Bras
> > > > EB:> >
> > > > EB:> >
> > > > EB:> > --
> > > > EB:> > --------------------------------------------------------------
> > > > EB:> > Please read the FAQ! <http://java.apache.org/faq/>
> > > > EB:> > To subscribe:        [EMAIL PROTECTED]
> > > > EB:> > To unsubscribe:      [EMAIL PROTECTED]
> > > > EB:> > Search Archives:
> > > > EB:> >
> > > <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > > > EB:> > Problems?:           [EMAIL PROTECTED]
> > > > EB:> >
> > > > EB:>
> > > > EB:
> > > > EB:
> > > > EB:
> > > > EB:--
> > > > EB:--------------------------------------------------------------
> > > > EB:Please read the FAQ! <http://java.apache.org/faq/>
> > > > EB:To subscribe:        [EMAIL PROTECTED]
> > > > EB:To unsubscribe:      [EMAIL PROTECTED]
> > > > EB:Search Archives:
> > > >
> > >
> > EB:<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > > > EB:Problems?:           [EMAIL PROTECTED]
> > > > EB:
> > > >
> > > >
> > > >
> > > > --
> > > > --------------------------------------------------------------
> > > > Please read the FAQ! <http://java.apache.org/faq/>
> > > > To subscribe:        [EMAIL PROTECTED]
> > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > Search Archives:
> > > > <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > > > Problems?:           [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > --------------------------------------------------------------
> > > Please read the FAQ! <http://java.apache.org/faq/>
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > > Search Archives:
> > > <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > > Problems?:           [EMAIL PROTECTED]
> > >
> > >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search Archives:
> > <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > Problems?:           [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]

-- 
----------------------------------------------------------
Scott Barnhill             | email: [EMAIL PROTECTED]
I/S Manager                | mailstop: 41-2-504 (41M-504)
Silicon Graphics, Inc.     | voice: 650.933.5873
Extranet Services          | pager: [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to