Getting Tomcat Apache To Run On Microsoft Windows 7

So the last few days I have been updating my work laptop to Microsoft Windows 7 Release Candidate. I have now successfully reinstalled most of my existing software. This also includes a new installation of ArcGIS 9.3.1. I am very impressed with Windows 7 Release Candidate, Microsoft has done a great job with this release. A few new features but also tons of bug fixes.

One of the last pieces of software I needed to reinstall was Tomcat Apache. I use Tomcat Apache for a few web applications and thus the need to install this. I downloaded the latest version. Tomcat Apache 6.0.18. Installation is as per normal. Attempting to start the Tomcat Apache process you get the following:

1

2

Tomcat Apache fails to start with the above error. The error isn’t very informative so digging further by looking at the Apache Tomcat logs you get the following:

3  

Having a look at the logs we can see that the JRE is reporting a missing module which cannot be found. The file that is missing is named: msvcr71.dll. While this file should exist in your JRE folder, Tomcat Apache cannot access it.

The simple fix for this problem is to copy the msvcr71.dll from your JRE folder to the Apache Tomcat /bin folder as per screenshot below.

4

Attempting to start the Tomcat Apache service again will work fine.

5

While the fix is really simple, it too me a while to figure this one out and research it. I am not sure whether this applies to x86 or x64 versions or both but I am running Windows 7 x64. There are a few issues I have found with ArcGIS 9.3.1 and ArcGIS Server 9.3.1 on Windows 7 so I’ll blog about them as soon as I can.



29 Responses to “ “Getting Tomcat Apache To Run On Microsoft Windows 7”

  1. Paco Camarillo says:

    Thanks bro, it was a great help for me………

  2. avis says:

    thx… it also fixed my apache in xampp lite =p

  3. ply says:

    Big thanks!

  4. MethoD says:

    I’ve successfully started tomcat on windows 7 RC 7127.

    I’ve changed tomcat folder permission by adding write privilege to tomcat folder.

  5. Mr Trung says:

    Thanks for yur help. I control my apps now ^^ thanks

  6. Benevid says:

    Thanks’s ….still running

  7. Vincent says:

    Thanks! It worked great.

  8. Patryk says:

    Great! It worked like a charm! Didn’t notice any other compatibility issues regarding Windows 7. I think Microsoft finally did some really good work with this OS.

  9. Lenin says:

    Thanking you

  10. inFame says:

    U r the man!!!!

    Thanks a lot!!!

    Eres grande hermano!!! En verdad una gran ayuda para los que apenas comenzamos con Apache

    Gracias otra vez!!!

  11. Roopesh says:

    Thanks a lot, U made my job easy….

  12. Tostau says:

    Hi, this tutorial seems very usefulll… but it doesn’t work for me..

    I have a Windows 7 Professional on a Dell XPS16, i tried to installa Apache Tomcat 6.0 and i had the problem you fix… unfortunately i haven’t solve it. In my Java installation folder i haven’t the file <msvcr71.dll> so i downloaded it but it still doesn’t work… I reboot several times. I have java 1.6 installed, could it be that the problem??

  13. RE: Getting Tomcat Apache To Run On Microsoft Windows 7

    windows7下tomcat的安装问题

  14. Kalle says:

    Thank you! Worked great

  15. Michael says:

    I can’t get it to work with Windows 7 64 bit. Any ideas?

  16. Antonio says:

    Muy buen consejo, ude hacer funcionar conesto mi tomcat 6 en Windows 7 x64 gracias !

  17. Chen says:

    I copied the DLL and it still doesnt work (Windows 7 RC). any idea why? thanks

  18. Felipe Messina says:

    THANK YOU VERY MUCH about this fix, you SAVE MY LIFE =) . Thanks for share

  19. John Fiala says:

    Thanks a lot! This is just what I needed to get Tomcat working on Windows 7 Professional 64 bit.

  20. Pinux says:

    Tnks a lot. Now it’s working fine!!!

  21. Martin says:

    thanks a lot for this fix. i’m using win7 since beta problem with tomcat was the only one i had with this os.

  22. karthik says:

    Thanks a lot…..

    It’s working

  23. Arun says:

    well, it works.
    Thanks a lot.

  24. echo9 says:

    i was getting an error:

    javaw.exe – ordinal not found

    the ordinal 2502 could not be located in the dynamic linked library
    LIBEAY32.dll

    this is whats the error window said^ :(

    and even after copying the dll into tomcat/bin it din’t worked out for me..

    suggestions..anybody..?

  25. Nilesh says:

    I HAVE SOME PROBLEM IN TAOMCAT 6 THAT IS NOT WOTKING PROPERLY I HAVE SOME ERROR ACCESS IS DENIED.
    BUT WHEN I INSTALL TOMCAT6 IT WORKING PROPERLY WHEN I RESTART MY SYSTEM AND THEN START TOMCAT6 THAT IS ERROR DISPLAY ACCES IS DENIED .
    PLS GIVE ME SOME SOLUTION…

  26. LRL says:

    Thanks very much that worked a treat on Windows 7 X 64

  27. Adam says:

    This really seemed to help quite a few people. It didn’t do anything for me. Does anyone else have any ideas? Using 64 bit, redownload and installed tomcat and JDK etc., etc.

    Any help would be appreciated.

Leave a Reply