Apache + Tomcat Configuration

2001-04-06 Thread Zhengan Cai

Hi, everyone:

I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000. I
am using Apache 1.3.19, and Tomcat 3.2.1.

I created my own directory in
%TOMCAT_HOME%/webapps/mytest, copied the structure from
%TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my
servlets .class files in the ../mytest/WEB-INF/classes/aaa.class.

I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf,
Tomcat.conf; and in Apache: httpd.conf

Now I can use Apache + Tomcat to run my JSP files, BUT I can  ONLY  run  the
system provided  sample Servlets files. I CAN'T run my own Servelts files no
matter where I put the .class files.

Could you give me a help for the configuration as my assignment is almost
due  ?

Thank you very much for your time and concern.

E-mail: [EMAIL PROTECTED]

Zhengan Cai




Apache + Tomcat configuration

2001-04-06 Thread Zhengan Cai

Hi, everyone:

I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000. I
am using Apache 1.3.19, and Tomcat 3.2.1.

I created my own directory in
%TOMCAT_HOME%/webapps/mytest, copied the structure from
%TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my
servlets .class files in the ../mytest/WEB-INF/classes/aaa.class.

I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf,
Tomcat.conf; and in Apache: httpd.conf

Now I can use Apache + Tomcat to run my JSP files, BUT I can  ONLY  run  the
system provided  sample Servlets files. I CAN'T run my own Servelts files no
matter where I put the .class files.

Could you give me a help for the configuration as my assignment is almost
due  ?

Thank you very much for your time and concern.

E-mail: [EMAIL PROTECTED]

Zhengan Cai




Servlet path configuration in Tomcat/Apache

2001-03-14 Thread Zhengan Cai

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/x"

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