Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-13-2006, 01:13 AM   #1 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
Not able to connect to localhost:8080??

Hi,

I have jdk 5 version installed on my laptop.I installed Apache Tomcat 5.5 version with default settings.But when i tried to access the index page
using the url : http://localhost:8080 the browser pompted me for a login dialog box.Even after providing my local system user account's user id and password AND using admin as user name and password none it didnt worked.

When i saw the logs i got the following information:

Error initializing endpoint:
java.net.BindException : Address already in use:JVM_Bind:8080
at org.apache.tomcat.util.net_PoolTcpEndPoint........ ......................................

.....................
..........

Severe:Catalina.start
LifecycleExceptionrotocolhandler initialization failed:
java.net.BindException:Address already in use JVM_Bind:8080
at org.apache.catalina.connector.Connector.initialize ..........
...........................................

Error Starting End point
java.net.BindException : Address already in use:JVM_Bind:8080
.................................................. .................................................. .


After that i installed Tomcat 4.1 version.But in this case when i run the start script by setting the required variables like CATALINA_HOME..etc ,i dont get anything and the console window gets closed immediately in a second with some error but i was not able to view the error.Also i checked logs but nothing was available.

So can anybody please let me know what could be the problems and how to resolve them ??
j.gohel is offline   Reply With Quote
Old 09-13-2006, 01:32 AM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
I'd guess that you already have a program running on port 8080, or that you're trying to run a couple Tomcat services on port 8080, and they're conflicting with each other.

Check the server.xml file to make sure you aren't running, say, HTTP and HTTPS on the same port (or any of the other services). Also check your machine to make sure you don't have any other programs running on that port.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 09-13-2006, 02:03 AM   #3 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
Belisarius,

I am not aware of how to check which programs are running on which port??Can you please let me know this thing??
j.gohel is offline   Reply With Quote
Old 09-13-2006, 09:37 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
What is this? some Linux dereviate? because then
Quote:
> netstat -lnp
should show you every thing which is listening on any port.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 09-13-2006, 03:40 PM   #5 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
Actually, Windows has netstat as well. But yes, netstat is the default method for discovering what ports on a machine are active.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to Database awieds HTML, XML, Javascript, AJAX 8 06-30-2005 01:26 AM
Connect to Access Database awieds MS Technologies ( ASP, VB, C#, .NET ) 4 04-09-2005 11:27 PM
MySql connect error message slappy Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 2 08-23-2004 07:02 PM
mysqladmin: connect to server at 'localhost' failed infinite_root PHP 3 04-30-2004 06:50 AM
c++ gui with db connect sde Standard C, C++ 3 09-12-2002 12:22 PM


All times are GMT -8. The time now is 08:26 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting