Solved

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

Posted on 2013-05-21
11
643 Views
Last Modified: 2013-05-27
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."
0
Comment
Question by:Alaska Cowboy
  • 7
  • 4
11 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 39185711
http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html

Try running in console. Look at the bottom of that page
0
 
LVL 1

Author Comment

by:Alaska Cowboy
ID: 39185876
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:
tomcat properties
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 39185976
set JAVA_HOME="C:\Program Files (x86)\Java\jre6"
set PATH="%JAVA_HOME%\bin;%PATH%"

Open in new window

0
 
LVL 1

Author Comment

by:Alaska Cowboy
ID: 39187315
CEHJ,

- JAVA_HOME is set in my Environment Variables

- PATH is also set in E.V., but what is the %PATH% for ?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39187365
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)
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 1

Author Comment

by:Alaska Cowboy
ID: 39187394
>>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 . . .
0
 
LVL 1

Accepted Solution

by:
Alaska Cowboy earned 0 total points
ID: 39187886
I found a similar post here, so I changed the "startup mode" to "java" from "jvm" . . . and it started !

now moving on to my next phase of getting Tomcat to work . . .
0
 
LVL 1

Author Comment

by:Alaska Cowboy
ID: 39187920
I tried to go to "http://localhost/", but nothing came up . . . the service is started . . .
- oops, found it at "http://locathost:8080" . . .
0
 
LVL 1

Assisted Solution

by:Alaska Cowboy
Alaska Cowboy earned 0 total points
ID: 39188630
I got it working ! I simply copied all files from the working server/PC to the new machine, and it came up and seems fine . . .

But thanks for pushing me along, always good to have a second set of eyes.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39188837
ok
0
 
LVL 1

Author Closing Comment

by:Alaska Cowboy
ID: 39198785
the "java" mode of startup did the trick.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 46
servlet  URL Rewriting 1 28
web services creation SOAP vs REST 5 21
map related example 6 40
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now