Hi. I am trying to change the physical path for servlets as well in Unix
Enivroment. Do you have a copy of server.xml for me to check against mine?
Appreciate if you can share and thanks in advance.
------Original Message------
From: "Zhengan Cai" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: March 15, 2001 4:51:02 AM GMT
Subject: Servlet path configuration in Tomcat/Apache
Dear Sir/Madam:
I have installed Apache 1.3.19 and Tomcat 3.2.1 to my Win2000. I configured
both Apache and Tomcat, set the path and classpath to the system. Apache can
run JSP and Servlets for the system provided test examples only.
Now I would like to add my own servlet files(in .class) to Tomcat. I created
a folder " mytest" at the same level of "examples" in the tomcat, ie:
c:\tomcat\webapps\examples
c:\tomcat\webapps\mytest
I added "mytest" in the "Server.xml" to let the system create new context.
In the "examples" test HTML file, the servlet path has been set up to "
.../servlet/HelloWorldExample"...
Comparing to that, I setup my servlet path to "../servlet/xxxxx"
Now my problem is: I create a test HTML file with test button on it. When I
click the button, it says the page can't be found.
If you have time, Could you tell me:
1. How to put my own file(jsp, servlet, HTML) in the Tomcat or Apache?
2. How to configure the Tomcat or Apache for the Servlet path?
Thanks very much. Have a nice day!
Terry
-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com