wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat installation Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat installation Problem" Watch "Tomcat installation Problem" New topic
Author

Tomcat installation Problem

georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
I tried to install Apache Tomcat v -5.5.10 on a Windows Xp machine. While installing i gave the JRE path as "C:\Program Files\Java\jre1.5.0_04\bin\client\jvm.dll"

Installation is fine .

But while starting Apache Tomcat i am getting the following error message :


Could not start Apache Tomcat on local System
Error :1067 The process Terminated Unexpectedly

could anyone tel me the cause of this error ?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

How are you installing and how are you starting Tomcat?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
IF i start it from services i am getting that error message.
If i access it through configure tomcat then no error message comes but the server doesnt start.

I downloaded the jdk-1_5_0_06-nb-4_1-win-ml.exe from sun site and installed it. After that i proceeded with Tomcat installation. Please let me know incase u need some more information specifically
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

First, I would try rebooting the box and then starting from the service window just to make sure it wasn't already running in a weird state before you tried starting the service.

Then, look at Start -> All Programs -> Apache Tomcat -> Tomcat Configuration ->Java (tab) and verify that it's pointing to the proper java installation.
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
Yeah i have actually done that. I have uninstalled and reinstalled a hundred times before seeking the help of this forum I have ensured that the apache tomcat server is stopped (From services ) before restarting the same from start-->...-> configure tomcat server. But it simply gives the same error each time. The java path gets mentioned correctly at the java tab of Configure in Tomcat.

I went to the tomcat logs and searched for clues .But to my dismay i did not find any error recorded there(i guess the errors did not get logged as the execution stopped mid way due to some problem)
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
Is there any solution Ben ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
If this was my problem I would try starting it with startup.bat, changing the last executable line in startup.bat to use "run" instead of "start" so that the window will stay open. You may be able to find the point of failure that way.
Double-check your environment variables for values left over from previous installations of Java or Tomcat or some application that might use Java.
Bill
Michael Beck
Greenhorn

Joined: Mar 11, 2005
Posts: 19
why wouldn't your JRE path just be "C:\Program Files\Java\jre1.5.0_04"?
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
I dont find the startup.bat file on the installation location. could you please tel me where it is located. I did a search inside tomcat folder but could not find a single bat file in it. I only find a tomcat5.exe file . But am not able to edit it.
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
Is there any solution Ranchers ? please help
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by georgy jacob:
I dont find the startup.bat file on the installation location. could you please tel me where it is located. I did a search inside tomcat folder but could not find a single bat file in it. I only find a tomcat5.exe file . But am not able to edit it.


I'm not sure the exe version even ships with the bat files anymore.

When you performed the installation, did you type the full path
"C:\Program Files\Java\jre1.5.0_04\bin\client\jvm.dll"
or did you just type the directory of the JRE installation
"C:\Program Files\Java\jre1.5.0_04"?
as Michael Beck has suggested?
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
I have tried installing with both the paths.However, the result is the same . The same "1067 Error" . If i give the path as "C:\Program Files\Java\jre1.5.0_04"? during installation the path is automatically taken to be C:\Program Files\Java\jre1.5.0_04\bin\client\jvm.dll (this is the path is see after installation) . Is there any solution in sight for me ? If u need any further information please ask



Georgy

SCJP(92%)
SCWCD(preparing currently)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Is there anything in the Tomcat logs?
You might also want to check the Windows Event Viewer as it sounds like the service can not get the JVM running at all.
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
Quote:
---------------------------------------------------------------------------
I went to the tomcat logs and searched for clues .But to my dismay i did not find any error recorded there(i guess the errors did not get logged as the execution stopped mid way due to some problem)
----------------------------------------------------------------------------


As i had already mentioned i am not able to find any errors in logs.

I went to the event viewer just now.. But it doesnt offer any clues either

This is the description of the only error i found in the event viewer


The Apache Tomcat service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 60000 milliseconds: Restart the service.
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
Do i have to set any environment variables for tomcat installation like how we do for java ?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Not with the ".exe" install.
I've heard that it will use the JAVA_HOME environment variable to find the JDK installation if it's there but I'm not sure about that.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I wonder if the file was corrupted during download.
Why not try downloading the latest stable (5.5.12, I believe) and give it a fresh start?
joshi pratik
Greenhorn

Joined: Jan 28, 2011
Posts: 5
guys the problem is because of tomcat cant find the java installation folder. for that you have to simply follow the steps ,

1) click on the tomcat installation setup.
2)click next until you get the dialogue box :: please select the path of a java SE6.0 or later JRE installed on your system.
3)if there is any predefine path then remove it and give there the path of your java installation folder. if you do not have jre then install it. the path will be something like this(C:\Program Files\Java\jdk1.6.0_18) or (C:\Program Files\Java\jre6) select any of the two. if one cant solve the problem then try with the other one.
4) and just try to start up your server now. it will most probably work..
enjoy...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat installation Problem