Categories

Main
Database
Java
Microsoft.NET
Adabas
DB2
Informix
Microsoft SQL Server
MySQL
Oracle
Pervasive.SQL
PostgreSQL
Sybase
Other
ASP
ColdFusion
Crystal Reports
Delphi, C etc
JAVA
Microsoft.NET
Perl and the DBI
PHP
ANSI SQL
Unix Shell Scripts
Visual Basic
XML & XSLT
Corel Paradox
FileMaker
Microsoft Access
Microsoft Excel
Other PC Databases
Applications & Tools
Database Concepts & Design
EJB programming & troubleshooting
EJB design
General J2EE
XML & Web services
Web tier: servlets, JSP, Web frameworks
Performance and scalability
Industry news
TSS feedback
Mobicents Contributors
Mobicents Users
JSLEE Resource Adaptor Types
Planning JavaOne 2008
Sun Tech Days
Other Java conferences
Binary Web Services and XML
Metro and JAXB
GlassFish
GlassFish Plugins
Project jMaki
GlassFish WebTier
Mural
Java Development Tools
Java WS & XML Community News
JAXP
Java SE
6uN Early Access
Java Quick Starter
Java SE Snapshots: Project Feedback
JCK Forum
Feedback and Suggestions
JDK Distros
JDK Open Source
General JSR Discussion
JCP 2.6
JXTA Community Forum
ME Interest
ME Cool Apps
ME General Help
ME Feedback & Suggestions
ME Application Developer Interest
Blu-ray Disc Java
ME Developer Days
Squawk
Mobile Developer Alliance
OpenCable
LWUIT
JavaFX Script Language Discussion
OpenJFX General Discussion
Scene Graph
General Performance Discussion
Your Java Career
NetBeans 6.0
Servlets
JSP
JSF
Portals and Portlets
EJB and Other Java EE Technologies
Distributed Java
Object Relational Mapping
JDBC
Web Services
Swing / AWT / SWT / JFace
JNLP and Web Start
Java Micro Edition
Sockets and Internet Protocols
Threads and Synchronization
Performance
Applets
I/O and Streams
Other Java APIs
Game Development
Java in General (beginner)
Java in General (intermediate)
Java in General (advanced)
Programmer Certification (SCJP)
Developer Certification (SCJD)
Associate Certification (SCJA)
Web Component Certification (SCWCD)
EJB Certification (SCBCD)
Mobile Application Certification (SCMAD)
Architect Certification (SCEA)
Web Services Certification (SCDJWS)
XML Certification
Product and Other Certifications
Mock Exam Errata
Sun Certification Results
Authors' Corral
Book Reviews
Events
Bunkhouse Porch
Teachers' Lounge
Testing
OO, Patterns, UML and Refactoring
IDEs, Version Control and other tools
Ant, Maven and Other Build Tools
Linux / UNIX
Mac OS
HTML and JavaScript
XML and Related Technologies
Agile and Other Processes
General Computing
Security
Groovy
Scala
Other Languages
Struts
Application Frameworks
Other Open Source Projects
BEA/Weblogic
IBM/Websphere
Oracle/OAS
Apache/Tomcat
JBoss
Other Java Products and Servers
JavaRanch
Cattle Drive (java college)
Moderators Only
Trash Can
Jobs Offered
Jobs Wanted
Jobs Discussion
Meaningless Drivel
Programming Diversions
Blatant Advertising
Java Announcements
New To Java
Advanced Java
Java Applets
Networking
Threads and Synchronization
Java 2D
AWT / Swing
SWT / JFace
CLDC and MIDP
CDC and Personal Profile
Sun Java Wireless Toolkit
Enterprise JavaBeans
JavaServer Pages (JSP) and JSTL
Java Servlet
JavaServer Faces
Web Frameworks
Database
XML
Lucene
NetBeans
Eclipse
IntelliJ IDEA
JCreator
Other IDEs
Java Tutorials
Java Tips
Jobs Discussion
Jobs Offered
Jobs Wanted
Professional Certification
Forum Lobby
Java Blogs
Introductions
Reviews / Advertising
Suggestions & Feedback

Resources

Java Database
Linux
Coding
Mobile
Hardware
Software Development
Software Development
iOS,OS X
iOS,OS X
ORACLE
IBM DEVELOPER
IBM DEVELOPER
MSDN
MSDN


Tags

Apache/Tomcat

The Tomcat Servlet Container

Localhost:\8080 Problem


Hi,I am using to Tomcat 5.5 as application server. When I try to start it I get the following error message:"Port 8080 required by Tomcat v5.5 Server @localhost is 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)."To make sure I have cheked if any other program is using the localhost:8080, but didn't find anything.Can anybody please tell me how can I see which ports are available to allocate as "localhost" in Windows XP? Can I use any other port for Tomcat?Thanks in advance!Mahi.--------------------To fall down is not a failure, but to stay there is....!

   
   
   
   
   
      'typically', yes, you can use any port for tomcat. maybe switch to 8081 (have a look in conf/server.xml)Try openinghttp://localhost:8080in a browser and see if you get anything. I once had Oracle installed and it had something running there. It was pretty easy to remove after a quick google search.--------------------Only those people who do nothing do not make mistakes.[JavaRanch FAQ] [HowToAskQuestionsOnJavaRanch] [Blog] [Book Promotions] [DbTamer]

   
   
   
   
   
      quote:Originally posted by Mahi Rahman:To make sure I have cheked if any other program is using the localhost:8080, but didn't find anything.How did you find that. What I do is , I try to telnet into localhost at port 8080.If connection is refused then no one is using that port.Or in some case you previous Tomcat process has not terminated properly and still listening to port 8080.Check the process manager.quote:Originally posted by Mahi Rahman:Can anybody please tell me how can I see which ports are available to allocate as "localhost" in Windows XP? Can I use any other port for Tomcat?You can surely use other port for Tomcat as pointed by David.Check for connector configuration in server.xml for changing the default port.--------------------Rahul BhattacharjeeLinkedIn  Blog

   
   
   
   
   
      There are programs that will tell you which programs (at which location on the local machine) are listening on which port, but I can't remember any of their names.--------------------Only those people who do nothing do not make mistakes.[JavaRanch FAQ] [HowToAskQuestionsOnJavaRanch] [Blog] [Book Promotions] [DbTamer]

   
   
   
   
   
      Port sniffers are available (Never run on any public server , read somewhere that its illegal).netstat -n at command prompt gives some information about the listening ports.--------------------Rahul BhattacharjeeLinkedIn  Blog

   
   
   
 
   
      netstat is the proper command, but use "netstat -ano" or "netstat -ab"nmap can be used to perform port scans. But as mentioned before, only use on your machines.--------------------Rashid Mayeswww.hostj2me.comwww.worlddeveloper.org

   
   
   
 
   
      Sorry, I forgot to add. There is a slight difference between the syntax on the Windows and Linix platforms.Use netstat \h on windows for help and man netstat on Linux for help.[ May 29, 2007: Message edited by: Rashid Mayes ]--------------------Rashid Mayeswww.hostj2me.comwww.worlddeveloper.org


Related Links

Another TomCat and eclipse issue
Tomcat Dump seen in the log file
Can't inlculde files from a parent directory in new tomcat
include doesn't recognize relative path from sub folder
increase java heap size
Tomcat - direct access to PDF documents
Tomcat crash when loading JNI library
Features of Tomcat 5.5
Alternative resource directory
Cookies not getting set
can't open wmv media file on the server
can't find css, js and images when proxying
Tomcat Page cannot be displayed
apache/Tomcat Running in windows
Configuration problem with Tomcat 6.0 with Virtual Hosts
Tomcat 5.5.9 Admin Application