Apache JServ--Need help starting servlets

Apache JServ--Need help starting servlets

Post by Rúnar óli Bjarnaso » Sat, 06 Nov 1999 04:00:00



Hello,

    I have set up Apache JServ on my Linux server. I'm running Apache
1.3.9 and JServ 1.1b2 on RedHat 6.0. I installed both Apache and JServ
with their respective RPM packages, leaving all configurations alone. It
has a root zone set up wtih a repository in a directory called servlets
which is mapped to localhost/servlet and localhost/servlets, as is the
default setup.
    When I open 127.0.0.1/jserv/ in a browser, everything works fine. I
see the status page, and verify that the JServ servlet is up and
running. However, when I try 127.0.0.1/servlet/IsItWorking or
127.0.0.1/servlets/MyServlet, i get an Internal Server Error:

"The server encountered an internal error or misconfiguration and was
unable to complete your request.

of the time the error occurred, and anything you might have done that
may have caused the
error.
More information about this error may be available in the server error
log."

The server error log contains the following:

[05/11/1999 13:35:53:112] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:8007
[05/11/1999 13:35:53:112] (EMERGENCY) ajp12: connection fail
[05/11/1999 13:35:53:112] (ERROR) an error returned handling request via
protocol "ajpv12"
[05/11/1999 13:37:00:569] (ERROR) wrapper: printing debugging
information (command line, env)
[05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 0]
/usr/local/java/bin/java
[05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 1]
org.apache.jserv.JServ
[05/11/1999 13:37:00:570] (ERROR) wrapper: argument[ 2]
/etc/httpd/conf/jserv/jserv.properties
[05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 0]
PATH=/bin:/usr/bin:/usr/local/bin
[05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 1]
CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar

What could be the problem?

 
 
 

Apache JServ--Need help starting servlets

Post by root » Tue, 09 Nov 1999 04:00:00


All,
I am having a similar problem. One difference: http://localhost/jserv gives me a
404 (Not Found) error, but the same 'Unable to Connect to Host' error shows up
in mod_jserv.log. The error looks identical to below. I am out of ideas and must
be missing something obvious.....

HELP!

Mike


> Hello,

>     I have set up Apache JServ on my Linux server. I'm running Apache
> 1.3.9 and JServ 1.1b2 on RedHat 6.0. I installed both Apache and JServ
> with their respective RPM packages, leaving all configurations alone. It
> has a root zone set up wtih a repository in a directory called servlets
> which is mapped to localhost/servlet and localhost/servlets, as is the
> default setup.
>     When I open 127.0.0.1/jserv/ in a browser, everything works fine. I
> see the status page, and verify that the JServ servlet is up and
> running. However, when I try 127.0.0.1/servlet/IsItWorking or
> 127.0.0.1/servlets/MyServlet, i get an Internal Server Error:

> "The server encountered an internal error or misconfiguration and was
> unable to complete your request.

> of the time the error occurred, and anything you might have done that
> may have caused the
> error.
> More information about this error may be available in the server error
> log."

> The server error log contains the following:

> [05/11/1999 13:35:53:112] (EMERGENCY) ajp12: can not connect to host
> 127.0.0.1:8007
> [05/11/1999 13:35:53:112] (EMERGENCY) ajp12: connection fail
> [05/11/1999 13:35:53:112] (ERROR) an error returned handling request via
> protocol "ajpv12"
> [05/11/1999 13:37:00:569] (ERROR) wrapper: printing debugging
> information (command line, env)
> [05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 0]
> /usr/local/java/bin/java
> [05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 1]
> org.apache.jserv.JServ
> [05/11/1999 13:37:00:570] (ERROR) wrapper: argument[ 2]
> /etc/httpd/conf/jserv/jserv.properties
> [05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 0]
> PATH=/bin:/usr/bin:/usr/local/bin
> [05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 1]
> CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar

> What could be the problem?


 
 
 

