> > > The first param to ApJServMount looks like it refers to a
> > > location RELATIVE to the ServerRoot directory as specified in
> > > httpd.conf.
Its relative to the DocumentRoot, not the ServerRoot.

> > > This provides the URI which will be "intercepted" by
> > > the webserver and "translated" as a request for a servlet.
> > > Therefore, if I put "ApJServMount /servdir /production" in
> > > httpd.conf and my url is "www.mach.com/servdir/servprog" the
> > > webserver will say hey this is a request for a servlet in servlet
> > > zone "production". Is this correct?
Yes

> > > My problem is that I have 2 zones - "servlets" and "zone_b". In
> > > my httpd.conf file I have:
> > >   ApJServMount /servlets /servlets
> > >   ApJServMount /servlets/zone_b /zone_b
> > > ...
> > > However, if I try to access that same servlet (Xserv) which is
> > > also in the repository directory specified for zone_b using the
> > > other zone "ApJServMount /servlets/zone_b /zone_b"
> > > (http://mach.machmm.com/servlets/zone_b/Xserv) it does not work -
> > > here is what the log says:
> > >
> > > [13/04/1999 13:05:04:917 EDT] Servlet-Error:
> > > ClassNotFoundException: zone_b
> > > [13/04/1999 13:05:04:918] (ERROR) ajp11: Servlet Error:
> > > ClassNotFoundException:zone_b

You have a zone within a zone, which does not work.  With
(http://mach.machmm.com/servlets/zone_b/Xserv) JServ is looking for a
servlet called zone_b inside the "servlets" zone.  Then it would want to
pass the string "/Xserv" to that servlet.

Though I have not tried this, I bet it has nothing to do with how many
levels deep you are.  It's the nested zones that are not supported.  The
following should work:
ApJServMount /servlets /servlets
ApJServMount /servlets1/zone_b /zone_b

The URL http://mach.machmm.com/servlets1/zone_b/Xserv should now work.


> > > Any have any ideas? Setting up zones should be very easy and I
> > > have spent almost two days now on this. I wish there was more
> > > documentation regarding the ApJServMount command.
I think there is plenty of good documentation on this on the site
(see especially the FAQ and the white papers), but I don't recall seeing a
note on nested zones.  If this works, it would be nice for you to add it to
the FAQ (can multi-levels deep ApJServMount aliases but no nested zones).

> > > I don't know if this has anything to do with anything, but all
> > > the ApJServMount examples I have seen involve first params to
> > > ApJServMount which are directories only one level deep off the
> > > ServerRoot (i.e., /servlets /production, etc.). I have not seen
> > > an example involving directories more than one level deep from
> > > the ServerRoot (i.e., /servlets/myservlets/yourservlets).
Per above, I think this will work.

> > >
> > > Thanks in advance,
Your welcome.  I hope my advice was good.

Jorge Bracer
Sausalito, CA



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