Solved

Tomcat not starting

Posted on 2002-07-18
2
238 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

15 Experts available now in Live!

Get 1:1 Help Now