启动Tomcat服务器时遇到以下错误消息。
[2009-01-16 11:22:19] [1343 prunsrv.c] [debug] Procrun log initialized
[2009-01-16 11:22:19] [info] Procrun (2.0.4.0) started
[2009-01-16 11:22:19] [info] Running Service...
[2009-01-16 11:22:19] [1166 prunsrv.c] [debug] Inside ServiceMain...
[2009-01-16 11:22:19] [info] Starting service...
... [error] The specified module could not be found.
[2009-01-16 11:22:19] [994 prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll
[2009-01-16 11:22:19] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-01-16 11:22:19] [info] Run service finished.
[2009-01-16 11:22:19] [info] Procrun finished.
[2009-01-16 11:24:41] [1343 prunsrv.c] [debug] Procrun log initialized
[2009-01-16 11:24:41] [info] Procrun (2.0.4.0) started
[2009-01-16 11:24:41] [info] Debugging Service...
[2009-01-16 11:24:41] [1166 prunsrv.c] [debug] Inside ServiceMain...
[2009-01-16 11:24:41] [info] Starting service...
...[174 javajni.c] [error] The specified module could not be found.
谷歌搜索后,通常由于缺少msvcr71.dll文件而发生这种情况。 但是,tomcat不直接使用msvcr71.dll ,而是由Java虚拟机(JVM)使用。
解
- 将msvcr71.dll从Java的bin目录复制到tomcat的bin文件夹中。
- 将Java的bin目录添加到Windows环境变量。
- 将msvcr71.dll从Java的bin目录复制到Windows \ system32文件夹。
- 确保您的tomcat指向正确的jvm.dll文件夹。
解决方案4对我来说是有效的,我的tomcat指向C:\ Program Files \ Java \ jre1.6.0_07 \ bin \ client \ jvm.dll ,但是我的java的运行时文件夹位于C:\ Program Files \ Java \ jre \ bin \ client \ jvm.dll。 。真是笑话。
更新时间:2009年9月19日
这是类似的错误,最近发生了
... [174 javajni.c] [error] %1 is not a valid Win32 application.
... [994 prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre6\bin\server\jvm.dll
... [1269 prunsrv.c] [error] ServiceStart returned 1
似乎server \ jvm.dll无法正常工作,只需将其更改为client \ jvm.dll即可 。
从
C:\Program Files\Java\jre6\bin\server\jvm.dll
至
C:\Program Files\Java\jre6\bin\client\jvm.dll
标签: 雄猫
翻译自: https://mkyong.com/tomcat/tomcat-error-prunsrvc-failed-creating-java-jvmdll/