This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

startup.bat not working properly

 
Greenhorn
Posts: 23
  • 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
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • 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
  • 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 ??
 
Marshal
Posts: 67300
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
  • 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?
 
Sheriff
Posts: 24658
58
Eclipse IDE Firefox Browser MySQL Database
  • 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
Posts: 13078
6
  • 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
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!