This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes how to run tomcat in windows? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "how to run tomcat in windows?" Watch "how to run tomcat in windows?" New topic
Author

how to run tomcat in windows?

kuturam chakraborty
Greenhorn

Joined: Jan 23, 2006
Posts: 25
hi friends,


i have installed tomcat5.5 in windows xp ,now i am not being able to start it up.whenever i click on the tomcat monitor ,it says that an instance of tomcat is already running.also,please tell me how to set the environment variables in windows xp(professional)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

it says that an instance of tomcat is already running

It says it all, doesn't it ? You have another instance already running. If running as a service, stop it.
Or you can uninstall any previous version if you don't need it anymore.


[My Blog]
All roads lead to JavaRanch
Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
The same happened to me in the first time I installed Tomcat.

By default, Tomcat enables itself as a Windows Service. So, you can either disable it to manually run whenever you want or keep the things as is.
[ June 20, 2006: Message edited by: Edisandro Bessa ]

"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
kuturam chakraborty
Greenhorn

Joined: Jan 23, 2006
Posts: 25
hi Edissandro,

thanx for the reply,but in hfsj book ,while building the model mvc tutorial,they have given commands to shutdown tomcat,but when i try them from my command promt,it says "shutdown.sh" is not recognized as any command or batch file. is it because it is applicable only on linux\unix\osx?

how do i stop tomcat5.5 in windows xp?
Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
If Tomcat is running as a windows service :

Go to Administrative Tools and look for services option, there you can find Tomcat Service. Just right click it and choose stop.
kuturam chakraborty
Greenhorn

Joined: Jan 23, 2006
Posts: 25
hi edissandro, i did what you told,however in the admin tools->services option
it shows that tomcat is not running,should i install tomcat once again.
Cai DongShan
Ranch Hand

Joined: Dec 07, 2004
Posts: 102
1. Tomcat 5.5 requires JRE 5.0 by default. Did you installed Java 5 before installed Tomcat?
2. Did you start Tomcat service? Any error?
3. Try http://localhost:8080/. If tomcat page is shown, that means your tomcat works fine.


Best Regards,<br />DongShan<br /> <br />SCJP1.4, SCWCD1.4
Sathish Nagappan
Ranch Hand

Joined: Nov 05, 2005
Posts: 76
For a windows installation , Tomcat automatically installs something called as Monitor. That will be present in your taskbar all the time. You can right click that and choose stop.
Install JRE for tomcat to work and set the path to the JRE like this:

Right click the monitor on the taskbar and click Configure, once you click that , choose Java {tab} and type in the path of the JRE there (If it is not automatically set the first time).

In the rare case that you dont see the monitor on the taskbar , Click on Start Menu > Programs > Tomcat > Monitor. This entry will only be there in your Start Menu if you have downloaded the Tomcat Executable.


SCJP, SCWCD, SCBCD, IBM XML, IBM OOAD, SCEA 5, ITAC - Distinguished IT Architect.
kuturam chakraborty
Greenhorn

Joined: Jan 23, 2006
Posts: 25
hi aswanth,

inside the java tab,two path names are given,

1)java virtual machine
here the path name given is

C:\Program Files\Java\j2re1.4.2_07\bin\client\jvm.dll

and 2)java classpath where the path is

C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar

should i change anything here?

if i keep them ,i am not being able to start tomcat,there is a start tab but after clicking it it is not being able to start the app.

thank you all in advance
Cai DongShan
Ranch Hand

Joined: Dec 07, 2004
Posts: 102
You should install Java 5. Or change Tomcat to 5.0.
 
Don't get me started about those stupid light bulbs.
 
subject: how to run tomcat in windows?