• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat installation Problem

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you installing and how are you starting Tomcat?
 
georgy jacob
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any solution Ben ?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why wouldn't your JRE path just be "C:\Program Files\Java\jre1.5.0_04"?
 
georgy jacob
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any solution Ranchers ? please help
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do i have to set any environment variables for tomcat installation like how we do for java ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic