On Mon, 12 Apr 1999, Brad wrote:
> Then URI should be: http://www.mydom.com/servlets/servsubdir/MyClass
>
> I believe the ApJServMount is really the path info between the domain and class
>specifiers. I created a production and development mounts like so:
>
> ApJServMount /servlets /production
> ApJServMount /devservlets /development
>
> And point them at their respective file system locations with the
>production.properties and development.properties files. I then access them with:
>http://www.mydom.com/servlets/MyClass and http://www.mydom.com/devservlets/MyClass.
>
Thanks for the reply. However, I still cannot get this to work.
The first param to ApJServMount looks like it refers to a location RELATIVE to the
ServerRoot directory as specified in httpd.conf. 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?
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
The /opt/apache/servlets/zone_b directory exists and has working servlets in it. I
also have the proper properties file for each zone in /opt/apache/conf and properly
referenced in /opt/apache/conf/jserv.properties and indicating the correct
repositories for each zone.
The first zone "ApJServMount /servlets /servlets" works fine. A call to servlet Xserv
in this zone works fine with:
http://mach.machmm.com/servlets/Xserv
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
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 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).
Thanks in advance,
Mark
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]