Apache JServ--Need help starting servlets

Post by gary.poto.. » Thu, 18 Nov 1999 04:00:00


I'm encountering the same problem. Have you figured out a fix for this
yet?

> All,
> I am having a similar problem. One difference: http://localhost/jserv
gives me a
> 404 (Not Found) error, but the same 'Unable to Connect to Host' error
shows up
> in mod_jserv.log. The error looks identical to below. I am out of
ideas and must
> be missing something obvious.....

> HELP!

> Mike


> > Hello,

> >     I have set up Apache JServ on my Linux server. I'm running
Apache
> > 1.3.9 and JServ 1.1b2 on RedHat 6.0. I installed both Apache and
JServ
> > with their respective RPM packages, leaving all configurations
alone. It
> > has a root zone set up wtih a repository in a directory called
servlets
> > which is mapped to localhost/servlet and localhost/servlets, as is
the
> > default setup.
> >     When I open 127.0.0.1/jserv/ in a browser, everything works
fine. I
> > see the status page, and verify that the JServ servlet is up and
> > running. However, when I try 127.0.0.1/servlet/IsItWorking or
> > 127.0.0.1/servlets/MyServlet, i get an Internal Server Error:

> > "The server encountered an internal error or misconfiguration and
was
> > unable to complete your request.

them
> > of the time the error occurred, and anything you might have done
that
> > may have caused the
> > error.
> > More information about this error may be available in the server
error
> > log."

> > The server error log contains the following:

> > [05/11/1999 13:35:53:112] (EMERGENCY) ajp12: can not connect to host
> > 127.0.0.1:8007
> > [05/11/1999 13:35:53:112] (EMERGENCY) ajp12: connection fail
> > [05/11/1999 13:35:53:112] (ERROR) an error returned handling request
via
> > protocol "ajpv12"
> > [05/11/1999 13:37:00:569] (ERROR) wrapper: printing debugging
> > information (command line, env)
> > [05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 0]
> > /usr/local/java/bin/java
> > [05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 1]
> > org.apache.jserv.JServ
> > [05/11/1999 13:37:00:570] (ERROR) wrapper: argument[ 2]
> > /etc/httpd/conf/jserv/jserv.properties
> > [05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 0]
> > PATH=/bin:/usr/bin:/usr/local/bin
> > [05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 1]

CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.
0.jar

Quote:

> > What could be the problem?

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Apache JServ--Need help starting servlets

Post by Nicholas Hemle » Fri, 19 Nov 1999 04:00:00


I have the same problem with apache_1.3.9 and ApacheJServ-1.1b3 on Linux red
Hat 6.0
Has anyone any ideas on this?

Nic Hemley


>I'm encountering the same problem. Have you figured out a fix for this
>yet?

>> All,
>> I am having a similar problem. One difference: http://localhost/jserv
>gives me a
>> 404 (Not Found) error, but the same 'Unable to Connect to Host' error
>shows up
>> in mod_jserv.log. The error looks identical to below. I am out of
>ideas and must
>> be missing something obvious.....

>> HELP!

>> Mike


>> > Hello,

>> >     I have set up Apache JServ on my Linux server. I'm running
>Apache
>> > 1.3.9 and JServ 1.1b2 on RedHat 6.0. I installed both Apache and
>JServ
>> > with their respective RPM packages, leaving all configurations
>alone. It
>> > has a root zone set up wtih a repository in a directory called
>servlets
>> > which is mapped to localhost/servlet and localhost/servlets, as is
>the
>> > default setup.
>> >     When I open 127.0.0.1/jserv/ in a browser, everything works
>fine. I
>> > see the status page, and verify that the JServ servlet is up and
>> > running. However, when I try 127.0.0.1/servlet/IsItWorking or
>> > 127.0.0.1/servlets/MyServlet, i get an Internal Server Error:

>> > "The server encountered an internal error or misconfiguration and
>was
>> > unable to complete your request.

>them
>> > of the time the error occurred, and anything you might have done
>that
>> > may have caused the
>> > error.
>> > More information about this error may be available in the server
>error
>> > log."

>> > The server error log contains the following:

>> > [05/11/1999 13:35:53:112] (EMERGENCY) ajp12: can not connect to host
>> > 127.0.0.1:8007
>> > [05/11/1999 13:35:53:112] (EMERGENCY) ajp12: connection fail
>> > [05/11/1999 13:35:53:112] (ERROR) an error returned handling request
>via
>> > protocol "ajpv12"
>> > [05/11/1999 13:37:00:569] (ERROR) wrapper: printing debugging
>> > information (command line, env)
>> > [05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 0]
>> > /usr/local/java/bin/java
>> > [05/11/1999 13:37:00:569] (ERROR) wrapper: argument[ 1]
>> > org.apache.jserv.JServ
>> > [05/11/1999 13:37:00:570] (ERROR) wrapper: argument[ 2]
>> > /etc/httpd/conf/jserv/jserv.properties
>> > [05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 0]
>> > PATH=/bin:/usr/bin:/usr/local/bin
>> > [05/11/1999 13:37:00:570] (ERROR) wrapper: environment[ 1]

>CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.
>0.jar

>> > What could be the problem?

>Sent via Deja.com http://www.deja.com/
>Before you buy.

 
 
 

1. Apache Jserv / java servlets under FreeBSD Apache

I dont know if this is really the right place to ask, and I am a
relative Unix novice, but here goes anyway:

We have FreeBSD 2.2.7 and a working install of Apache 1.3.4, compiled with
options --enable-module=most --enable-shared=max. This should enable DSO
support. We also have JDK 1.1.7 ported for FreeBSD, and that works fine
too.

The problem is that I am trying to install java servlet support for apache
with Apache Jserv 1.0b2. I have JSDK2.0 as well, but cant test whether
that "works" OK(!)

The configure script for jserv throws up some peculiar errors: if I ran it
according to the instructions for DSO given on-line,

./configure --with-apache-install="/usr/local/etc/src/apache" \
--enable-apache-conf
(i.e. --with-apache-install=/path/to/apache/source)

then it says "DSO not enabled" and exits.

If I give it the path to my apache installation, it does the same.

The "--enable-apache-conf" seems to make no difference whatever other
options I use.

if I run configure without --with-apache-install, it detects apache in
/usr/local/apache and offers to install it there; it finishes without
error messages whether i answer y or n. But when I "make" (or gmake)
jserv, the make script finishes OK but mod_jserv.so, the essential
library, does not exist anywhere. "make install" (or gmake) also finishes
successfully, however the mod_jserv file is never installed into the
apache libexec directory. Adding the "LoadModule" / "AddModule" things to
httpd.conf stops it from starting correctly.

on further inspection, the makefile in Apache-JServ-1.0b2/src/c
says "cp ./.libs/libjserv.so ./mod_jserv.so" and the .libs diretory does
not exist! This is the only reference to mod_jserv.so anywhere in the
source tree.

Has anyone else managed to install JServ on FreeBSD?

Thanks for your help,
Alan Lawrence

2. Late binding

3. HELP!? Servlet logs on apache/JServ

4. TITANIC mistake by new sys admin! Please help!!!!

5. URGENT Help needed w/ Applet/Servlet commnication w/ JServ

6. change file date

7. jserv for apache : JServUtils.java:66: Class javax.servlet.http.Cookie not found in import.

8. Routing packets through a proxy on another network

9. Apache/Jserv/Servlets/Memory

10. Apache Jserv - Servlet question

11. Problem with Apache+JServ+Servlets delivering gzipped Files

12. Apache 1.3.3 w/ JServ: Servlet-Error.

13. Apache/JServ 1.0 "cannot scan servlet headers"