Mike Puglin wrote:
>
> I'm quite new to Java and servlets, so I hope you'll pardon these questions:
>
> I'm trying to use Apache and JServ on Win NT. I believe I have the two set up
>correctly (I know there is an issue with a .JAR file being 0 bytes. But, I believe I
>have corrected that). The book I am reading uses JavaServer in its examples and I get
>a little confused.
>
> 1) Should the port that Apache listens to be 80? or 8080?
>
> 2) I set up two zones for JServ - development and production. The are pointing to
>directories g:\dev\serv and g:\prod\serv respectively. If I have a servlet in both
>servlet directories names serve1.class...what URL do I use in my browser to run these?
>
> I am guessing that it goes something like htttp://localhost:80/what is next?
>
> your help is very appreciated
> mike
It depends on your configuration files.
In the file httpd.conf the directives
ApJServMount /servlet /development
ApJServMount /prodserv /production
ApJServMount /myservlets /someotherzone
ApJServProperties "c:\apache\JServ\conf\jserv.properties"
set the maping from URL (http://localhost:80/servlet) to JServ zone
(development)
and the configuration file for the whole JServ.
In the file jserv.properties the directives
zones=development,production,someotherzone
development.properties=c:\apache\JServ\conf\development.properties
production.properties=c:\apache\JServ\conf\production.properties
someotherzone.properties=c:\apache\JServ\conf\someotherzone.properties
set zones and their configuration files.
In the file development.properties the directive
repositories=g:\dev\serv
sets where your servlet classes are located.
So, if you have a file g:\dev\serv\MyServlet.class, it is in zone
"development"
and you should use URL
http://localhost:80/servlet/MyServlet
Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INET, a.s. Mgr. Martin Kuba
Kralovopolska 139 e-mail: [EMAIL PROTECTED]
601 12 Brno WWW: http://www.inet.cz/~makub/
Czech Republic tel: +420-5-41242414/33
--------------------------------------------------------------------
PGP fingerprint = D8 57 47 E5 36 D2 C1 A1 C3 48 B2 59 00 58 42 27
http://wwwkeys.cz.pgp.net:11371/pks/lookup?op=index&search=makub
--------------------------------------------------------------------
___________________________________________________________________________
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