aspose file tools*
The moose likes Servlets and the fly likes tomcat port setting... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat port setting..." Watch "tomcat port setting..." New topic
Author

tomcat port setting...

karan, chopra
Ranch Hand

Joined: Jun 05, 2001
Posts: 115
hi there,
can someone tell me how to change the port number in tomcat.i dont want it to be 8080(coz i dont want it to conflict with jsdk which is also installed in my computer).
regards
karan
karan, chopra
Ranch Hand

Joined: Jun 05, 2001
Posts: 115
also please tell me how to run a servlet in tomcat.i mean where should i copy the class file of my servlet(for ex in jsdk we copy the class file in the servlet directory,is there something like this in tomcat also?)..
regards
karan
Venugopal nandikolla
Greenhorn

Joined: Feb 02, 2001
Posts: 22
Hi karan,
go to server.xml at ..\tomcat\conf\server.xml and modify the
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="8080"/>
</Connector>
to

<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="****"/>
</Connector>
***** change whatever port you need

venu
karan, chopra
Ranch Hand

Joined: Jun 05, 2001
Posts: 115
thanks venu for the reply,i did it but when i click on the startup file in tomcat\bin\ it doesnt show up any command window..i even tried typing startup in the bin file at dos prompt but it says "the system cannot find the path specified".. .why is this so?and also tell me where should i copy the class files of my servlet..?
regards
karan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat port setting...