File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

startup.bat not working properly

 
vineet dhar
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A BindException usually means that something is already running on that port (by default 8080).
 
vineet dhar
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20171
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic