aspose file tools*
The moose likes Tomcat and the fly likes startup.bat not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "startup.bat not working properly" Watch "startup.bat not working properly" New topic
Author

startup.bat not working properly

vineet dhar
Greenhorn

Joined: Aug 17, 2011
Posts: 23
i had installed tomcat 6.0...it was working fine...but suddenly it has stopped working...when ever i click on startup.bat a dialog box opens and then collapses automatically...without starting the server...what should i do??
vineet dhar
Greenhorn

Joined: Aug 17, 2011
Posts: 23
i did printscreen before the window collapses and it states java.net.BindException : Cannot assign requested address:JVM_Bind at java.net.DualStactPlainSocketImpl.bind0(native method)....and soon
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
In order to see the full error messages, change the last line in startup.bat to use "run" instead of "start" and execute startup.bat from a command prompt window.

Using run will continue in the open command prompt window and preserve all sorts of useful information.

Consider the possibility of another program using the socket Tomcat needs.

Bill
vineet dhar
Greenhorn

Joined: Aug 17, 2011
Posts: 23
William Brogden wrote:In order to see the full error messages, change the last line in startup.bat to use "run" instead of "start" and execute startup.bat from a command prompt window.

Using run will continue in the open command prompt window and preserve all sorts of useful information.

Consider the possibility of another program using the socket Tomcat needs.

Bill


The window collapses automatically before I can do anything...how should i modify the startup.bat ??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60999
    
  65

A BindException usually means that something is already running on that port (by default 8080).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
vineet dhar
Greenhorn

Joined: Aug 17, 2011
Posts: 23
Bear Bibeault wrote:A BindException usually means that something is already running on that port (by default 8080).



so how can i change the port number after installing tomcat?? Am i supposed to reinstall tomcat once again?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

vineet dhar wrote:
Bear Bibeault wrote:A BindException usually means that something is already running on that port (by default 8080).


so how can i change the port number after installing tomcat?? Am i supposed to reinstall tomcat once again?


No, that would be an absurd thing to do. Instead you should use a better problem-solving method. Here's how it works. Your problem is that something is already running on port 8080. So instead of doing something random and hoping it makes the problem go away, you should focus on that problem. In particular you would like to know what exactly is running on port 8080, so that you can prevent it from doing that in the future. And so you should try to find out what is running on port 8080.

Most operating systems have tools which enable you to find out what is running on what ports. Usually those tools are called "netstat". Start there.

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
The window collapses automatically before I can do anything...how should i modify the startup.bat ??


Don't execute startup.bat by double-click. Instead open a command prompt window, navigate to the bin directory and execute startup from the command prompt. The window will stay open.

Bill
 
Consider Paul's rocket mass heater.
 
subject: startup.bat not working properly