Solved

Tomcat not starting

Posted on 2002-07-18
2
236 Views
Last Modified: 2010-03-04
Hi
I've just installed Tomcat on windows.  When I type startup at the prompt it opens and closes very quickly.  Obviously something is amiss but I'm not sure what, any clues?
0
Comment
Question by:jhazard
2 Comments
 
LVL 3

Accepted Solution

by:
gandalf94305 earned 50 total points
ID: 7167538
If you install Tomcat 4.0.3 under Windows, you will have two options to start Tomcat:

- as a service (check your services panel to see if there is an Apache Tomcat "Started")

- manually from the command line.

If there is a service installed, it might already be running, will then occupy the port and keep your manually started copy from working and even starting up. Point your browser to the Apache default port localhost:8080 to see if that is the case.

Note: if you install Tomcat twice with different installation directories, some places may be set up incorrectly in the Windows registry for the service to run. Use regedit to check the following keys:

HKLM->System->CurrentControlSet->Services->Apache Tomcat
->Parameters

This contains a number of paths which need to be checked. They all should start with a prefix equal to the installation directory. The is also the very useful "JVM Option Count" parameter telling Tomcat how many "JVM Option Number X" (X=1, 2, ...) there are. If you need a special JVM option to pass (e.g., -Xmx256m to increase memory usage), do that here.

If you wish to start from the command line, use a script like the following:

D:\Java\jdk1.3.1_03\bin\java.exe -Xmx288m -jar -Duser.dir="D:/ApacheTomcat403" -D:/ApacheTomcat403/bin/bootstrap.jar" start

This should do the trick. If not, tell me the error message.

Cheers,
--gandalf.
0
 

Author Comment

by:jhazard
ID: 7205959
reinstalled it and it worked but you can have points anyway
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now