?
Solved

Tomcat not starting

Posted on 2002-07-18
2
Medium Priority
?
243 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
[X]
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
2 Comments
 
LVL 3

Accepted Solution

by:
gandalf94305 earned 150 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

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…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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