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

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
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
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

Joined: Mar 22, 2002
Posts: 1
Hello Friends,
I got the " 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: 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: Address already in use: JVM_Bind
I do not understand this. Please help.
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 ]

erwan le bras

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(
, '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
, 8081))
SQL> call dbms_xdb.cfg_update(updateXML(
, '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
, 2111))
SQL> commit;
SQL> quit;
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Moved to the Tomcat forum.

[Asking smart questions] [About Bear] [Books by Bear]
It's not a secret anymore!