• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.net.BindException:

 
Rex Rock
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Biju Nair
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rex Rock
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
erwan le bras
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Tomcat forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic