permaculture playing cards*
The moose likes Servlets and the fly likes Tomcat server.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat server.xml" Watch "Tomcat server.xml" New topic
Author

Tomcat server.xml

vivi santa
Greenhorn

Joined: Feb 02, 2001
Posts: 26
hi all, I'm a newbie in Servlet.
I got some simple question in here.
say I got an HTML page saved in C:\ProJavaServer\chapter08\techSupport\techsupp.html and I want to view it thru the URL http://localhost:8080/techSupport/html so I add the followings <Context> definition to %TOMCAT_HOME%\conf\server.xml
-----
<Context path="/techSupport" docBase="c:\ProJavaServer\Chapter08\techSupport"></Context>
------
But after I type in http://localhost:8080/techSupport/html, it doesn't work~~ I've tested my TOMCAT and it works properly. Can anyone tell me why?

Thank you~~
vivi santa
Greenhorn

Joined: Feb 02, 2001
Posts: 26
hey guys ! I solve it.

I shut down the tomcat and startup again!!

But I don't know why it works?

George Toronto
Ranch Hand

Joined: Dec 30, 2000
Posts: 78
Hi vivit
Could you tell me how to install the Tomcat? I downloaded the zip file, but I can not startup the server by excuting startup.bat file. I know Visualage also uses the port 8080 for simulating the websphere test environment. But, when I excute the startup.bat, the test environment isnot startup.
Why?
Thank you
George
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
If you are not sure of port 8080 use port 80 for tomcat by changing the line inside the server.xml under jakaarta-tomcat-3.2.1\conf directory from
<!-- Normal HTTP -->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="8080"/>
</Connector>
TO

<!-- Normal HTTP -->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="80"/>
</Connector>

Remember to turn off PWS/IIS if there is one running in 80. Now try startup.bat.
If you looking for Tomcat full setup follow link
http://www.javaranch.com/ubb/Forum7/HTML/001916.html

Ajan

[This message has been edited by Ajan Balakrishnan (edited February 04, 2001).]
akadiyala
Greenhorn

Joined: Feb 05, 2001
Posts: 3
Hi,
I am new to this list. Can somebody help me install Tomacat on win2000? I downloaded the dll files and the exe file from Tomacat web site. How do I install and run it?
Thanks
anant
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat server.xml
 
Similar Threads
IIS and TOMCAT
simpleJSP can't run
deployment directory
Apache-Tomcat Integration
Directory Error