Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Configuration

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Tomcat on Linux
and when i tried to add a new context(I have already 3 context working properly) to the tomcat it is not accepted
i have made the following entry to the /TOMCAT_ROOT/conf/server.xml file
<Context path="/watchlisttest"
docBase="webapps/watchlisttest"
crossContext="false"
debug="0"
reloadable="true" >
but the http request to http://myipaddress/watchlisttest/index.html is failed(THIS TOMCAT IS MADE AS A CONTAINER TO AN APACHE WEBSERVER )

------------------
 
Mark Simms
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be sure you have configured Apache's HTTP.CONF file...and see instructions below (from the Tomcat docs):

This most likely means that Tomcat is trying to use a port that is already being used by someone else - usually Apache or another instance of Tomcat. By default, Tomcat's comes configured to run an HTTP server on port 8080. If you examine the supplied server.xml file, you'll see the following element:
<!-- 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 disable this, just comment out the entire <Connector> element. Otherwise, just change it to a port that doesn't conflict with Apache. If you're not going to use the Tomcat HTTP server, and you probably won't be if you are reading this document, disable it.
If you're running Apache / JServ, JServ may be clashing with Tomcat on port 8007
 
Raghvendra Sharma
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are able to do it for three contexts there can't be any problem
just be sure for once again that you have not missed anything.
By the way what does the error message say.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic