aspose file tools*
The moose likes Tomcat and the fly likes java.net.BindException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "java.net.BindException:" Watch "java.net.BindException:" New topic
Author

java.net.BindException:

Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
I get this exception too often..

sometimes, runnting shutdown.bat ( more than once) fixes the problem.
sometimes, i just restart my machine.
Wondering what really is the problem?
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Since you are refering to 8080 in your post, I assume you are working with Tomcat.
1. Are you setting any classpath stuff on your own?
2. What version of Tomcat are you running, if infact it is Tomcat?
Pl. let us know when you get a chance.
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Biju Nair
Ranch Hand

Joined: Dec 15, 2001
Posts: 31
The BindException occurs when you try to run two instances of Tomcat on the same port. ie. When you get this exception, it means that you are already running one instance of Tomcat which is listening to port 8080 (or what ever it may be). In case u want to run two Tomcat instances on two diff ports , you can do that by editing the port entries for connection hanlders in the server.xml file.


--: Biju Nair :--
Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
Thanks both of you guys!
I understand that I'm running two instances, but the point is I dont intend to. I dont know, how I manage to run two instances of tomcat, when I dont intend to. madhav, i think this answers your question of me using tomcat ? When i get this exception, i click on the shutdown.bat, to stop the instance, but that doesnt help either.
my classpath reads
.;D:\Tomcat\lib;D:\jdk1.3\bin
Well, I do change my server.xml to fix the problem temporarily, but then i hate to do it 5 or 6 times in a day.
Restarting the machine / clicking on shutdown.bat dont seem to help!
Sudhakar Jale
Greenhorn

Joined: Mar 22, 2002
Posts: 1
Hello Friends,
I got the "java.net.BindException: Address already in use: JVM_Bind" when I started Tomcat4.0.
I could not start even after changing the port 8080 in server.xml file, it does not work. I have restarted the machine and even tried with shutdown. It never works. I know that my Oracle is running on port 8080. I just want to leave it that way. I do not mind to change the port in server.xml. It seems to work for many of you atleast after changing the port in server.xml. But it does not simply work on my machine. If I leave port 8080, the exception is:
java.net.BindException: Address already in use: JVM_Bind:8080
When I change the port to other numbers like 8880, 11111, 5000, 1997 etc. it simply give the following exception:
java.net.BindException: Address already in use: JVM_Bind
I do not understand this. Please help.
Sudhakar
Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
Are u sure
This is my tomcat config ....

And I am not a regular tomcat user ... I just had it in my desktop ... changed server.xml file as you have said ... and it runs just fine !!!
[ June 11, 2002: Message edited by: Shubhrajit Chatterjee ]

Shubhrajit
erwan le bras
Greenhorn

Joined: Aug 01, 2005
Posts: 1
If the error occurs because of Oracle already using this port,
one can also move the oracle server to port 8081 (or other of course, and at the same time change the FTP port from 2100
to 2111:

> sqlplus "/ as sysdba"
SQL> call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
, 8081))
/
SQL> call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
, 2111))
/
SQL> commit;
SQL> quit;
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Moved to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.net.BindException:
 
Similar Threads
RMI Registry help
java.net.BindException
keep getting this exception Address already in use: JVM_Bind
accessing a server using socket connection
Starting Jboss from eclipse