Link to home
Create AccountLog in
Avatar of Alaska Cowboy
Alaska CowboyFlag for United States of America

asked on

trying to set up Tomcat on Windows 7, service won't start

I'm trying to set up Tomcat 5.5 on Windows 7, 64-bit. I'm using Tomcat 5.5 because we have another PC/server that's also running 5.5 and I wanted it to be the same version. The other PC is Windows XP and it runs fine.

I have Java version 1.6.0_25

I installed Tomcat 5.5.31, which seemed to go ok,
http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.31/bin/, then
-      apache-tomcat-5.5.31.exe                 2010-09-16 12:59  7.3M


When I try to start the service it just says "Windows could not start the Apache Tomcat on Local Computer".

I'm guessing it's a version thing, either with Tomcat or Java on my machine.

In the Windows Logs, I see an error, "The Apache Tomcat service terminated with service-specific errors. The operation completed successfully."
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Alaska Cowboy

ASKER

CEHJ, ok, thanks.

I just now set up my Environment variables, but still the service won't start.

JAVA_HOME = C:\Program Files (x86)\Java\jre6

PATH = ***;%JAVA_HOME%

For running the console . . . uh, how do you do that ?

I can run Tomcat properties ok:
User generated image
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
CEHJ,

- JAVA_HOME is set in my Environment Variables

- PATH is also set in E.V., but what is the %PATH% for ?
Well the idea is to run it from the command line, so i was giving you the correct syntax for that.

You'll notice btw, that your PATH entry is wrong (missing bin)
>>the idea is to run it from the command line
but is this the command line in Tomcat, or just DOS command line ? If it's the Tomcat command line, I don't know how to get to that.

I changed my PATH to include bin --> %JAVA_HOME%\bin

still the service won't start up . . .
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I tried to go to "http://localhost/", but nothing came up . . . the service is started . . .
- oops, found it at "http://locathost:8080" . . .
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ok
the "java" mode of startup did the trick.