• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Tomcat not starting

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
jhazard
Asked:
jhazard
1 Solution
 
gandalf94305Commented:
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
 
jhazardAuthor Commented:
reinstalled it and it worked but you can have points anyway
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now