• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Startup.bat

 
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..!!
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sivaraman,

Thanks for your reply, But I have solved the problem, Problem was with some configuration.
 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic