Well, I think I have either the right syntax or very close to the right syntax in my
Tomcat Server.xml host section. Based on what the Catalina.out file is saying, Tomcat seems to be recognizing where the webapp that contains my
Java servlets is located. It says it is "deploying" all of the .jar files in its own default directory library to the WEB-INF/lib directory in my site directory. However, things still aren't working (Apache doesn't seem to recognize that "/servlet/" means "send this request over to Tomcat!" instead of a directory named "/servlet" and is not calling on Tomcat.) I am hoping that someone can verify that I have everything right in the <host> section of servlet.xml before I go look at Apache's files:
The relevant information for my server and the
test site I am running on it is:
I am using a dedicated server set up by my web host (which doesn't provide tech support related to Tomcat or Apache).
I am running Tomcat 4.06 with Apache 2.0.(X) under Linux.
I am trying to get Tomcat to handle servlets.
My domain name is registered, but not yet assigned to the URL number of the server, so I have to type in
http://myURLnumber/mydomainname.com/ to access the site. I apparently have to use the same within the server.xml file, at least, it seems to work.
The complete pathname to my site, which is a name based virtual site, is /home/virtual/site1/fst/var/www/html
Within that directory are all the elements that are considered a "web application" including all my html files, a web.xml file, and a WEB-INF folder which contains lib,
jsp,and classes folders (the servlet class fiels are in the latter).
This is what I currently have in this <host> section of the server.xml NOTE: If there are any "<" and ">" tags missing it's because I had to take them out - this bulletin board rejects messages with certain html or javascript in it.
<Host name="myURLnumber/mydomainname" appbase="/home/virtual/site1/fst/">
<Context path="myURLnumber/mydomainname" docBase="/home/virtual/site1/fst/var/www/html" />
</host>
Is this right? If not, can someone please fill in the blanks, given the path to the webapp given above?
name = "______________"
appbase="_____________"
Context path="_______________"
docBase="________________"
I've read the Tocmat documentation and several other explanations of this and I'm still not absolutely certain what is supposed to go in each part.