Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant get Tomcat6.0 to work with Windows 7 Environment

Tags:

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.

like image 551
TheJediCowboy Avatar asked Oct 30 '09 03:10

TheJediCowboy


People also ask

What OS does Tomcat run on?

Tomcat is available in two different binary release formats for Linux users: Multiplatform binary releases. You can download, install, and run any of the Tomcat binary releases from Apache's Jakarta web site, regardless of the Linux distribution you run.

How to install Tomcat 6 in Windows?

In Windows using zip file To install Apache Tomcat, all you have to do is simply unzip the downloaded (. zip) file to a safe location on your machine. For simplicity and easy access, we recommend you to unzip Tomcat in “C:\Tomcat6\” directory.

What is Tomcat 6?

Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages 2.1 specifications from the Java Community Process, and includes many additional features that make it a useful platform for developing and deploying web applications and web services.


2 Answers

"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.

like image 134
BalusC Avatar answered Oct 13 '22 06:10

BalusC


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.

like image 23
David Hutchinson Avatar answered Oct 13 '22 07:10

David Hutchinson