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

     

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]

Reply via email to