aspose file tools*
The moose likes Tomcat and the fly likes Tomcat Startup.bat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Startup.bat" Watch "Tomcat Startup.bat" New topic
Author

Tomcat Startup.bat

Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

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..!!


Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
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


Regards,
Sivaraman.L
Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

Hi Sivaraman,

Thanks for your reply, But I have solved the problem, Problem was with some configuration.
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

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.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Startup.bat
 
Similar Threads
JSP:its bugging me:confused:
help needed on tomcat set up
Tomcat configuration problem
about tomcat
help me!