My problem is I can see the JServ status information about the configured
host, but get "Internal Server Error" when I try to link
localhost/jserv/engine/0/.

The error I saw in log file is "ajp11: can not connect to host
127.0.0.1:8007".

Do you have any clue ?

Thanks,
Meng P. Hu




-----Original Message-----
From: Timothy Gallagher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 17, 1999 10:01 AM
To: [EMAIL PROTECTED]
Subject: Re: JServ problems


>From the JServ/conf/jserv.properties file, you can set up zones:

# Servlet Zones parameters
###########################
# List of servlet zones Apache JServ manages
# Syntax: zones=[servlet zone],[servlet zone]... (Comma separated list
of String)
# Default: NONE
zones=root

# Configuration file for each servlet zone (one per servlet zone)
# Syntax: [servlet zone name as on the zones list].properties=[full path
to configFile] (String)
# Default: NONE
# Note: if the file could not be opened, try using absolute paths.
root.properties=E:\Program Files (x86)\Apache Group\Apache
JServ\conf\zone.properties


Notice that the 'root' in the zone list must match the 'root' in the
configuration file.  So, if you had a 'root2' zone, then you would have
a 'root2.properties=<filename>' in the configuration file.

>From the configuration file,
"E:\Program Files (x86)\Apache Group\Apache JServ\conf\zone.properties"
you can set up the location of the respositories as:

# List of Repositories
#######################
# The list of servlet repositories controlled by this servlet zone
# Syntax: repositories=[repository],[repository]...
# Default: NONE
repositories=E:\Program Files(x86)\Apache Group\Apache JServ\classes
repositories=E:\Program Files(x86)\Apache Group\Apache
JServ\classes\library.jar

You can also set up aliases for the Servlet names.  From the
configuration file:

# Servlet Aliases
##################
# This defines aliases from which servlets can be invoked.
# Each alias give a new instance of the servlet. This means that if a
servlet
# is invoked both by class name and by alias name, it will result in
_TWO_
# instances of the servlet being created.
# Syntax: servlet.[alias].code=[classname] (String)
# Default: NONE
servlet.snoop.code=SnoopServlet
servlet.hello.code=org.fool.Dummy


This will allow you to call the Servlets with
http://host.com/servlets/hello and http://host.com/servlets/snoop,
instead of http://host.com/servlets/org.fool.Dummy and
http://host.com/servlets/SnoopServlet.

The JServ should have already set up the alias of /servlets/ for the
Apache Web server.

Tim Gallagher
Compaq Computer Corp


        ----------
        From:   Igor Pietraszko[SMTP:[EMAIL PROTECTED]]
        Sent:   Tuesday, February 16, 1999 8:23 AM
        To:     [EMAIL PROTECTED]
        Subject:        JServ problems

        I have my JServ configure properly on my WinNT box.  Since I can
see that it starts up without any problems.  I can also follow the link
localhost/jserv/engine/0/ which gives me the status of my servlet engine
and servlet zone.  However, I cannot invoke any servlets - they are not
being found.  I get the ClassNotFoundExcpetion every time I try to
invoke my servlet.  I guess question number one is how the zones are
supposed to be configured.  When I set the repository to something like
e:\Program Files\Apache group\Apache\servlets I get the message at JServ
startup that the repository does not exist.  But when I set it to
e:\servlets, everything is fine.  Are the spaces in the path a
problem!?  Regardless, even if I put my servlets into the repository
(which I tried to place all over the place) it still does not find
them.  So the questions are:

        1) How do I set up the zones and their repositories?
        2) Where are the repositories supposed to be located?
        3) What do the mount points have to do with them?

        Thanks.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to