简体   繁体   English

Tomcat 6.0.18服务无法在Windows服务器上启动

[英]Tomcat 6.0.18 service will not start on a windows server

I installed Tomcat 6.0.18 on a windows server 2003 box and it will not start as a service. 我在Windows Server 2003上安装了Tomcat 6.0.18,它不会作为服务启动。 I'm running it with jdk 1.6.0_07. 我用jdk 1.6.0_07运行它。

It runs when I start it with tomcat6.exe. 它在我用tomcat6.exe启动时运行。

I got a vague error in the System Event Log on Windows. 我在Windows上的系统事件日志中出现了一个模糊的错误。

The Apache Tomcat 6 service terminated with service-specific error 0 (0x0). Apache Tomcat 6服务因服务特定错误0(0x0)而终止。

I'll bite it :-) 我会咬它:-)

Tomcat Service on windows is dependent on the MS C Runtime library msvcr71.dll. Windows上的Tomcat服务依赖于MS C运行时库msvcr71.dll。 As long as it is in the path, the service will start just fine. 只要它在路径中,服务就会很好地开始。

Just to prevent your other windows to be forced to use this version of the runtime library, you might want to copy the DLL to just the tomcat bin path instead of windows\\system32. 为了防止您的其他窗口被强制使用此版本的运行时库,您可能希望将DLL复制到tomcat bin路径而不是windows \\ system32。

From gobaco.wordpress.com 来自gobaco.wordpress.com

Tomcat 6 couldn't find a file called msvcr71.dll. Tomcat 6找不到名为msvcr71.dll的文件。
I just copied it over from c:\\windows\\microsoft.net\\framework\\v1.1.4322 to c:\\windows\\system32 我只是将它从c:\\ windows \\ microsoft.net \\ framework \\ v1.1.4322复制到c:\\ windows \\ system32

and was able to start tomcat. 并能够启动tomcat。

I thought this was very strange, so I wanted to post it on SO in case anyone else runs into this problem. 我觉得这很奇怪,所以我想把它贴在SO上以防万一其他人遇到这个问题。 If someone wants to post the same answer I'll accept it. 如果有人想发布相同的答案,我会接受它。

I solved the same problem enabling the default java virtual machine in the configuration app. 我解决了在配置应用程序中启用默认java虚拟机的相同问题。

Assuming you have installed tomcat using: 假设你已经安装了tomcat:

service install tomcat-6.0.35  

execute: 执行:

tomcat6w //ES/tomcat-6.0.35

a window pops up, select the java tab and click on "Use default" checkbox. 弹出一个窗口,选择java选项卡,然后单击“使用默认值”复选框。

The service install script (I immagine) selected C:\\Program Files(x86)\\Java\\jre\\bin\\client\\jvm.dll instead. 服务安装脚本(I immagine)选择了C:\\Program Files(x86)\\Java\\jre\\bin\\client\\jvm.dll

Environment: 环境:

  • Windows Server standard SP2 64-bin Windows Server标准SP2 64-bin
  • Java 1.6.0_23-b05 (Java hotspot 64-bit server vm 19.0-b09 mixed mode) Java 1.6.0_23-b05(Java热点64位服务器vm 19.0-b09混合模式)
  • Apache tomcat 6.35 (you guessed this didn't you?) Apache tomcat 6.35(你猜对了不是吗?)

我按照上面的指南,但仍然相同,错误0,我的进程监视器登录http://www.sendspace.com/file/t0tahr

Even though it's an older post, I thought I'd share the knowledge about the very same issue I had, but the workaround was different. 虽然这是一篇较老的帖子,但我认为我会分享有关同一问题的知识,但解决方法却有所不同。

The Apache Tomcat 7 service terminated with service-specific error 0 (0x0). Apache Tomcat 7服务因服务特定错误0(0x0)而终止。

As there was no more information regarding the problem I went back to the Tomcat Control Panel and had a look at the Java path, which was pointed to an earlier installation of Java Virtual Machine: 由于没有关于这个问题的更多信息,我回到Tomcat控制面板并查看了Java路径,该路径指向早期安装的Java虚拟机:

C:\\Program Files\\Java\\jre6\\bin\\client\\jvm.dll, which no longer existed, so I had to change the JRE version to jre7. C:\\ Program Files \\ Java \\ jre6 \\ bin \\ client \\ jvm.dll,不再存在,所以我不得不将JRE版本更改为jre7。

Having done that, the service started up and all running now. 完成后,服务启动,现在全部运行。

Hope it'll help some of you out there. 希望它会帮助你们中的一些人。

我将msvcr71.dll从java主目录复制到apache-tomcat安装的bin目录,然后服务启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM