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

The only zone that I can get to work on SUN is a zone called 'example'.  This is
really strange.  I had sent a email with all the details a couple of days ago.
Here it is again ....
Please help ...
==========================================================
Subject: ZONES-ISSUES - Jserv 1.1.2(& Apache1.3.12)
Hi:
    I recently downloaded Apache Server 1.3.12, and Jserv 1.1.2.  I
compiled them successfully (static compile of Jserv with Apache - "no
DSO").  Thanks to all the README and INSTALL files.  I have however run
into an issue with zones!  I have checked the FAQ and couldn't find
anything that would help reveal some info. on my issue.  Please help ...

- Nanu.

PLATFORM: SUN (running 2.5/2.6, ultra-2)
PROBLEM:  I cannot get zones to work!

1.  Additional data ...

   * I configured a new zone (call it 'nanu'), specified its Mount in
     jserv.conf (/nanu /nanu).
   * I added 'nanu' to the "zones" in jserv.properties, and specified
     its properties file (full-path-to-nanu.properties) with the
     repository pointing to the correct directory
     (/disk1/apache_1.3.12/jserv1.1.2/nanu).
   * I then put a servlet (say - Hello in
     /disk1/apache_1.3.12/jserv1.1.2/nanu) , and setup nanu.properties
     to automatically load 'Hello'.
        o I see a line in jserv.logs indicating that Hello was inited!
          I also see a line that Hello was destroyed, when I shutdown
          Apache (Jserv).
   * When I tried to access the servlet (http://host/nanu/Hello) I get
     "The requested URL /nanu/Hello was not found on this server."

2.  I renamed example to call it 'root'.  Stooped Apache (waited for
Jserv to go down, and then start Apache (and jserv automatically)).  I
tried to access the servlet but get the same error!  This one was really
surprising!  For some reason, the only zone that I can get to work is
one that has to be named 'example'!

3.  I am very confident that the conf & and properties file, are ok.
Actually I got zones to work just fine with the same set of config &
properties files on my PC (running Window 98, Apache 1.3.12 &
Jserv1.1.1).
==========================================================

Keith Vance 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!!!
> ----------------------------------------------------------------
>
> That didn't work. Should I be going to
> http://host.domain/servlets/example/Hello or
> http://host.domain/example/Hello
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 21, 2000 9:59 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: initial configuration not working.
>
>
>
> Keith, you should also put in your .../jserv/jserv.conf a line like:
> ApJServMount /path /zone
>
> this says to your jserv, that when you access:
> http://host.domain/path/servlet,
> it has to look for the "servlet" in the repositories of the servlet zone
> "zone"
>
> In your case, try with
> ApJServMount /example /example
>
> hope it works.
>
> ______________________________ Reply Separator
> _________________________________
> Subject: initial configuration not working.
> Author:  keithv ([EMAIL PROTECTED]) at internet
> Date:    21/06/2000 18:41
>
>
> I am trying to get the Apache JServ 1.1.2 working. I have done this before
> and I am having the same problem as last time. I can't get a handle on the
> correct way to setup the zones. I have read through the documentation,
> java.apache.org is down right now. I can't seem to get it working correctly.
>
> Jserv starts fine, at least I think it does. I don't see any errors in my
> log file. I think I am just getting confused on the directory structure or
> something. I have included what I think are the critical parts of the config
>
> files, hopefully someone can help me find my error. Here is how my
> directories are laid out:
> /usr/local/jserv
> /usr/local/jserv/conf -> jserv.conf and jserv.properties
> /usr/local/apache/
> /usr/local/apache/htdocs -> web server root directory
> /usr/local/apache/servlets -> this is where my servlets will reside.
> /usr/local/apache/servlets/example -> this is the example servlet directory
> which contains, Hello.java Hello.java.in IsItWorking.java and
> example.properties
>
> I get a 404 error when I try and go to
> http://myservername/servlets/example/Hello
>
> I know the documentation says that setting up a zone is "easy". And I
> remember that once it is setup and you can see one working, it is easy to
> create new ones. But I have a really hard time getting these things going
> the first time. Maybe this time I will take notes or something. I just don't
>
> do this everyday.
>
> Here are the pieces of my config files that I think are relevant.
>
> FILE: /usr/local/jserv/conf/jserv.conf
> # Properties filename for Apache JServ in Automatic Mode.
> # In manual mode this directive is ignored
> # Syntax: ApJServProperties [filename]
> # Default: "./conf/jserv.properties"
> ApJServProperties /usr/local/jserv/conf/jserv.properties
> ApJServMount /usr/local/apache/servlets /servlets
>
> FILE: /usr/local/jserv/conf/jserv.properties
> # Servlet Zones parameters
> ###########################
>
> # List of servlet zones JServ manages
> # Syntax: zones=<servlet zone>,<servlet zone>... (Comma separated list of
> String)
> # Default: <empty>
> zones=example
>
> # Configuration file for each servlet zone
> # Syntax: <servlet zone name as on the zones list>.properties=<full path to
> configFile> (String)
> # Default: <empty>
> example.properties=/usr/local/apache/servlets/example/example.properties
>
> FILE: /usr/local/apache/servlets/example/example.properties
> # List of Repositories
> #######################
>
> # The list of servlet repositories controlled by this servlet zone
> # Syntax: repositories=[repository],[repository]...
> # Default: NONE
> repositories=/usr/local/apache/servlets/example/
>
>
> Keith Vance
> Web Developer
> [EMAIL PROTECTED]
> (206) 436-3874
>
>
>
> --
> --------------------------------------------------------------
> 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]



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

Reply via email to