Hi,
I am trying to setup JServ with apache on my Linux(Redhat) machine.
Installation went fine without a glitch. Thanks to all the people who took
the pain to write the How-To's. I was able to get the
http://localhost/status/jserv/ return the status report. However,
I'm having problem running the sample Hello.java servlet. When I try
"http://localhost/servlets/Hello" nothing happens. I did lot of
research but still wasn't able to get it to run.
My setting are as follows:
jserv.properties
------------------
zone=servlets
servlets.properties=/usr/local/jserv/servlets.properties
servlet.properties
--------------------
reporsitories=/home/httpd/servlets
and this is where I have my Hello.java compiled to Hello.class
httpd.conf
-----------
ApJServMount=/servlets /servlets
Note: I looked at the jserv.log and there is noting written to
the logt when I specify "http://localhost/servlets/Hello"
Here are a few of my questions rgarding JServ setup
1. When testing the jserv, if I specify "http://localhost/status/jserv/"
the APACHE PROJECT BANNER(image) will show in the status doc.
But if I remove the "/" at the end the image will not show up but
rest of the status document will show up. Why?
2. Do I need to start the "servletrunner" that is part of the JSDK
setup inorder to use JServ? or is it such that JSDK is neccessry just
as a API specification wrapper/Template?
3. I do not have a "servlets" directory under root "/". Do I need to
create one before I could use it with ApJServMount? What does
/servlets /servlets mean? Some docs shows ApJServMount setup as
follows
ApJServMount= /servlets ajpv11://jserv.yourDomain.com:8007/servlets
Now let say I have my domain as "pumba.king.com" what should the
above line look like. What if I want to use "localhost" instead of
yourDomain what will the string look like?
Note: But somewhere, I read JServ doesn't understand port address
specifications with http? Is this true?
4. How does JServ know which zone to use? In my case
http://localhost/servlets/Hello" does the "servlets" tag after my
local host mean use the servlets zone.
5. In my Hello.java program there is no package specified. For
my setup given above, do I need to specify a package in Hello.java?
Thanks for all your help.
-Vinoo
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
-- --------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]