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

发布于 2024-07-06 01:52:34 字数 211 浏览 6 评论 0原文

我在 Windows Server 2003 机器上安装了 Tomcat 6.0.18,但它不会作为服务启动。 我正在使用 jdk 1.6.0_07 运行它。

当我用 tomcat6.exe 启动它时它就会运行。

我在 Windows 系统事件日志中收到模糊错误。

Apache Tomcat 6 服务因服务特定错误 0 (0x0) 而终止。

I installed Tomcat 6.0.18 on a windows server 2003 box and it will not start as a service.
I'm running it with jdk 1.6.0_07.

It runs when I start it with tomcat6.exe.

I got a vague error in the System Event Log on Windows.

The Apache Tomcat 6 service terminated with service-specific error 0 (0x0).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

待"谢繁草 2024-07-13 01:52:34

来自 gobaco.wordpress。 com

Tomcat 6 找不到名为 msvcr71.dll 的文件。
我刚刚复制过来的
c:\windows\microsoft.net\framework\v1.1.4322

c:\windows\system32

并能够启动 tomcat。

我认为这很奇怪,所以我想将其发布在 SO 上,以防其他人遇到这个问题。 如果有人想发布相同的答案,我会接受。

From gobaco.wordpress.com

Tomcat 6 couldn’t find a file called msvcr71.dll.
I just copied it over from
c:\windows\microsoft.net\framework\v1.1.4322
to
c:\windows\system32

and was able to start tomcat.

I thought this was very strange, so I wanted to post it on SO in case anyone else runs into this problem. If someone wants to post the same answer I'll accept it.

以歌曲疗慰 2024-07-13 01:52:34

我会咬它:-)

Windows 上的 Tomcat 服务依赖于 MS C 运行时库 msvcr71.dll。 只要它在路径中,服务就会正常启动。

为了防止其他 Windows 被迫使用此版本的运行时库,您可能需要将 DLL 复制到 tomcat bin 路径而不是 windows\system32。

I'll bite it :-)

Tomcat Service on windows is dependent on the MS C Runtime library 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.

像极了他 2024-07-13 01:52:34

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

I copied the msvcr71.dll from the java home directory to the bin directory of the apache-tomcat install, and the service started after that.

眼眸里的快感 2024-07-13 01:52:34

尽管这是一篇较旧的帖子,但我认为我应该分享有关我所遇到的同一问题的知识,但解决方法有所不同。

Apache Tomcat 7 服务因服务特定错误 0 (0x0) 而终止。

由于没有关于该问题的更多信息,我返回 Tomcat 控制面板并查看了 Java 路径,该路径指向 Java 虚拟机的早期安装:

C:\Program Files\Java\jre6\bin\client\jvm.dll,已经不存在了,所以我不得不将JRE版本更改为jre7。

完成此操作后,服务启动并全部运行。

希望它能对你们中的一些人有所帮助。

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

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:

C:\Program Files\Java\jre6\bin\client\jvm.dll, which no longer existed, so I had to change the JRE version to jre7.

Having done that, the service started up and all running now.

Hope it'll help some of you out there.

相守太难 2024-07-13 01:52:34

我按照上面的指南,但还是一样,错误0,
我的进程监视器日志位于 http://www.sendspace.com/file/t0tahr

i follow the above guide but still the same, error 0,
my process monitor log at http://www.sendspace.com/file/t0tahr

月亮是我掰弯的 2024-07-13 01:52:34

我解决了同样的问题,在配置应用程序中启用默认的 java 虚拟机。

假设您已经使用以下命令安装了 tomcat:

service install tomcat-6.0.35  

执行:

tomcat6w //ES/tomcat-6.0.35

弹出一个窗口,选择 java 选项卡并单击“使用默认值”复选框。

服务安装脚本(我想象)选择了 C:\Program Files(x86)\Java\jre\bin\client\jvm.dll

环境:

  • Windows Server 标准 SP2 64-bin
  • Java 1.6.0_23-b05(Java 热点 64 位服务器 vm 19.0-b09 混合模式)
  • Apache tomcat 6.35(你猜对了吗?)

I solved the same problem enabling the default java virtual machine in the configuration app.

Assuming you have installed tomcat using:

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.

The service install script (I immagine) selected C:\Program Files(x86)\Java\jre\bin\client\jvm.dll instead.

Environment:

  • Windows Server standard SP2 64-bin
  • Java 1.6.0_23-b05 (Java hotspot 64-bit server vm 19.0-b09 mixed mode)
  • Apache tomcat 6.35 (you guessed this didn't you?)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文