Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Startup.bat

 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I have just started reading HFSJ, I am on the 3rd chapter, i did everything as per the book but I have a problem
First time when i Run the TomCat : clicked on startup.bat --> a small window open and it PERSISTS.

and this time http://localhost:8080/.. --> It works fine..!!

Then I ran shutdown.bat in order to restart the Tomcat.


Second Time : Clicked on the startup.bat ---> again a small window opened but it disappeared.
When I tried to call http://localhost:8080 ...
It showed me message linke "Connection refuse.."

I tried to shutdown the tomcat and restarted to run it again..but next time also.. startup.bat opened a small window and it disappeared..!!

can any one help me what is the problem and how to solve it?
I am using window Vista..!!
 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What version of Tomcat are you using? Check if the tomcat is running a service if yes stop it. The startup windows closes because the tomcat may be already running and you are trying to start it again.

Without starting the tomact using startup.bat try to hit the url http://localhost:8080 and see if you are seeing the tomcat home page. If yes then tomcat is already running.

Hope this helps
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sivaraman,

Thanks for your reply, But I have solved the problem, Problem was with some configuration.
 
Krishna Srinivasan
Ranch Hand
Posts: 1874
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Sunny,

I would suggest you to install NetBeans and try it. they are bundled with Tomcat, so its very easy to practice. You need not waste more time on configuring the server.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Krishna Srinivasan:
I would suggest you to install NetBeans and try it....You need not waste more time on configuring the server.
I disagree. Surrendering control to an IDE is the best way to guarantee that you will never learn anything about Tomcat.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
I disagree. Surrendering control to an IDE is the best way to guarantee that you will never learn anything about Tomcat.


+1
The last thing you should do, if you really want to learn either servlets, JSP, or Tomcat configuration is start out with an IDE that does this stuff (differently) for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic