日期:2014-05-17  浏览次数:20942 次

解决Windows不能在本地计算机启动apache tomcat
在windows下以服务的方式启动时提示如下: “windows 不能在 本地计算机 启动 Apache2。有关更多信息,查阅系统事件日志。如果这是非 Microsoft 服务,请与服务厂商联系,并参考特定服务错误代码 1。”

[2008-01-28 03:49:14] [info] Procrun (2.0.3.0) started
[2008-01-28 03:49:14] [info] Service Tomcat5 name Apache Tomcat
[2008-01-28 03:49:15] [info] Service Tomcat5 installed
[2008-01-28 03:49:15] [info] Procrun finished.
[2008-01-28 03:49:16] [info] Procrun (2.0.3.0) started
[2008-01-28 03:49:18] [info] Updating service...
[2008-01-28 03:49:19] [info] Service Tomcat5 updated
[2008-01-28 03:49:19] [info] Update service finished.
[2008-01-28 03:49:19] [info] Procrun finished.
[2008-01-28 03:49:19] [info] Procrun (2.0.3.0) started
[2008-01-28 03:49:19] [info] Updating service...
[2008-01-28 03:49:19] [info] Service Tomcat5 updated
[2008-01-28 03:49:19] [info] Update service finished.
[2008-01-28 03:49:19] [info] Procrun finished.
[2008-01-28 03:49:29] [info] Procrun (2.0.3.0) started
[2008-01-28 03:49:29] [info] Running Service...
[2008-01-28 03:49:29] [info] Starting service...
[2008-01-28 03:49:29] [174 javajni.c] [error] 找不到指定的模块。
[2008-01-28 03:49:29] [986 prunsrv.c] [error] Failed creating java D:\Program Files\Java\jdk1.6.0_04\jre\bin\server\jvm.dll
[2008-01-28 03:49:29] [1260 prunsrv.c] [error] ServiceStart returned 1
[2008-01-28 03:49:29] [info] Run service finished.
[2008-01-28 03:49:29] [info] Procrun finished.
windows 不能在 本地计算机 启动 Apache

解决方案如下:

将JDK中BIN下的 msvcr71.dll 复制到 TOMCAT 中的 BIN 下,即可。