views:

4607

answers:

8

Prior to upgrading to windows 7, I was able to use Tomcat 6.0, but when I upgraded to the new Windows, and downloaded Eclipse EE, and downloaded the apache content, I am unable to get Apache to run. When I attempt to start my apacher server through either system tray, or even windows services, it gives the followign error screen.

"Windows could not start the Apache Tomcat 6 on local computer. For more information review the system event log. Refer to server specific error code 0."

I have been able to locate some forums about error code 0, and some other documentation on this problem, but none of the solutions seems to work.

One of the solutions I came across said to take the msvcr71.dll (mscvrt.dll on new platforms) and put it into the bin folder of apache. This also did not work.

Does anybody know a fix for this problem, or a way to get around it so I can get my server up and running thanks.

A: 

What version of the JRE is used by Tomcat when it tries to start?

Could you check it is a JRE5 as in the Tomcat6 documentation, instead of a JRE6?

Check out the launch configuration properties for a Tomcat server.


Make also sure that Tomcat is not somehow already running as a Windows service when eclipse WTP tries to start its instance of Tomcat.


Check also the "server locations" specifies you are using the tomcat installation (see this thread). It is not directly related to your issue, but it will help once the current problem is solved.

VonC
+1  A: 

"Windows could not start the Apache Tomcat 6 on local computer. For more information review the system event log. Refer to server specific error code 0."

I have had exactly this problem when running Tomcat on Windows 2003 server. Final solution was to configure Tomcat to use C:\Path\To\jre6\bin\client\jvm.dll as JVM through the Java tab of its properties which you can open by doubleclicking the system tray icon. I unfortunately don't recall anymore what dll file it pointed before, but it was wrong. See if that helps.

BalusC
A: 

Go to services, and change it your logon account which grants access to your user account to interact wit the service, and everything worked from then !!! -cm

cm
+1  A: 

sorry cm, i didnt get. could you please explain again?

juniorx32
A: 

It could be a few things, but from my experience under Windows 7 and a fresh install of jdk6 and tomcat6, all I needed to do was add my jdk6/bin to my path.

Hope that helps.

duxx0r
A: 

I had a problem with tomcat 6.0.20 and windows 7, where it wouldn't start up because it needed to run as an administrator, it didnt bother to tell me; just refused. You can have it run as an administrator by right clicking on the application and click on the "Run as administrator" option.

If you are starting it from eclipse you may need to do this with eclipse as well, so it inherits correctly.

David Hutchinson
A: 

APPACHE TOMCAT SERVER IS NOT WORKING IN MY WINDOWS7 OPERATING SYSTEM HOW IT IS POSSIBLE. IF YOU KNOW PLEASE SEND ME SOLUTION TO MY EMAILID . MAIL ID: [email protected]

arogya reddy
This is not an answer to the question above, so it's in the wrong place here. Also it's not programming related, so serverfault.com would be the better place. Additionally you have to provide more details. If you just say "it's not working" nobody will be able to magically say what's the reason for that.
sth
A: 

how can i install??

ketchup