Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat server.xml

 
vivi santa
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic