Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Tomcat not starting

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
phpmyadmin installation 3 65
local dns 2 167
Hosting application in Apache and Tomcat 1 111
How to find /read Apache log error file ? 5 131
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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…

839 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