File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Running Tomcat 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Running Tomcat 7" Watch "Running Tomcat 7" New topic
Author

Running Tomcat 7

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 374
I have downloaded and installed Tomcat 7 without any error. Now when I am trying to run http://localhost:8080/index.jsp, I am getting 404 error.

Secondly, I tried to configure Tomcat 7 in Eclipse IDE. Here I am getting the message,
"starting Tomcat7 at localhost has encountered a problem
Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s)."

How can I find out what services are running at port 8080 ? If any service is running at 8080, can I just stop the service and I will be able to run Tomct on 8080 ?

I did "netstat -p tcp -ano"

I got processs 4656 runing at port 8080, 8181 and 8686.

Now when I checked in task manager, I cant find any service with PID 4656. Highest PID is 4084. There some processes for which there is no PID specified ie in task manager PID field for some processes is blank.

Thanks
Heath Swanson
Greenhorn

Joined: Mar 31, 2011
Posts: 6
If you edit server.xml, Tomcat7 should listen ports other than 8080 or 8009.
If you don't use tomcat in conjunction with apache httpd (AJP protocol), you can disable 8009 by commenting out "<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />" line.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running Tomcat 7